Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 98aae1c

Browse files
fix: run unasync and also patch type
1 parent ff91715 commit 98aae1c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

storage3/_async/file_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ async def copy(self, from_path: str, to_path: str) -> dict[str, str]:
258258
)
259259
return res.json()
260260

261-
async def remove(self, paths: list) -> dict[str, str]:
261+
async def remove(self, paths: list) -> list[dict[str, any]]:
262262
"""
263263
Deletes files within the same bucket
264264

storage3/_sync/bucket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from httpx import HTTPError, Response
66

77
from ..types import CreateOrUpdateBucketOptions, RequestMethod
8-
from ..utils import StorageException, SyncClient
8+
from ..utils import SyncClient, StorageException
99
from .file_api import SyncBucket
1010

1111
__all__ = ["SyncStorageBucketAPI"]

storage3/_sync/file_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
SignedUploadURL,
2020
TransformOptions,
2121
)
22-
from ..utils import StorageException, SyncClient
22+
from ..utils import SyncClient, StorageException
2323

2424
__all__ = ["SyncBucket"]
2525

@@ -258,7 +258,7 @@ def copy(self, from_path: str, to_path: str) -> dict[str, str]:
258258
)
259259
return res.json()
260260

261-
def remove(self, paths: list) -> dict[str, str]:
261+
def remove(self, paths: list) -> list[dict[str, any]]:
262262
"""
263263
Deletes files within the same bucket
264264

tests/_sync/test_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def bucket(storage: SyncStorageClient, uuid_factory: Callable[[], str]) -> str:
7979

8080

8181
@pytest.fixture(scope="module")
82-
def public_bucket(storage: SyncStorageClient, uuid_factory: Callable[[], str]) -> str:
82+
def public_bucket(
83+
storage: SyncStorageClient, uuid_factory: Callable[[], str]
84+
) -> str:
8385
"""Creates a test public bucket which will be used in the whole storage tests run and deleted at the end"""
8486
bucket_id = uuid_factory()
8587

0 commit comments

Comments
 (0)