Skip to content

Comments

Fix dtype type annotations to use jax.typing.DTypeLike.#129

Open
Jammf wants to merge 1 commit intogoogle-deepmind:mainfrom
Jammf:fix-dtypelike
Open

Fix dtype type annotations to use jax.typing.DTypeLike.#129
Jammf wants to merge 1 commit intogoogle-deepmind:mainfrom
Jammf:fix-dtypelike

Conversation

@Jammf
Copy link

@Jammf Jammf commented Oct 16, 2025

The named_axis functions full(), zeros() and ones() annotate their dtype parameters with the non-existent np.DTypeLike. This change replaces the annotations with jax.typing.DTypeLike | None to match the dtype parameter of their wrapped functions.

The `named_axis` functions `full()`, `zeros()` and `ones()` annotate their dtype parameters with the non-existent `np.DTypeLike`. This change replaces the annotations with `jax.typing.DTypeLike | None` to match the dtype parameter of their wrapped functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant