Reverting to Union for python 3.9
This commit is contained in:
@@ -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,
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user