summaryrefslogtreecommitdiff
path: root/sphinx/transforms/references.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-03-07 11:30:01 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-03-07 19:36:41 +0900
commit941bf951acda5a27b6ff5adef6678c974b6615ba (patch)
tree21ebcfdeac2d917763b1bb155c08e9da9d4a548f /sphinx/transforms/references.py
parent3b87df07ff0e875564684cf278427e31d7d4548d (diff)
downloadsphinx-git-941bf951acda5a27b6ff5adef6678c974b6615ba.tar.gz
Hello TYPE_CHECKING!
Diffstat (limited to 'sphinx/transforms/references.py')
-rw-r--r--sphinx/transforms/references.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/transforms/references.py b/sphinx/transforms/references.py
index e74d9657d..d25c8cbac 100644
--- a/sphinx/transforms/references.py
+++ b/sphinx/transforms/references.py
@@ -9,14 +9,14 @@
"""
from typing import Any, Dict
+from typing import TYPE_CHECKING
from docutils import nodes
from docutils.transforms.references import DanglingReferences, Substitutions
from sphinx.transforms import SphinxTransform
-if False:
- # For type annotation
+if TYPE_CHECKING:
from sphinx.application import Sphinx