From 53ef0d7f133a2b32894460912f81d39a5cefa34f Mon Sep 17 00:00:00 2001 From: Martin Schubert Date: Tue, 24 Oct 2023 17:28:55 -0700 Subject: [PATCH] Fix mypy --- src/invrs_opt/lbfgsb/lbfgsb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invrs_opt/lbfgsb/lbfgsb.py b/src/invrs_opt/lbfgsb/lbfgsb.py index bba36c2..4959a6e 100644 --- a/src/invrs_opt/lbfgsb/lbfgsb.py +++ b/src/invrs_opt/lbfgsb/lbfgsb.py @@ -187,8 +187,8 @@ def update_fn( params, lbfgsb_state_dict = state # Avoid in-place updates. lbfgsb_state_dict = copy.deepcopy(lbfgsb_state_dict) - scipy_lbfgsb_state = ScipyLbfgsbState( # type: ignore[arg-type] - **lbfgsb_state_dict + scipy_lbfgsb_state = ScipyLbfgsbState( + **lbfgsb_state_dict # type: ignore[arg-type] ) latent_params = _to_pytree(scipy_lbfgsb_state.x, params)