From 32e9a0fbc13d6e00574e8487a2c3a4b86cb4117f Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 15 Feb 2022 14:12:58 +0000 Subject: [PATCH] Fix positional-only differences in `sys` (#7221) --- stdlib/sys.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/sys.pyi b/stdlib/sys.pyi index 7fa626336..0c4cf5be3 100644 --- a/stdlib/sys.pyi +++ b/stdlib/sys.pyi @@ -215,8 +215,8 @@ def _clear_type_cache() -> None: ... 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) -> None: ... +def __displayhook__(__value: object) -> None: ... +def __excepthook__(__exctype: type[BaseException], __value: BaseException, __traceback: TracebackType | None) -> None: ... def exc_info() -> _OptExcInfo: ... # sys.exit() accepts an optional argument of anything printable