summaryrefslogtreecommitdiff
path: root/sphinx/ext
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/ext')
-rw-r--r--sphinx/ext/doctest.py2
-rw-r--r--sphinx/ext/intersphinx.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/doctest.py b/sphinx/ext/doctest.py
index 01ab38efe..22301e66d 100644
--- a/sphinx/ext/doctest.py
+++ b/sphinx/ext/doctest.py
@@ -292,7 +292,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 6b9bc3825..9c02a93cd 100644
--- a/sphinx/ext/intersphinx.py
+++ b/sphinx/ext/intersphinx.py
@@ -414,6 +414,6 @@ def inspect_main(argv):
if __name__ == '__main__':
import logging # type: ignore
- logging.basicConfig() # type: ignore
+ logging.basicConfig()
inspect_main(argv=sys.argv[1:])