summaryrefslogtreecommitdiff
path: root/sphinx/pycode
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-27 01:35:40 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-27 01:35:40 +0900
commit1dcc26eeda6bbb610edc28528cd911b2b9bbc256 (patch)
tree9434c9520e9be42d4595c51b2cd530c18dd20cdc /sphinx/pycode
parent5121b6210e588998505fc031d5806d8670fde798 (diff)
downloadsphinx-git-1dcc26eeda6bbb610edc28528cd911b2b9bbc256.tar.gz
Fix a mypy violation
Diffstat (limited to 'sphinx/pycode')
-rw-r--r--sphinx/pycode/ast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/ast.py b/sphinx/pycode/ast.py
index 0b403b61e..3d2af3426 100644
--- a/sphinx/pycode/ast.py
+++ b/sphinx/pycode/ast.py
@@ -189,7 +189,7 @@ class _UnparseVisitor(ast.NodeVisitor):
return "()"
if sys.version_info >= (3, 6):
- def visit_Constant(self, node: ast.Constant) -> str:
+ def visit_Constant(self, node: ast.Constant) -> str: # type: ignore
if node.value is Ellipsis:
return "..."
else: