ast: add TryStar in py311 (#7646)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2022-04-16 22:13:21 -07:00
committed by GitHub
parent 556fe3e4ef
commit b562089d13

View File

@@ -172,6 +172,14 @@ class Try(stmt):
orelse: list[stmt]
finalbody: list[stmt]
if sys.version_info >= (3, 11):
class TryStar(stmt):
__match_args__ = ("body", "handlers", "orelse", "finalbody")
body: list[stmt]
handlers: list[ExceptHandler]
orelse: list[stmt]
finalbody: list[stmt]
class Assert(stmt):
if sys.version_info >= (3, 10):
__match_args__ = ("test", "msg")