Let 'traceback' possibly be None in sys.__excepthook__ (#6678)

This commit is contained in:
Denis Laxalde
2021-12-24 10:11:00 +01:00
committed by GitHub
parent 48f13e451a
commit e1ae89874b

View File

@@ -161,7 +161,7 @@ def _current_frames() -> dict[int, FrameType]: ...
def _getframe(__depth: int = ...) -> FrameType: ...
def _debugmallocstats() -> None: ...
def __displayhook__(value: object) -> None: ...
def __excepthook__(type_: Type[BaseException], value: BaseException, traceback: TracebackType) -> None: ...
def __excepthook__(type_: Type[BaseException], value: BaseException, traceback: TracebackType | None) -> None: ...
def exc_info() -> _OptExcInfo: ...
# sys.exit() accepts an optional argument of anything printable