diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-03-03 06:19:09 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-03-03 17:17:34 +0300 |
commit | 554199d30e418f72f215fae65924b47249d2544c (patch) | |
tree | fd952e21a8f4e9dabf91c5e3731dea3712ade006 /sphinx/environment/collectors | |
parent | 28b1aceefedbb9c3a12d6ba7c712df8ad5e98db8 (diff) |
Upgrade to mypy-0.5
Diffstat (limited to 'sphinx/environment/collectors')
-rw-r--r-- | sphinx/environment/collectors/__init__.py | 1 | ||||
-rw-r--r-- | sphinx/environment/collectors/asset.py | 2 | ||||
-rw-r--r-- | sphinx/environment/collectors/dependencies.py | 1 | ||||
-rw-r--r-- | sphinx/environment/collectors/indexentries.py | 1 | ||||
-rw-r--r-- | sphinx/environment/collectors/metadata.py | 1 | ||||
-rw-r--r-- | sphinx/environment/collectors/title.py | 1 | ||||
-rw-r--r-- | sphinx/environment/collectors/toctree.py | 2 |
7 files changed, 7 insertions, 2 deletions
diff --git a/sphinx/environment/collectors/__init__.py b/sphinx/environment/collectors/__init__.py index b8d73ad1f..45add6c4e 100644 --- a/sphinx/environment/collectors/__init__.py +++ b/sphinx/environment/collectors/__init__.py @@ -13,6 +13,7 @@ from six import itervalues if False: # For type annotation + from typing import Dict, List, Set # NOQA from docutils import nodes # NOQA from sphinx.sphinx import Sphinx # NOQA from sphinx.environment import BuildEnvironment # NOQA diff --git a/sphinx/environment/collectors/asset.py b/sphinx/environment/collectors/asset.py index 38deeeca4..73dd16869 100644 --- a/sphinx/environment/collectors/asset.py +++ b/sphinx/environment/collectors/asset.py @@ -26,7 +26,7 @@ from sphinx.util.images import guess_mimetype if False: # For type annotation - from typing import Tuple # NOQA + from typing import Dict, List, Set, Tuple # NOQA from docutils import nodes # NOQA from sphinx.sphinx import Sphinx # NOQA from sphinx.environment import BuildEnvironment # NOQA diff --git a/sphinx/environment/collectors/dependencies.py b/sphinx/environment/collectors/dependencies.py index b4d35caf7..ebfefe154 100644 --- a/sphinx/environment/collectors/dependencies.py +++ b/sphinx/environment/collectors/dependencies.py @@ -18,6 +18,7 @@ from sphinx.environment.collectors import EnvironmentCollector if False: # For type annotation + from typing import Set # NOQA from docutils import nodes # NOQA from sphinx.sphinx import Sphinx # NOQA from sphinx.environment import BuildEnvironment # NOQA diff --git a/sphinx/environment/collectors/indexentries.py b/sphinx/environment/collectors/indexentries.py index c9aeda7e1..596c98c09 100644 --- a/sphinx/environment/collectors/indexentries.py +++ b/sphinx/environment/collectors/indexentries.py @@ -15,6 +15,7 @@ from sphinx.environment.collectors import EnvironmentCollector if False: # For type annotation + from typing import Set # NOQA from docutils import nodes # NOQA from sphinx.applicatin import Sphinx # NOQA from sphinx.environment import BuildEnvironment # NOQA diff --git a/sphinx/environment/collectors/metadata.py b/sphinx/environment/collectors/metadata.py index 7a15cc614..4c700b4f2 100644 --- a/sphinx/environment/collectors/metadata.py +++ b/sphinx/environment/collectors/metadata.py @@ -15,6 +15,7 @@ from sphinx.environment.collectors import EnvironmentCollector if False: # For type annotation + from typing import Set # NOQA from docutils import nodes # NOQA from sphinx.sphinx import Sphinx # NOQA from sphinx.environment import BuildEnvironment # NOQA diff --git a/sphinx/environment/collectors/title.py b/sphinx/environment/collectors/title.py index a5316fe94..fca394c35 100644 --- a/sphinx/environment/collectors/title.py +++ b/sphinx/environment/collectors/title.py @@ -16,6 +16,7 @@ from sphinx.transforms import SphinxContentsFilter if False: # For type annotation + from typing import Set # NOQA from docutils import nodes # NOQA from sphinx.sphinx import Sphinx # NOQA from sphinx.environment import BuildEnvironment # NOQA diff --git a/sphinx/environment/collectors/toctree.py b/sphinx/environment/collectors/toctree.py index 5c9ed5472..bd3298391 100644 --- a/sphinx/environment/collectors/toctree.py +++ b/sphinx/environment/collectors/toctree.py @@ -21,7 +21,7 @@ from sphinx.environment.collectors import EnvironmentCollector if False: # For type annotation - from typing import Any, Tuple # NOQA + from typing import Any, Dict, List, Set, Tuple # NOQA from sphinx.application import Sphinx # NOQA from sphinx.builders import Builder # NOQA from sphinx.environment import BuildEnvironment # NOQA |