diff --git a/src/highs_bindings.cpp b/src/highs_bindings.cpp index 64db9172d3..5b4069a96c 100644 --- a/src/highs_bindings.cpp +++ b/src/highs_bindings.cpp @@ -642,7 +642,7 @@ HighsStatus highs_setCallback( data.ptr()); } -PYBIND11_MODULE(_core, m) { +PYBIND11_MODULE(_core, m, py::mod_gil_not_used()) { // To keep a smaller diff, for reviewers, the declarations are not moved, but // keep in mind: // C++ enum classes :: don't need .export_values()