Skip to content

Commit

Permalink
python: Apply codacy review
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Sep 24, 2024
1 parent b4ea965 commit dcf3a15
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bindings/python/pinocchio/shortcuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _buildModelsFromUrdf(
root_joint_name=None,
verbose=False,
meshLoader=None,
geometry_types=[pin.GeometryType.COLLISION, pin.GeometryType.VISUAL],
geometry_types=None,
) -> Tuple[pin.Model, pin.GeometryModel, pin.GeometryModel]:
if geometry_types is None:
geometry_types = [pin.GeometryType.COLLISION, pin.GeometryType.VISUAL]
Expand Down Expand Up @@ -176,11 +176,14 @@ def _buildModelsFromSdf(
root_joint=None,
root_link_name="",
root_joint_name=None,
parent_guidance=[],
parent_guidance=None,
verbose=False,
meshLoader=None,
geometry_types=None,
):
if parent_guidance is None:
parent_guidance = []

if geometry_types is None:
geometry_types = [pin.GeometryType.COLLISION, pin.GeometryType.VISUAL]

Expand Down

0 comments on commit dcf3a15

Please sign in to comment.