summaryrefslogtreecommitdiff
path: root/sphinx/ext/mathjax.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-26 02:02:19 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-26 02:02:19 +0900
commitf9ae69d9b003b4839b39b0abc26b6a607b7e08bd (patch)
tree1e7de5710ae07c493cdb3eb5bf902cd2f81f657a /sphinx/ext/mathjax.py
parent5734d8ad02116004721bca90df2719fdab7c9eb9 (diff)
downloadsphinx-git-f9ae69d9b003b4839b39b0abc26b6a607b7e08bd.tar.gz
Drop typing.TYPE_CHECKING
Diffstat (limited to 'sphinx/ext/mathjax.py')
-rw-r--r--sphinx/ext/mathjax.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/ext/mathjax.py b/sphinx/ext/mathjax.py
index 9f8013b2b..e3f7afebe 100644
--- a/sphinx/ext/mathjax.py
+++ b/sphinx/ext/mathjax.py
@@ -11,8 +11,6 @@
:license: BSD, see LICENSE for details.
"""
-from typing import TYPE_CHECKING
-
from docutils import nodes
import sphinx
@@ -21,7 +19,8 @@ from sphinx.ext.mathbase import get_node_equation_number
from sphinx.ext.mathbase import setup_math as mathbase_setup
from sphinx.locale import _
-if TYPE_CHECKING:
+if False:
+ # For type annotation
from typing import Any, Dict # NOQA
from sphinx.application import Sphinx # NOQA