Skip to content

Commit b562089

Browse files
authored
ast: add TryStar in py311 (#7646)
Co-authored-by: hauntsaninja <>
1 parent 556fe3e commit b562089

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stdlib/_ast.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ class Try(stmt):
172172
orelse: list[stmt]
173173
finalbody: list[stmt]
174174

175+
if sys.version_info >= (3, 11):
176+
class TryStar(stmt):
177+
__match_args__ = ("body", "handlers", "orelse", "finalbody")
178+
body: list[stmt]
179+
handlers: list[ExceptHandler]
180+
orelse: list[stmt]
181+
finalbody: list[stmt]
182+
175183
class Assert(stmt):
176184
if sys.version_info >= (3, 10):
177185
__match_args__ = ("test", "msg")

0 commit comments

Comments
 (0)