diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-01-22 22:05:38 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-04 15:14:51 +0900 |
commit | dc2b153835af985c1bd940aa4116b78bf248b6e0 (patch) | |
tree | 29383d6007d2f13c517ae4646e639362017aa9d4 /sphinx/ext/mathbase.py | |
parent | 498fa379efe5b6b106c8d3eb56041164cdc8bab3 (diff) | |
download | sphinx-git-dc2b153835af985c1bd940aa4116b78bf248b6e0.tar.gz |
Update type annotations
Diffstat (limited to 'sphinx/ext/mathbase.py')
-rw-r--r-- | sphinx/ext/mathbase.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/ext/mathbase.py b/sphinx/ext/mathbase.py index 24c10df3c..50a1c67d4 100644 --- a/sphinx/ext/mathbase.py +++ b/sphinx/ext/mathbase.py @@ -24,6 +24,7 @@ if False: # For type annotation from typing import Any, Callable, Dict, Iterable, List, Tuple # NOQA from docutils.parsers.rst.states import Inliner # NOQA + from docutils.writers.html4css1 import Writer # NOQA from sphinx.application import Sphinx # NOQA from sphinx.builders import Builder # NOQA from sphinx.environment import BuildEnvironment # NOQA @@ -135,6 +136,7 @@ class MathDomain(Domain): def get_node_equation_number(writer, node): + # type: (Writer, nodes.Node) -> unicode if writer.builder.config.math_numfig and writer.builder.config.numfig: figtype = 'displaymath' if writer.builder.name == 'singlehtml': |