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>2019-03-06 17:44:44 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-03-06 17:44:44 +0300
commitdbefc9865d8c2c4006ed52475d1bff865358cd00 (patch)
tree87e6cc29d08b37751b13add9f4a4b90e74666b81 /sphinx/directives
parentc747257f77f75a3945acc0b7e054040e2656be4b (diff)
Clean up import for annotations
Diffstat (limited to 'sphinx/directives')
-rw-r--r--sphinx/directives/__init__.py2
-rw-r--r--sphinx/directives/other.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/directives/__init__.py b/sphinx/directives/__init__.py
index 8dbb1cec6..c639885f6 100644
--- a/sphinx/directives/__init__.py
+++ b/sphinx/directives/__init__.py
@@ -35,8 +35,6 @@ if False:
# For type annotation
from typing import Any, Dict # NOQA
from sphinx.application import Sphinx # NOQA
- from sphinx.config import Config # NOQA
- from sphinx.environment import BuildEnvironment # NOQA
from sphinx.util.docfields import Field # NOQA
from sphinx.util.typing import DirectiveOption # NOQA
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py
index 2efca0722..149ccd857 100644
--- a/sphinx/directives/other.py
+++ b/sphinx/directives/other.py
@@ -26,7 +26,7 @@ from sphinx.util.nodes import explicit_title_re, set_source_info, \
if False:
# For type annotation
- from typing import Any, Dict, Generator, List, Tuple # NOQA
+ from typing import Any, Dict, List # NOQA
from sphinx.application import Sphinx # NOQA