From 4be088986d4c58b3dc390d1b248768faf24f86bc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:11:59 +0000 Subject: [PATCH 1/2] Initial plan From 5bb64f5d32e6c9fe811a71d43876f4f3e862a6b6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:18:10 +0000 Subject: [PATCH 2/2] Fix warning in free threading Python by declaring module as GIL-safe Co-authored-by: hzhangxyz <11623447+hzhangxyz@users.noreply.github.com> --- apyds/ds.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apyds/ds.cc b/apyds/ds.cc index 4cb506d..17b3490 100644 --- a/apyds/ds.cc +++ b/apyds/ds.cc @@ -108,7 +108,7 @@ auto rule_rename(ds::rule_t* rule, ds::rule_t* prefix_and_suffix, int length) -> return std::unique_ptr(result); } -PYBIND11_MODULE(_ds, m) { +PYBIND11_MODULE(_ds, m, py::mod_gil_not_used()) { auto string_t = py::class_(m, "String"); auto item_t = py::class_(m, "Item"); auto variable_t = py::class_(m, "Variable");