mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 19:11:26 +08:00
ast: add visit_Constant to NodeVisitor (#3767)
This commit is contained in:
1 parent
67e2d94df6
commit
1fb46cb4d1
1 file changed
+2
@@ -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]: ...
|
||||
|
||||
Reference in new issue
Block a user