Add __note__ to BaseException in Python 3.11 (#6633)

This commit is contained in:
Pavel Karateev
2021-12-20 18:27:04 +03:00
committed by GitHub
parent e6911530d4
commit b1b958def2

View File

@@ -1499,6 +1499,8 @@ class BaseException(object):
__context__: BaseException | None
__suppress_context__: bool
__traceback__: TracebackType | None
if sys.version_info >= (3, 11):
__note__: str | None
def __init__(self, *args: object) -> None: ...
def __str__(self) -> str: ...
def __repr__(self) -> str: ...