From 707fcdb44f1ba9416249e654833e144d8abe6a4a Mon Sep 17 00:00:00 2001 From: Nimrod Gileadi Date: Thu, 20 Apr 2023 08:29:53 -0700 Subject: [PATCH] Correct return type on viewer.launch_passive. PiperOrigin-RevId: 525753923 Change-Id: Idfff26e89deaeb37dd8b179106640f05c0deabb2 --- python/mujoco/viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mujoco/viewer.py b/python/mujoco/viewer.py index 375c01bd..1ff1c66d 100644 --- a/python/mujoco/viewer.py +++ b/python/mujoco/viewer.py @@ -362,7 +362,7 @@ def launch_from_path(path: str) -> None: _launch_internal(run_physics_thread=True, loader=_file_loader(path)) -def launch_passive(model: mujoco.MjModel, data: mujoco.MjData) -> None: +def launch_passive(model: mujoco.MjModel, data: mujoco.MjData) -> Handle: """Launches a passive Simulate GUI without blocking the running thread.""" if not isinstance(model, mujoco.MjModel): raise ValueError(f'`model` is not a mujoco.MjModel: got {model!r}')