ast: add visit_Constant to NodeVisitor (#3767)

This commit is contained in:
Shantanu
2020-02-21 20:26:15 -08:00
committed by GitHub
parent 67e2d94df6
commit 1fb46cb4d1

View File

@@ -19,6 +19,8 @@ else:
class NodeVisitor:
def visit(self, node: AST) -> Any: ...
def generic_visit(self, node: AST) -> Any: ...
if sys.version_info >= (3, 8):
def visit_Constant(self, node: Constant) -> Any: ...
class NodeTransformer(NodeVisitor):
def generic_visit(self, node: AST) -> Optional[AST]: ...