suppress pyrefly errors in mujoco

Startblock:
  * // Put other blockers before this line to avoid churning.
  * has lgtm
  * is approved
  * and then
  * all comments are resolved
  * and then
PiperOrigin-RevId: 961854282
Change-Id: I9d323a8ef9f36ffe69cc62d449849eac82dc6858
This commit is contained in:
Hana Joo
2026-08-09 15:44:49 -07:00
committed by Copybara-Service
parent d6dc966c04
commit 0aad65868d
10 changed files with 61 additions and 61 deletions
@@ -117,7 +117,7 @@ class GhostRenderer:
self._viewer.extra_geoms.clear()
if self._last_time is None or data.time < self._last_time:
self._history.clear()
if not self._history or data.time > self._last_time:
if not self._history or data.time > self._last_time: # pyrefly: ignore[unsupported-operation]
self._history.append((
data.time,
data.geom_xpos.copy(),
@@ -129,7 +129,7 @@ class GhostRenderer:
while len(self._history) > 1 and self._history[1][0] <= target_time:
self._history.popleft()
_, xpos, xmat = self._history[0]
_, xpos, xmat = self._history[0] # pyrefly: ignore[bad-assignment]
if len(xpos) != model.ngeom or len(xmat) != model.ngeom:
return
@@ -70,7 +70,7 @@ def main(argv: list[str]) -> None:
print(f'Error saving image to `{_OUTPUT.value}`: {ex}')
sys.exit(-3)
return 0
return 0 # pyrefly: ignore[bad-return]
if __name__ == '__main__':