diff --git a/bindings/python/pinocchio/visualize/meshcat_visualizer.py b/bindings/python/pinocchio/visualize/meshcat_visualizer.py index 4933b212f..fa311385e 100644 --- a/bindings/python/pinocchio/visualize/meshcat_visualizer.py +++ b/bindings/python/pinocchio/visualize/meshcat_visualizer.py @@ -3,7 +3,7 @@ import warnings from pathlib import Path -from typing import ClassVar, TypeAlias +from typing import ClassVar import numpy as np @@ -24,10 +24,10 @@ # DaeMeshGeometry import xml.etree.ElementTree as Et -from typing import Any, Union +from typing import Any #TODO: Remove quote when 20.04 is not supported -MsgType: TypeAlias = "dict[str, Union[str, bytes, bool, float, 'MsgType']]" +MsgType = "dict[str, Union[str, bytes, bool, float, 'MsgType']]" try: import hppfcl