Skip to content

Commit 3302680

Browse files
[Kamino] Fix type alias on reset callbacks on python 3.10 (#4143)
1 parent 05df96e commit 3302680

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix type alias leading to TypeError on Python 3.10 when using SolverKamino

newton/_src/solvers/kamino/_src/solver_kamino_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class SolverKaminoImpl(SolverBase):
9898
options for the linear solver and preconditioning.
9999
"""
100100

101-
ResetCallbackType = Callable[["SolverKaminoImpl", StateKamino, wp.array[wp.bool] | None], None]
101+
ResetCallbackType = Callable[["SolverKaminoImpl", StateKamino, "wp.array[wp.bool] | None"], None]
102102
"""Defines the type signature for reset callback functions."""
103103

104104
StepCallbackType = Callable[["SolverKaminoImpl", StateKamino, StateKamino, ControlKamino, ContactsKamino], None]

0 commit comments

Comments
 (0)