Reverting to Union for python 3.9

This commit is contained in:
Abhishek Joshi
2024-07-30 15:30:16 -05:00
parent 0c8f0393ba
commit a470f26a4b
+2 -2
View File
@@ -14,7 +14,7 @@
# ============================================================================== # ==============================================================================
"""Built-in shapes for USD exporter.""" """Built-in shapes for USD exporter."""
from typing import Dict, Any, Tuple, Optional from typing import Dict, Any, Tuple, Optional, Union
import mujoco import mujoco
import numpy as np import numpy as np
@@ -270,7 +270,7 @@ def decouple_config(config: Dict[str, Any]):
def mesh_config_generator( def mesh_config_generator(
name: str, name: str,
geom_type: int | mujoco.mjtGeom, geom_type: Union[int, mujoco.mjtGeom],
size: np.ndarray, size: np.ndarray,
decouple: bool = False, decouple: bool = False,
): ):