diff --git a/deepset_cloud_sdk/models.py b/deepset_cloud_sdk/models.py index a118c780..217b2656 100644 --- a/deepset_cloud_sdk/models.py +++ b/deepset_cloud_sdk/models.py @@ -29,9 +29,7 @@ def __init__(self, name: str, meta: Optional[Dict[str, Any]] = None): @abstractmethod def content(self) -> bytes: - """ - An abstract method that will enable sub classes to give custom implementations of content. - """ + """Return content.""" raise NotImplementedError @@ -51,7 +49,7 @@ def __init__(self, name: str, text: str, meta: Optional[Dict[str, Any]] = None): def content(self) -> bytes: """ - Returns the content of the file in bytes + Return the content of the file in bytes. :return: The text of the file in bytes. """ @@ -79,9 +77,8 @@ def __init__(self, name: str, file_bytes: bytes, meta: Optional[Dict[str, Any]] def content(self) -> bytes: """ - Returns the content of the file in bytes + Return the content of the file in bytes. :return: The content of the file in bytes. """ - return self.file_bytes