diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-07 11:30:01 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-07 19:36:41 +0900 |
commit | 941bf951acda5a27b6ff5adef6678c974b6615ba (patch) | |
tree | 21ebcfdeac2d917763b1bb155c08e9da9d4a548f /sphinx/project.py | |
parent | 3b87df07ff0e875564684cf278427e31d7d4548d (diff) | |
download | sphinx-git-941bf951acda5a27b6ff5adef6678c974b6615ba.tar.gz |
Hello TYPE_CHECKING!
Diffstat (limited to 'sphinx/project.py')
-rw-r--r-- | sphinx/project.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/project.py b/sphinx/project.py index d63af1fcb..409916608 100644 --- a/sphinx/project.py +++ b/sphinx/project.py @@ -9,6 +9,7 @@ """ import os +from typing import TYPE_CHECKING from sphinx.locale import __ from sphinx.util import get_matching_files @@ -17,9 +18,8 @@ from sphinx.util import path_stabilize from sphinx.util.matching import compile_matchers from sphinx.util.osutil import SEP, relpath -if False: - # For type annotation - from typing import Dict, List, Set # NOQA +if TYPE_CHECKING: + from typing import Dict, List, Set logger = logging.getLogger(__name__) |