diff options
Diffstat (limited to 'sphinx/ext')
-rw-r--r-- | sphinx/ext/doctest.py | 2 | ||||
-rw-r--r-- | sphinx/ext/intersphinx.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/doctest.py b/sphinx/ext/doctest.py index 68df253d5..5e4d6681a 100644 --- a/sphinx/ext/doctest.py +++ b/sphinx/ext/doctest.py @@ -285,7 +285,7 @@ class DocTestBuilder(Builder): # for doctest examples but unusable for multi-statement code such # as setup code -- to be able to use doctest error reporting with # that code nevertheless, we monkey-patch the "compile" it uses. - doctest.compile = self.compile # type: ignore + doctest.compile = self.compile sys.path[0:0] = self.config.doctest_path diff --git a/sphinx/ext/intersphinx.py b/sphinx/ext/intersphinx.py index e627da62a..e76e0836e 100644 --- a/sphinx/ext/intersphinx.py +++ b/sphinx/ext/intersphinx.py @@ -399,6 +399,6 @@ def inspect_main(argv: List[str]) -> None: if __name__ == '__main__': import logging # type: ignore - logging.basicConfig() # type: ignore + logging.basicConfig() inspect_main(argv=sys.argv[1:]) |