Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schubert authored and Martin Schubert committed Oct 25, 2023
1 parent e08ff95 commit 53ef0d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/invrs_opt/lbfgsb/lbfgsb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53ef0d7

Please sign in to comment.