diff --git a/src/nifreeze/model/gpr.py b/src/nifreeze/model/gpr.py index 938c799..3d65662 100644 --- a/src/nifreeze/model/gpr.py +++ b/src/nifreeze/model/gpr.py @@ -212,7 +212,7 @@ def _constrained_optimization( ) -> tuple[float, float]: options = {} if self.optimizer == "fmin_l_bfgs_b": - from sklearn.utils.optimize import _check_optimize_result + from sklearn.utils.optimize import _check_optimize_result # type: ignore for name in LBFGS_CONFIGURABLE_OPTIONS: if (value := getattr(self, name, None)) is not None: