From e17e58c6b559d4981b48865049acedc1ffb9fd00 Mon Sep 17 00:00:00 2001 From: Kristian Hartikainen Date: Thu, 13 Nov 2025 20:11:10 +0000 Subject: [PATCH] Fix `instsance` -> `instance` --- mjx/mujoco/mjx/_src/types.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mjx/mujoco/mjx/_src/types.py b/mjx/mujoco/mjx/_src/types.py index 3560e32f..7dffc22c 100644 --- a/mjx/mujoco/mjx/_src/types.py +++ b/mjx/mujoco/mjx/_src/types.py @@ -954,8 +954,8 @@ class Model(PyTreeNode): return object.__getattribute__(self, 'value') try: - impl_instsance = object.__getattribute__(self, '_impl') - val = getattr(impl_instsance, name) + impl_instance = object.__getattribute__(self, '_impl') + val = getattr(impl_instance, name) warnings.warn( f'Accessing `{name}` directly from `Model` is deprecated. ' f'Access it via `model._impl.{name}` instead.', @@ -1193,8 +1193,8 @@ class Data(PyTreeNode): def __getattr__(self, name: str): try: - impl_instsance = object.__getattribute__(self, '_impl') - val = getattr(impl_instsance, name) + impl_instance = object.__getattribute__(self, '_impl') + val = getattr(impl_instance, name) warnings.warn( f'Accessing `{name}` directly from `Data` is deprecated. ' f'Access it via `data._impl.{name}` instead.',