From 1244636a0167c89787c0af5f199d7b4a6f5cc9ba Mon Sep 17 00:00:00 2001 From: Peter Bierma Date: Thu, 2 Jan 2025 15:28:32 -0500 Subject: [PATCH] Add stub for `sys._is_gil_enabled()` (#13358) --- stdlib/sys/__init__.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/sys/__init__.pyi b/stdlib/sys/__init__.pyi index fb1e24f3e..5695ca256 100644 --- a/stdlib/sys/__init__.pyi +++ b/stdlib/sys/__init__.pyi @@ -393,6 +393,10 @@ if sys.platform == "win32": def getwindowsversion() -> _WinVersion: ... def intern(string: str, /) -> str: ... + +if sys.version_info >= (3, 13): + def _is_gil_enabled() -> bool: ... + def is_finalizing() -> bool: ... def breakpointhook(*args: Any, **kwargs: Any) -> Any: ...