Skip to content

Commit 38c9bca

Browse files
committed
fix: IS_FREE_THREAD
1 parent 6e1e2f4 commit 38c9bca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/typed_diskcache/core/const.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,4 @@
4646
)
4747
DEFAULT_LOG_CONTEXT = getenv(DEFAULT_LOG_CONTEXT_KEY, "main")
4848
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)."""
49+
IS_FREE_THREAD = "free-threading" in sys.version and sys.version_info >= (3, 13)

0 commit comments

Comments
 (0)