ast.NodeVisitor: add visit_TryStar on 3.11+ (#9418)

This commit is contained in:
Alex Waygood
2022-12-27 17:36:53 +00:00
committed by GitHub
parent fd3e64ac3e
commit 27983aa929

View File

@@ -146,6 +146,9 @@ class NodeVisitor:
def visit_MatchAs(self, node: MatchAs) -> Any: ...
def visit_MatchOr(self, node: MatchOr) -> Any: ...
if sys.version_info >= (3, 11):
def visit_TryStar(self, node: TryStar) -> Any: ...
# visit methods for deprecated nodes
def visit_ExtSlice(self, node: ExtSlice) -> Any: ...
def visit_Index(self, node: Index) -> Any: ...