diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-17 14:47:22 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-17 14:47:22 +0900 |
commit | fe96c22f7da598a7566190fc96c1aced0bcbe8b7 (patch) | |
tree | fb6a7d16b9d76163500ea82b61c2f6d801d47bc3 /sphinx/errors.py | |
parent | 4f0a652af178eddd5b11178d189d6d2be2f6099f (diff) | |
parent | fd763cb85c4441653a09cb689a71866eef729bdd (diff) | |
download | sphinx-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.py | 5 |
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 |