From f3ec94bce8ca43a29a6dea25148f05fd37f6c472 Mon Sep 17 00:00:00 2001 From: Guo Ci Date: Thu, 13 Nov 2025 16:49:00 -0500 Subject: [PATCH 1/2] Add `__interactivehook__` to `sys` module --- stdlib/sys/__init__.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/sys/__init__.pyi b/stdlib/sys/__init__.pyi index 97e65d3094aa..83c49a105824 100644 --- a/stdlib/sys/__init__.pyi +++ b/stdlib/sys/__init__.pyi @@ -424,6 +424,8 @@ if sys.platform == "win32": def intern(string: str, /) -> str: ... +__interactivehook__: Callable[[], Any] + if sys.version_info >= (3, 13): def _is_gil_enabled() -> bool: ... def _clear_internal_caches() -> None: ... From 68584a0f775dbcb52cccaf6af8617653006ad15f Mon Sep 17 00:00:00 2001 From: Guo Ci Date: Fri, 14 Nov 2025 15:19:51 -0500 Subject: [PATCH 2/2] Update stdlib/sys/__init__.pyi Co-authored-by: Sebastian Rittau --- stdlib/sys/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/sys/__init__.pyi b/stdlib/sys/__init__.pyi index 83c49a105824..6d23a9766ec2 100644 --- a/stdlib/sys/__init__.pyi +++ b/stdlib/sys/__init__.pyi @@ -424,7 +424,7 @@ if sys.platform == "win32": def intern(string: str, /) -> str: ... -__interactivehook__: Callable[[], Any] +__interactivehook__: Callable[[], object] if sys.version_info >= (3, 13): def _is_gil_enabled() -> bool: ...