diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-10-20 13:33:44 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-10-20 13:33:44 +0900 |
commit | 0b719faabb640bf620d62d947b51166715d2477e (patch) | |
tree | 299d7d8365e83c4cd9c41a6db678eca0474947b9 /sphinx/domains/cpp.py | |
parent | d000de6e9950de32f8a1c872232513d8196c0530 (diff) | |
download | sphinx-git-0b719faabb640bf620d62d947b51166715d2477e.tar.gz |
Fix mypy violations (for mypy-0.740)
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r-- | sphinx/domains/cpp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 417bdb2b6..2d948b853 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -32,7 +32,8 @@ from sphinx.util.nodes import make_refnode if False: # For type annotation - from typing import Any, Callable, Dict, Iterator, List, Match, Pattern, Tuple, Union # NOQA + from docutils.nodes import TextElement + from typing import Any, Callable, Dict, Iterator, List, Match, Pattern, Tuple, Type, Union # NOQA from sphinx.application import Sphinx # NOQA from sphinx.builders import Builder # NOQA from sphinx.config import Config # NOQA @@ -6980,7 +6981,7 @@ class CPPExprRole: if asCode: # render the expression as inline code self.class_type = 'cpp-expr' - self.node_type = nodes.literal + self.node_type = nodes.literal # type: Type[TextElement] else: # render the expression as inline text self.class_type = 'cpp-texpr' |