Skip to content

Commit

Permalink
Add __note__ to BaseException in Python 3.11 (#6633)
Browse files Browse the repository at this point in the history
  • Loading branch information
lancelote authored Dec 20, 2021
1 parent e691153 commit b1b958d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit b1b958d

Please sign in to comment.