Skip to content

Commit ba27291

Browse files
committed
Fix S3Repo interface
1 parent 7e41ad8 commit ba27291

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/superannotate/lib/core/repositories.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212

1313

1414
class BaseReadOnlyRepository(ABC):
15-
@abstractmethod
15+
1616
def get_one(self, uuid: Union[Condition, int]) -> Optional[Union[BaseModel]]:
1717
raise NotImplementedError
1818

19-
@abstractmethod
19+
2020
def get_all(self, condition: Optional[Condition] = None) -> List[Union[BaseModel]]:
2121
raise NotImplementedError
2222

2323

2424
class BaseManageableRepository(BaseReadOnlyRepository):
25-
@abstractmethod
25+
2626
def insert(self, entity: BaseEntity) -> BaseEntity:
2727
raise NotImplementedError
2828

2929
def update(self, entity: BaseEntity) -> BaseEntity:
3030
raise NotImplementedError
3131

32-
@abstractmethod
32+
3333
def delete(self, uuid: Any):
3434
raise NotImplementedError
3535

0 commit comments

Comments
 (0)