Skip to content

Commit

Permalink
feat(mypy): update type hinting on translate
Browse files Browse the repository at this point in the history
add Optional
  • Loading branch information
cesarcoatl committed Jan 19, 2022
1 parent 485ef22 commit 3e0ef7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/util.py
Expand Up @@ -975,7 +975,7 @@ def threadDump():


def translate(term, locale="es_MX", strict=False):
# type: (String, Optional[String], bool) -> String
# type: (String, Optional[String], Optional[bool]) -> String
"""This function allows you to retrieve the global translation of a
term from the translation database using the current locale.
Expand Down

0 comments on commit 3e0ef7f

Please sign in to comment.