Skip to content

Commit afe6656

Browse files
wbolstersrittau
authored andcommitted
Add missing BaseException.__suppress_context__ attribute (#2876)
See also PEP 415: https://www.python.org/dev/peps/pep-0415/ Fixes #2875.
1 parent 7c80c52 commit afe6656

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stdlib/2/__builtin__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,7 @@ class BaseException(object):
14511451
if sys.version_info >= (3,):
14521452
__cause__: Optional[BaseException]
14531453
__context__: Optional[BaseException]
1454+
__suppress_context__: bool
14541455
__traceback__: Optional[TracebackType]
14551456
def __init__(self, *args: object) -> None: ...
14561457
if sys.version_info < (3,):

stdlib/2and3/builtins.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,7 @@ class BaseException(object):
14511451
if sys.version_info >= (3,):
14521452
__cause__: Optional[BaseException]
14531453
__context__: Optional[BaseException]
1454+
__suppress_context__: bool
14541455
__traceback__: Optional[TracebackType]
14551456
def __init__(self, *args: object) -> None: ...
14561457
if sys.version_info < (3,):

0 commit comments

Comments
 (0)