mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 21:12:25 +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): ...
|
||||
|
||||
Reference in New Issue
Block a user