summaryrefslogtreecommitdiff
path: root/sphinx/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/project.py')
-rw-r--r--sphinx/project.py6
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__)