summaryrefslogtreecommitdiff
path: root/sphinx/transforms/post_transforms/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/transforms/post_transforms/compat.py')
-rw-r--r--sphinx/transforms/post_transforms/compat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/transforms/post_transforms/compat.py b/sphinx/transforms/post_transforms/compat.py
index c67f7149f..9a03ff6b5 100644
--- a/sphinx/transforms/post_transforms/compat.py
+++ b/sphinx/transforms/post_transforms/compat.py
@@ -10,7 +10,6 @@
"""
import warnings
-from typing import TYPE_CHECKING
from docutils import nodes
from docutils.writers.docutils_xml import XMLTranslator
@@ -20,7 +19,8 @@ from sphinx.deprecation import RemovedInSphinx30Warning
from sphinx.transforms import SphinxTransform
from sphinx.util import logging
-if TYPE_CHECKING:
+if False:
+ # For type annotation
from typing import Any, Callable, Dict, Iterable, List, Tuple # NOQA
from docutils.parsers.rst.states import Inliner # NOQA
from docutils.writers.html4css1 import Writer # NOQA