Use typing.TYPE_CHECKING

This commit is contained in:
Takeshi KOMIYA 2018-02-18 18:08:31 +09:00
parent 20e06a2a3d
commit f51b644f39

View File

@ -10,10 +10,10 @@
""" """
import sys import sys
from typing import TYPE_CHECKING
if False: if TYPE_CHECKING:
# For type annotation
from typing import Any, Dict # NOQA from typing import Any, Dict # NOQA
from sphinx.application import Sphinx # NOQA from sphinx.application import Sphinx # NOQA