diff options
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 f4afdadad..1909659b1 100644 --- a/sphinx/project.py +++ b/sphinx/project.py @@ -10,6 +10,7 @@ import os from glob import glob +from typing import TYPE_CHECKING from sphinx.locale import __ from sphinx.util import get_matching_files @@ -18,9 +19,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__) |