From 985b3f1c9e47ebd05a53c0892e5a96e63e6dace0 Mon Sep 17 00:00:00 2001 From: Saran Tunyasuvunakool Date: Thu, 10 Nov 2022 10:55:49 -0800 Subject: [PATCH] Remove custom code path when run under type checking. PiperOrigin-RevId: 487584485 Change-Id: I1b1c773240bb033e50205648f4611f4702c0e6e8 --- python/mujoco/simulate.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/python/mujoco/simulate.py b/python/mujoco/simulate.py index 8c1f89ee..6f7d4c9c 100644 --- a/python/mujoco/simulate.py +++ b/python/mujoco/simulate.py @@ -21,7 +21,6 @@ import math import os import threading import time -import typing from typing import Callable, Optional import glfw @@ -225,10 +224,6 @@ def launch(model: Optional[mujoco.MjModel] = None, def launch_repl(model: mujoco.MjModel, data: mujoco.MjData) -> None: """EXPERIMENTAL FEATURE: Launches the Simulate GUI in REPL mode.""" - if typing.TYPE_CHECKING: - launch(model, data, run_physics_thread=False) - return - try: import IPython # pylint: disable=g-import-not-at-top has_ipython = True