diff --git a/decent_array/interoperability/_jax/jax_backend.py b/decent_array/interoperability/_jax/jax_backend.py index 66e7d80..622f4e5 100644 --- a/decent_array/interoperability/_jax/jax_backend.py +++ b/decent_array/interoperability/_jax/jax_backend.py @@ -431,8 +431,9 @@ def choice(self, x: Array, size: int, replace: bool = True) -> Array: def _next_key(self) -> jax.Array: """Split the stored key, advance state, return a sub-key for one draw.""" - self._key, sub = jax.random.split(self._key) - return cast("jax.Array", sub) + self._key, raw_sub = jax.random.split(self._key) + sub: jax.Array = raw_sub + return sub # Dtypes diff --git a/pyproject.toml b/pyproject.toml index 7313e52..4cafebd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "decent-array" -version = "0.2.7" +version = "0.2.8" authors = [{name = "Simon Granström"}, {name = "Nicola Bastianello"}] maintainers = [{name = "Team Decent"}] description = "A library of array operations and linear algebra primitives for interoperability across ML frameworks."