We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e1e2f4 commit 38c9bcaCopy full SHA for 38c9bca
src/typed_diskcache/core/const.py
@@ -46,5 +46,4 @@
46
)
47
DEFAULT_LOG_CONTEXT = getenv(DEFAULT_LOG_CONTEXT_KEY, "main")
48
DEFAULT_LOG_LEVEL = getenv(DEFAULT_LOG_LEVEL_KEY, "info").upper()
49
-IS_FREE_THREAD = sys.version_info >= (3, 13) and not sys._is_gil_enabled() # noqa: SLF001
50
-"""Whether the current Python interpreter is free-threading (without GIL)."""
+IS_FREE_THREAD = "free-threading" in sys.version and sys.version_info >= (3, 13)
0 commit comments