Add missing BaseException.__suppress_context__ attribute (#2876)

See also PEP 415: https://www.python.org/dev/peps/pep-0415/

Fixes #2875.
This commit is contained in:
wouter bolsterlee
2019-03-16 22:16:01 +01:00
committed by Sebastian Rittau
parent 7c80c52a7a
commit afe665690c
2 changed files with 2 additions and 0 deletions

View File

@@ -1451,6 +1451,7 @@ class BaseException(object):
if sys.version_info >= (3,):
__cause__: Optional[BaseException]
__context__: Optional[BaseException]
__suppress_context__: bool
__traceback__: Optional[TracebackType]
def __init__(self, *args: object) -> None: ...
if sys.version_info < (3,):

View File

@@ -1451,6 +1451,7 @@ class BaseException(object):
if sys.version_info >= (3,):
__cause__: Optional[BaseException]
__context__: Optional[BaseException]
__suppress_context__: bool
__traceback__: Optional[TracebackType]
def __init__(self, *args: object) -> None: ...
if sys.version_info < (3,):