Skip to content

Commit

Permalink
python: Use new Optional syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Jan 7, 2025
1 parent 3d78598 commit 839eca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/pinocchio/visualize/meshcat_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def lower(self, object_data: Any) -> MsgType:
}

class DaeMeshGeometry(mg.ReferenceSceneElement):
def __init__(self, dae_path: str, cache: Optional[set[str]] = None) -> None:
def __init__(self, dae_path: str, cache: set[str] | None = None) -> None:
"""Load Collada files with texture images.
Inspired from
https://gist.github.com/danzimmerman/a392f8eadcf1166eb5bd80e3922dbdc5
Expand Down

0 comments on commit 839eca0

Please sign in to comment.