diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-18 18:08:31 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-18 18:08:31 +0900 |
commit | f51b644f39ff53f14332eb8cd5019bbe8dc0e0e1 (patch) | |
tree | 72ea450f1ae76601ae2d88eb515b33ae70340940 /sphinx/util/compat.py | |
parent | 20e06a2a3d4f35b1bd15ab2e9cdb4bc6cfcb14f3 (diff) | |
download | sphinx-git-f51b644f39ff53f14332eb8cd5019bbe8dc0e0e1.tar.gz |
Use typing.TYPE_CHECKING
Diffstat (limited to 'sphinx/util/compat.py')
-rw-r--r-- | sphinx/util/compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/compat.py b/sphinx/util/compat.py index f25e43315..b3f78ca7d 100644 --- a/sphinx/util/compat.py +++ b/sphinx/util/compat.py @@ -10,10 +10,10 @@ """ import sys +from typing import TYPE_CHECKING -if False: - # For type annotation +if TYPE_CHECKING: from typing import Any, Dict # NOQA from sphinx.application import Sphinx # NOQA |