Skip to content

Commit

Permalink
Add docstring for TranslationResult class
Browse files Browse the repository at this point in the history
  • Loading branch information
cr2007 committed Jun 28, 2024
1 parent ee7d7b3 commit 25d8638
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cambai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ class ExtendedTranslationData(BasicTranslationData, total=False):
gender: Optional[int]

class TranslationResult(TypedDict):
"""
Represents the result of a translation operation.
Attributes:
text (str): The translated text.
"""
text: str

# ------------------------------------------------------------------------------------------------ #
Expand Down

0 comments on commit 25d8638

Please sign in to comment.