Fix mypy violations

This commit is contained in:
Takeshi KOMIYA 2017-03-10 17:00:21 +09:00
parent eb5577bb9c
commit 3594efaa27
2 changed files with 3 additions and 1 deletions

View File

@ -52,6 +52,7 @@ from sphinx.environment.adapters.toctree import TocTree
if False:
# For type annotation
from typing import Any, Callable, Dict, IO, Iterator, List, Pattern, Set, Tuple, Type, Union # NOQA
from docutils import nodes # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.builders import Builder # NOQA
from sphinx.config import Config # NOQA

View File

@ -19,8 +19,9 @@ from sphinx.util import logging
if False:
# For type annotation
from typing import Any, Dict # NOQA
from typing import Any, Dict, List, Tuple # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.domains import Domain # NOQA
logger = logging.getLogger(__name__)