summaryrefslogtreecommitdiff
path: root/sphinx/io.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/io.py b/sphinx/io.py
index 0462afd83..c8dba1fed 100644
--- a/sphinx/io.py
+++ b/sphinx/io.py
@@ -10,6 +10,7 @@
import codecs
import warnings
from typing import Any, List, Type
+from typing import TYPE_CHECKING
from docutils import nodes
from docutils.core import Publisher
@@ -37,8 +38,7 @@ from sphinx.util import UnicodeDecodeErrorHandler
from sphinx.util.docutils import LoggingReporter
from sphinx.versioning import UIDTransform
-if False:
- # For type annotation
+if TYPE_CHECKING:
from sphinx.application import Sphinx