mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
builtins: add BaseException.add_note in py311 (#7860)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user