Skip to content

Commit

Permalink
docs: update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Jun 2, 2024
1 parent 363a60e commit 0b06095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/features/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ async def translate(cls, text: str, source_language: Languages, target_language:
Parameters
----------
input (str) : the input to translate
source_language (str) : the source language
target_language (str) : the target language
source_language (Languages) : the source language
target_language (Languages) : the target language
Returns
-------
Expand Down
4 changes: 2 additions & 2 deletions server/schemas/v1/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class Translation(BaseModel):
Attributes
----------
text (str) : the text to translate
source (str) : the source language
target (str) : the target language
source (Languages) : the source language
target (Languages) : the target language
"""

text: str = Field(examples=['Hello, world!'])
Expand Down

0 comments on commit 0b06095

Please sign in to comment.