diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-04 23:42:27 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-05 01:20:24 +0900 |
commit | 9a636683a0a3aebdbf82091a59d8bf9bd112d6b4 (patch) | |
tree | b87c9f0af3c3664d5cf7e799ca396a910ffbd5e5 /sphinx/ext/jsmath.py | |
parent | 545bb77b1ea52a9373b4d46f37e68f8768fc7ede (diff) | |
download | sphinx-git-9a636683a0a3aebdbf82091a59d8bf9bd112d6b4.tar.gz |
Fix typehints: sphinx.util.math
Diffstat (limited to 'sphinx/ext/jsmath.py')
-rw-r--r-- | sphinx/ext/jsmath.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/jsmath.py b/sphinx/ext/jsmath.py index 3babd408e..e03351800 100644 --- a/sphinx/ext/jsmath.py +++ b/sphinx/ext/jsmath.py @@ -22,6 +22,7 @@ if False: from typing import Any, Dict # NOQA from sphinx.application import Sphinx # NOQA from sphinx.environment import BuildEnvironment # NOQA + from sphinx.writers.html import HTMLTranslator # NOQA def html_visit_math(self, node): @@ -32,7 +33,7 @@ def html_visit_math(self, node): def html_visit_displaymath(self, node): - # type: (nodes.NodeVisitor, nodes.Node) -> None + # type: (HTMLTranslator, nodes.Node) -> None if node['nowrap']: self.body.append(self.starttag(node, 'div', CLASS='math notranslate nohighlight')) self.body.append(self.encode(node.astext())) |