diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-06 17:44:44 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-06 17:44:44 +0300 |
commit | dbefc9865d8c2c4006ed52475d1bff865358cd00 (patch) | |
tree | 87e6cc29d08b37751b13add9f4a4b90e74666b81 /sphinx/directives | |
parent | c747257f77f75a3945acc0b7e054040e2656be4b (diff) |
Clean up import for annotations
Diffstat (limited to 'sphinx/directives')
-rw-r--r-- | sphinx/directives/__init__.py | 2 | ||||
-rw-r--r-- | sphinx/directives/other.py | 2 |
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 |