From 5d7eb243d736cedf093b27d763f185ebba9d8089 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 15 Feb 2022 12:39:35 +0000 Subject: [PATCH 1/2] Fix positional-only differneces in `sys` --- stdlib/sys.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/sys.pyi b/stdlib/sys.pyi index 7fa626336535..44c7b81852c4 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__(__type_: type[BaseException], __value: BaseException, __traceback: TracebackType | None) -> None: ... def exc_info() -> _OptExcInfo: ... # sys.exit() accepts an optional argument of anything printable From 7731f6211396a066c3974fd856d4d0b391f3ffd1 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 15 Feb 2022 06:03:41 -0800 Subject: [PATCH 2/2] Update stdlib/sys.pyi --- stdlib/sys.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/sys.pyi b/stdlib/sys.pyi index 44c7b81852c4..0c4cf5be3783 100644 --- a/stdlib/sys.pyi +++ b/stdlib/sys.pyi @@ -216,7 +216,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) -> 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