Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-16 14:32:33 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-02-23 13:11:48 +0300
commitecd9b9379ffe224f59bb86d11de3c9c786d55521 (patch)
tree13f5d303c80a5fb31b9d7af56ca89c62111f6196 /sphinx/locale
parent8df10233696d199983dbba13463829d14705a94e (diff)
refactor: Update type annotations in sphinx.*
Diffstat (limited to 'sphinx/locale')
-rw-r--r--sphinx/locale/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/locale/__init__.py b/sphinx/locale/__init__.py
index 82aefe91e..9812355ca 100644
--- a/sphinx/locale/__init__.py
+++ b/sphinx/locale/__init__.py
@@ -197,7 +197,7 @@ def _lazy_translate(catalog: str, namespace: str, message: str) -> str:
return translator.gettext(message)
-def get_translation(catalog, namespace='general'):
+def get_translation(catalog: str, namespace: str = 'general') -> Callable:
"""Get a translation function based on the *catalog* and *namespace*.
The extension can use this API to translate the messages on the