Skip to content

Commit faa914d

Browse files
authored
feat: remove methods from the bucket object (#305)
1 parent 25f6ace commit faa914d

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

storage3/_async/file_api.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -447,15 +447,10 @@ def _get_final_path(self, path: str) -> str:
447447
return f"{self.id}/{path}"
448448

449449

450-
# this class is returned by methods that fetch buckets, for example StorageBucketAPI.get_bucket
451-
# adding this mixin on the BaseBucket means that those bucket objects can also be used to
452-
# run methods like `upload` and `download`
453450
@dataclass(repr=False)
454-
class AsyncBucket(BaseBucket, AsyncBucketActionsMixin):
451+
class AsyncBucket(BaseBucket):
455452
"""Represents a storage bucket."""
456453

457-
_client: AsyncClient = field(repr=False)
458-
459454

460455
@dataclass
461456
class AsyncBucketProxy(AsyncBucketActionsMixin):

storage3/_sync/file_api.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,10 @@ def _get_final_path(self, path: str) -> str:
445445
return f"{self.id}/{path}"
446446

447447

448-
# this class is returned by methods that fetch buckets, for example StorageBucketAPI.get_bucket
449-
# adding this mixin on the BaseBucket means that those bucket objects can also be used to
450-
# run methods like `upload` and `download`
451448
@dataclass(repr=False)
452-
class SyncBucket(BaseBucket, SyncBucketActionsMixin):
449+
class SyncBucket(BaseBucket):
453450
"""Represents a storage bucket."""
454451

455-
_client: SyncClient = field(repr=False)
456-
457452

458453
@dataclass
459454
class SyncBucketProxy(SyncBucketActionsMixin):

0 commit comments

Comments
 (0)