summaryrefslogtreecommitdiff
path: root/sphinx/domains/math.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-05 01:04:33 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-06 00:26:29 +0900
commit99bb07740ea2912d087a4937953ca65d8e358da8 (patch)
tree14ffca5b8c8be670594fc93013003bc0a5fc5ae7 /sphinx/domains/math.py
parent67cbc7d96cdc103e7b124e98c47a2bb8cf283ffc (diff)
downloadsphinx-git-99bb07740ea2912d087a4937953ca65d8e358da8.tar.gz
Fix typehints: sphinx.domains
Diffstat (limited to 'sphinx/domains/math.py')
-rw-r--r--sphinx/domains/math.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/domains/math.py b/sphinx/domains/math.py
index d56f45e0e..b5665f0af 100644
--- a/sphinx/domains/math.py
+++ b/sphinx/domains/math.py
@@ -21,11 +21,10 @@ from sphinx.util.nodes import make_refnode
if False:
# For type annotation
- from typing import Any, Callable, Dict, Iterable, List, Tuple, Union # NOQA
+ from typing import Any, Callable, Dict, Iterable, List, Tuple, Type, Union # NOQA
from sphinx.application import Sphinx # NOQA
from sphinx.builders import Builder # NOQA
from sphinx.environment import BuildEnvironment # NOQA
- from sphinx.util.typing import RoleFunction # NOQA
logger = logging.getLogger(__name__)
@@ -52,7 +51,7 @@ class MathDomain(Domain):
enumerable_nodes = { # node_class -> (figtype, title_getter)
displaymath: ('displaymath', None),
nodes.math_block: ('displaymath', None),
- } # type: Dict[nodes.Node, Tuple[unicode, Callable]]
+ } # type: Dict[Type[nodes.Node], Tuple[unicode, Callable]]
roles = {
'numref': MathReferenceRole(),
}