From bce70d1ca62bfd003332a0e6a13f8493b9fc936d Mon Sep 17 00:00:00 2001 From: William Ayd Date: Thu, 28 Mar 2019 08:23:56 -0700 Subject: [PATCH] Added excepthandler to ast stubfiles (#2891) --- stdlib/2/_ast.pyi | 6 +++++- stdlib/3/_ast.pyi | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/stdlib/2/_ast.pyi b/stdlib/2/_ast.pyi index 8cbf6d67b..618d304a4 100644 --- a/stdlib/2/_ast.pyi +++ b/stdlib/2/_ast.pyi @@ -305,7 +305,11 @@ class comprehension(AST): ifs = ... # type: typing.List[expr] -class ExceptHandler(AST): +class excepthandler(AST): + ... + + +class ExceptHandler(excepthandler): type = ... # type: Optional[expr] name = ... # type: Optional[expr] body = ... # type: typing.List[stmt] diff --git a/stdlib/3/_ast.pyi b/stdlib/3/_ast.pyi index 42fa8d62d..139734b12 100644 --- a/stdlib/3/_ast.pyi +++ b/stdlib/3/_ast.pyi @@ -375,7 +375,10 @@ class comprehension(AST): is_async = ... # type: int -class ExceptHandler(AST): +class excepthandler(AST): + ... + +class ExceptHandler(excepthandler): type = ... # type: Optional[expr] name = ... # type: Optional[_identifier] body = ... # type: typing.List[stmt]