summaryrefslogtreecommitdiff
path: root/sphinx/errors.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-17 14:47:22 +0900
committerGitHub <noreply@github.com>2018-02-17 14:47:22 +0900
commitfe96c22f7da598a7566190fc96c1aced0bcbe8b7 (patch)
treefb6a7d16b9d76163500ea82b61c2f6d801d47bc3 /sphinx/errors.py
parent4f0a652af178eddd5b11178d189d6d2be2f6099f (diff)
parentfd763cb85c4441653a09cb689a71866eef729bdd (diff)
downloadsphinx-git-fe96c22f7da598a7566190fc96c1aced0bcbe8b7.tar.gz
Merge pull request #4616 from tk0miya/use_typing.TYPE_CHECKING
Use typing.type checking
Diffstat (limited to 'sphinx/errors.py')
-rw-r--r--sphinx/errors.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/errors.py b/sphinx/errors.py
index eef1a157a..34c0cae33 100644
--- a/sphinx/errors.py
+++ b/sphinx/errors.py
@@ -10,8 +10,9 @@
:license: BSD, see LICENSE for details.
"""
-if False:
- # For type annotation
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
from typing import Any # NOQA