builtins: add BaseException.add_note in py311 (#7860)

This commit is contained in:
Jelle Zijlstra
2022-05-17 20:32:28 -07:00
committed by GitHub
parent a01f98c361
commit bd394d2486
2 changed files with 4 additions and 3 deletions

View File

@@ -1654,10 +1654,12 @@ class BaseException:
__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 with_traceback(self: Self, __tb: TracebackType | None) -> Self: ...
if sys.version_info >= (3, 11):
# only present after add_note() is called
__notes__: list[str]
def add_note(self, __note: str) -> None: ...
class GeneratorExit(BaseException): ...
class KeyboardInterrupt(BaseException): ...

View File

@@ -43,7 +43,6 @@ asyncio.sslproto._SSLProtocolTransport.set_read_buffer_limits
asyncio.sslproto.add_flowcontrol_defaults
bdb.Breakpoint.clearBreakpoints
binascii.a2b_base64
builtins.BaseException.add_note
builtins.dict.get
builtins.property.__set_name__ # Doesn't actually exist
concurrent.futures.ProcessPoolExecutor.__init__