Skip to content

Commit

Permalink
ScalarLike now dispatches to jaxtyping.ArrayLike rather than jax.typi…
Browse files Browse the repository at this point in the history
…ng.ArrayLike. This causes better behaviour during docgen.
  • Loading branch information
patrick-kidger committed Feb 15, 2025
1 parent 6813074 commit d3c6b0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jaxtyping/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ class PRNGKeyArray:

return Shaped[jax.Array, ""]
elif item == "ScalarLike":
import jax.typing
from . import ArrayLike

return Shaped[jax.typing.ArrayLike, ""]
return Shaped[ArrayLike, ""]
elif item == "PyTree":
from ._pytree_type import PyTree

Expand Down

0 comments on commit d3c6b0f

Please sign in to comment.