From a81b9b825e990757cef5b8b2bf0b622063f62e91 Mon Sep 17 00:00:00 2001 From: Lethephyr <59792666+Lethephyr@users.noreply.github.com> Date: Tue, 17 Nov 2026 23:47:55 +0000 Subject: [PATCH 1/2] fix: avoid redundant cast in JaxBackend._next_key --- decent_array/interoperability/_jax/jax_backend.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 From 969a3d9020d068af00997dddfa08fe12fe305824 Mon Sep 17 00:00:00 2001 From: Lethephyr <59792666+Lethephyr@users.noreply.github.com> Date: Wed, 18 Nov 2026 18:37:32 +0000 Subject: [PATCH 2/2] meta: bump version to 0.2.8 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."