Skip to content

Commit

Permalink
python: Make type alias working in python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Jan 7, 2025
1 parent 7449bd2 commit 3d78598
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bindings/python/pinocchio/visualize/meshcat_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import warnings
from pathlib import Path
from typing import ClassVar
from typing import ClassVar, TypeAlias

import numpy as np

Expand All @@ -24,9 +24,10 @@

# DaeMeshGeometry
import xml.etree.ElementTree as Et
from typing import Any, Optional, Union
from typing import Any, Union

MsgType = dict[str, Union[str, bytes, bool, float, "MsgType"]]
#TODO: Remove quote when 20.04 is not supported
MsgType: TypeAlias = "dict[str, Union[str, bytes, bool, float, 'MsgType']]"

try:
import hppfcl
Expand Down

0 comments on commit 3d78598

Please sign in to comment.