Skip to content

Commit 707fcdb

Browse files
nimrod-gileadicopybara-github
authored andcommitted
Correct return type on viewer.launch_passive.
PiperOrigin-RevId: 525753923 Change-Id: Idfff26e89deaeb37dd8b179106640f05c0deabb2
1 parent 0630b75 commit 707fcdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/mujoco/viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def launch_from_path(path: str) -> None:
362362
_launch_internal(run_physics_thread=True, loader=_file_loader(path))
363363

364364

365-
def launch_passive(model: mujoco.MjModel, data: mujoco.MjData) -> None:
365+
def launch_passive(model: mujoco.MjModel, data: mujoco.MjData) -> Handle:
366366
"""Launches a passive Simulate GUI without blocking the running thread."""
367367
if not isinstance(model, mujoco.MjModel):
368368
raise ValueError(f'`model` is not a mujoco.MjModel: got {model!r}')

0 commit comments

Comments
 (0)