mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
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:
committed by
Sebastian Rittau
parent
7c80c52a7a
commit
afe665690c
@@ -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,):
|
||||
|
||||
@@ -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,):
|
||||
|
||||
Reference in New Issue
Block a user