diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-19 21:22:44 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-19 23:12:45 +0900 |
commit | b6c2ba0d57c8b06941f4c60465c2763c5de123f1 (patch) | |
tree | 9ea78459629ac86d7a45023c7cd406338f954128 /sphinx/ext/jsmath.py | |
parent | 10991cdf671cb1dc4a7cdd4eb6efdea08c968ce3 (diff) | |
download | sphinx-git-b6c2ba0d57c8b06941f4c60465c2763c5de123f1.tar.gz |
Use typing.TYPE_CHECKING
Diffstat (limited to 'sphinx/ext/jsmath.py')
-rw-r--r-- | sphinx/ext/jsmath.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/ext/jsmath.py b/sphinx/ext/jsmath.py index b718162d2..e523b54c8 100644 --- a/sphinx/ext/jsmath.py +++ b/sphinx/ext/jsmath.py @@ -10,6 +10,8 @@ :license: BSD, see LICENSE for details. """ +from typing import TYPE_CHECKING + from docutils import nodes import sphinx @@ -19,8 +21,7 @@ from sphinx.ext.mathbase import setup_math as mathbase_setup from sphinx.locale import _ -if False: - # For type annotation +if TYPE_CHECKING: from typing import Any, Dict # NOQA from sphinx.application import Sphinx # NOQA |