Skip to content

Commit

Permalink
Update PyTree type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Mar 6, 2024
1 parent 3b0077c commit 53bac0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jaxsim/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
VectorJax = ArrayJax
MatrixJax = ArrayJax

PyTree = dict[Hashable, "PyTree"] | list["PyTree"] | tuple["PyTree"] | None | Any
PyTree = (
dict[Hashable, "PyTree"] | list["PyTree"] | tuple["PyTree"] | None | jax.Array | Any
)

# =======================
# Mixed JAX / NumPy types
Expand Down

0 comments on commit 53bac0b

Please sign in to comment.