diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-03-03 12:19:09 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-03-03 23:17:34 +0900 |
commit | 554199d30e418f72f215fae65924b47249d2544c (patch) | |
tree | fd952e21a8f4e9dabf91c5e3731dea3712ade006 /sphinx/writers/latex.py | |
parent | 28b1aceefedbb9c3a12d6ba7c712df8ad5e98db8 (diff) | |
download | sphinx-git-554199d30e418f72f215fae65924b47249d2544c.tar.gz |
Upgrade to mypy-0.5
Diffstat (limited to 'sphinx/writers/latex.py')
-rw-r--r-- | sphinx/writers/latex.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 12f6934d6..7674f8d2f 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -34,7 +34,7 @@ from sphinx.util.smartypants import educate_quotes_latex if False: # For type annotation - from typing import Any, Callable, Iterator, Pattern, Tuple, Union # NOQA + from typing import Any, Callable, Dict, Iterator, List, Pattern, Tuple, Set, Union # NOQA from sphinx.builder import Builder # NOQA logger = logging.getLogger(__name__) @@ -823,7 +823,7 @@ class LaTeXTranslator(nodes.NodeVisitor): def generate_indices(self): # type: (Builder) -> unicode def generate(content, collapsed): - # type: (List[Tuple[unicode, List[Tuple[unicode, unicode, unicode, unicode, unicode]]]], bool) -> unicode # NOQA + # type: (List[Tuple[unicode, List[Tuple[unicode, unicode, unicode, unicode, unicode]]]], bool) -> None # NOQA ret.append('\\begin{sphinxtheindex}\n') ret.append('\\def\\bigletter#1{{\\Large\\sffamily#1}' '\\nopagebreak\\vspace{1mm}}\n') @@ -1666,6 +1666,7 @@ class LaTeXTranslator(nodes.NodeVisitor): return rstdim_to_latexdim(width_str) except ValueError: logger.warning('dimension unit %s is invalid. Ignored.', width_str) + return None def is_inline(self, node): # type: (nodes.Node) -> bool |