Skip to content

Commit

Permalink
add __str__ and __repr__ to the abstract bucket class
Browse files Browse the repository at this point in the history
  • Loading branch information
MAfarrag committed Dec 23, 2024
1 parent 1664d7b commit fdcb32a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/unicloud/abstract_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ def download(self, source, file_path):
class AbstractBucket(ABC):
"""Abstract class for cloud storage bucket."""

@abstractmethod
def __str__(self):
"""Return the name of the bucket."""
pass

@abstractmethod
def __repr__(self):
"""Return the name of the bucket."""
pass

@abstractmethod
def upload(
self,
Expand Down

0 comments on commit fdcb32a

Please sign in to comment.