Skip to content

Commit

Permalink
ast: add TryStar in py311 (#7646)
Browse files Browse the repository at this point in the history
Co-authored-by: hauntsaninja <>
  • Loading branch information
hauntsaninja committed Apr 17, 2022
1 parent 556fe3e commit b562089
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stdlib/_ast.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b562089

Please sign in to comment.