Fix a mypy violation

This commit is contained in:
Takeshi KOMIYA
2020-05-27 01:35:40 +09:00
parent 5121b6210e
commit 1dcc26eeda

View File

@@ -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: