From a8661496c6340c0d6f4f1adefa9ec5ec5068e2d7 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:37:58 -0800 Subject: [PATCH] reverse condition --- pandas/compat/_constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/compat/_constants.py b/pandas/compat/_constants.py index 9e62c28d88d73..8c817c1b6e386 100644 --- a/pandas/compat/_constants.py +++ b/pandas/compat/_constants.py @@ -18,7 +18,7 @@ PY313 = sys.version_info >= (3, 13) PYPY = platform.python_implementation() == "PyPy" WASM = (sys.platform == "emscripten") or (platform.machine() in ["wasm32", "wasm64"]) -IS_FREE_THREADING = False if not PY313 else sys._is_gil_enabled() # type: ignore[attr-defined] +IS_FREE_THREADING = False if not PY313 else not sys._is_gil_enabled() # type: ignore[attr-defined] ISMUSL = "musl" in (sysconfig.get_config_var("HOST_GNU_TYPE") or "") REF_COUNT = 2 if PY311 else 3