Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
rjanjua committed May 15, 2024
1 parent 0abb637 commit 3aa076c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions deepset_cloud_sdk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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.
"""
Expand Down Expand Up @@ -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

0 comments on commit 3aa076c

Please sign in to comment.