diff --git a/annotation/annotation/annotations/main.py b/annotation/annotation/annotations/main.py index cbd7efff4..e3b51f10a 100644 --- a/annotation/annotation/annotations/main.py +++ b/annotation/annotation/annotations/main.py @@ -62,9 +62,7 @@ def row_to_dict(row) -> dict: key: ( str(value) if isinstance(value, UUID) - else value.isoformat() - if isinstance(value, datetime) - else value + else value.isoformat() if isinstance(value, datetime) else value ) for key, value in row.__dict__.items() if key != "_sa_instance_state" diff --git a/lib/badgerdoc_storage/src/badgerdoc_storage/storage.py b/lib/badgerdoc_storage/src/badgerdoc_storage/storage.py index 2450dd25f..bd627e760 100644 --- a/lib/badgerdoc_storage/src/badgerdoc_storage/storage.py +++ b/lib/badgerdoc_storage/src/badgerdoc_storage/storage.py @@ -76,31 +76,24 @@ def upload_obj( target_path: str, file: bytes, content_type: Optional[str] = None, - overwrite: bool = False, + **kwargs: Any, ) -> None: pass - def exists(self, target_path: str) -> bool: - ... + def exists(self, target_path: str) -> bool: ... - def download(self, target_path: str, file: str) -> None: - ... + def download(self, target_path: str, file: str) -> None: ... - def gen_signed_url(self, file: str, exp: int) -> str: - ... + def gen_signed_url(self, file: str, exp: int) -> str: ... - def list_objects(self, target_path: str) -> List[str]: - ... + def list_objects(self, target_path: str) -> List[str]: ... - def remove(self, file: str) -> None: - ... + def remove(self, file: str) -> None: ... - def create_tenant_dir(self) -> bool: - ... + def create_tenant_dir(self) -> bool: ... @property - def tenant(self) -> str: - ... + def tenant(self) -> str: ... class BadgerDocS3Storage: @@ -131,7 +124,7 @@ def upload_obj( target_path: str, file: bytes, content_type: Optional[str] = None, - overwrite: bool = False, + **kwargs: Any, ) -> None: params: Dict[str, Any] = {"Fileobj": file, "Key": target_path} if content_type: