From a470f26a4ba8e78ab9f5bc581a7866c35a366551 Mon Sep 17 00:00:00 2001 From: Abhishek Joshi Date: Tue, 30 Jul 2024 15:30:16 -0500 Subject: [PATCH] Reverting to Union for python 3.9 --- python/mujoco/usd/shapes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mujoco/usd/shapes.py b/python/mujoco/usd/shapes.py index 28b340f8..63592c60 100644 --- a/python/mujoco/usd/shapes.py +++ b/python/mujoco/usd/shapes.py @@ -14,7 +14,7 @@ # ============================================================================== """Built-in shapes for USD exporter.""" -from typing import Dict, Any, Tuple, Optional +from typing import Dict, Any, Tuple, Optional, Union import mujoco import numpy as np @@ -270,7 +270,7 @@ def decouple_config(config: Dict[str, Any]): def mesh_config_generator( name: str, - geom_type: int | mujoco.mjtGeom, + geom_type: Union[int, mujoco.mjtGeom], size: np.ndarray, decouple: bool = False, ):