From a116653e5f3ece140189d4acdeedc3762df33767 Mon Sep 17 00:00:00 2001 From: Google DeepMind Date: Mon, 28 Jul 2025 10:18:17 -0700 Subject: [PATCH] Remove unnecessary handling of `value` attribute. PiperOrigin-RevId: 788060431 Change-Id: I56acafb211441bd74dbd6e80ab1d8f82ac808c3a --- mjx/mujoco/mjx/_src/types.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mjx/mujoco/mjx/_src/types.py b/mjx/mujoco/mjx/_src/types.py index 19c84faa..83719bee 100644 --- a/mjx/mujoco/mjx/_src/types.py +++ b/mjx/mujoco/mjx/_src/types.py @@ -1139,11 +1139,6 @@ class Data(PyTreeNode): }[type(self._impl)] def __getattr__(self, name: str): - if name == 'value': - # Special case for NNX, the value attribute may not exist on the parent - # PyTreeNode, before it exists on the child PyTreeNode. Thanks NNX. - return object.__getattribute__(self, 'value') - try: impl_instsance = object.__getattribute__(self, '_impl') val = getattr(impl_instsance, name)