From fdcb32a060a402b69090c8c011407c1f6ae2daa4 Mon Sep 17 00:00:00 2001 From: Mostafa Farrag Date: Tue, 24 Dec 2024 00:36:34 +0100 Subject: [PATCH] add `__str__` and `__repr__` to the abstract bucket class --- src/unicloud/abstract_class.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/unicloud/abstract_class.py b/src/unicloud/abstract_class.py index e70d9bf..3c91699 100644 --- a/src/unicloud/abstract_class.py +++ b/src/unicloud/abstract_class.py @@ -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,