mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix a mypy violation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user