diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-29 17:56:30 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-30 11:22:56 +0300 |
commit | ab184ac20d82d0546c21f33d2fdfbfb324078d56 (patch) | |
tree | 225b6c5f9904d8699332add3cb0939fb8be68ef2 /sphinx/locale | |
parent | 7a4bbf372a470700a1dfd96dd57054bb96b92fd3 (diff) |
mypy: Enable disallow_incomplete_defs flag for type checking
Diffstat (limited to 'sphinx/locale')
-rw-r--r-- | sphinx/locale/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/locale/__init__.py b/sphinx/locale/__init__.py index a668c6a7f..262425a36 100644 --- a/sphinx/locale/__init__.py +++ b/sphinx/locale/__init__.py @@ -243,7 +243,7 @@ def get_translation(catalog, namespace='general'): .. versionadded:: 1.8 """ - def gettext(message: str, *args) -> str: + def gettext(message: str, *args: Any) -> str: if not is_translator_registered(catalog, namespace): # not initialized yet return _TranslationProxy(_lazy_translate, catalog, namespace, message) # type: ignore # NOQA |