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
path: root/sphinx
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-06-03 17:46:38 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-06-03 17:47:29 +0300
commit9b45b00bd4cee7dad96b98cec0224f88a84ef40a (patch)
tree47510c5df3b5b7e6e6af82e15b99be29736fc760 /sphinx
parent6a55947e9f8f51c42a4719663f10b85c921a5918 (diff)
Fix mypy violations (with mypy-0.780)
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/ext/autosummary/generate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/autosummary/generate.py b/sphinx/ext/autosummary/generate.py
index 4dde73829..fe7daf214 100644
--- a/sphinx/ext/autosummary/generate.py
+++ b/sphinx/ext/autosummary/generate.py
@@ -143,11 +143,11 @@ class AutosummaryRenderer:
if isinstance(app, (Sphinx, DummyApplication)):
if app.translator:
self.env.add_extension("jinja2.ext.i18n")
- self.env.install_gettext_translations(app.translator) # type: ignore
+ self.env.install_gettext_translations(app.translator)
elif isinstance(app, Builder):
if app.app.translator:
self.env.add_extension("jinja2.ext.i18n")
- self.env.install_gettext_translations(app.app.translator) # type: ignore
+ self.env.install_gettext_translations(app.app.translator)
def exists(self, template_name: str) -> bool:
"""Check if template file exists."""