diff --git a/stdlib/sys.pyi b/stdlib/sys.pyi index 274e4b90fd6e..b5829884482a 100644 --- a/stdlib/sys.pyi +++ b/stdlib/sys.pyi @@ -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