From b18b930f0e2fc13a128a558e91c03c5234d43950 Mon Sep 17 00:00:00 2001 From: diegoferigo Date: Wed, 6 Dec 2023 05:19:22 +0100 Subject: [PATCH] Update typing of random key --- src/jaxsim/high_level/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jaxsim/high_level/model.py b/src/jaxsim/high_level/model.py index b7131da2d..db64e4294 100644 --- a/src/jaxsim/high_level/model.py +++ b/src/jaxsim/high_level/model.py @@ -491,7 +491,7 @@ def joint_positions(self, joint_names: tuple[str, ...] = None) -> jtp.Vector: @functools.partial(oop.jax_tf.method_ro, static_argnames=["joint_names"]) def joint_random_positions( - self, joint_names: tuple[str, ...] = None, key: jax.random.PRNGKeyArray = None + self, joint_names: tuple[str, ...] = None, key: jax.Array = None ) -> jtp.Vector: """"""