Skip to content

Commit

Permalink
stab methods return only str
Browse files Browse the repository at this point in the history
  • Loading branch information
RootShinobi committed Dec 25, 2023
1 parent 2545574 commit f77460e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiogram_i18n/utils/stub_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __str__(self) -> str:
params.insert(0, "*")
params.insert(0, "self")
return (
f"def {self.name.replace('-', '_')}({', '.join(params)}) -> Union[str, LazyProxy]: ..."
f"def {self.name.replace('-', '_')}({', '.join(params)}) -> str: ..."
)

__repr__ = __str__
Expand Down

0 comments on commit f77460e

Please sign in to comment.