Skip to content

Commit

Permalink
Fix black style after new 2024 release
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Feb 19, 2024
1 parent 674df9b commit ffb05c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/rod/builder/primitive_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class PrimitiveBuilder(abc.ABC):
name: str
mass: float

element: Union[
rod.Model, rod.Link, rod.Inertial, rod.Collision, rod.Visual
] = dataclasses.field(
default=None, init=False, repr=False, hash=False, compare=False
element: Union[rod.Model, rod.Link, rod.Inertial, rod.Collision, rod.Visual] = (
dataclasses.field(
default=None, init=False, repr=False, hash=False, compare=False
)
)

def build(
Expand Down
8 changes: 5 additions & 3 deletions src/rod/pretty_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ def list_to_string(obj: List[Any], level: int = 1) -> str:
spacing_level_up = spacing * (level - 1)

list_str = [
DataclassPrettyPrinter.dataclass_to_str(obj=el, level=level + 1)
if dataclasses.is_dataclass(el)
else str(el)
(
DataclassPrettyPrinter.dataclass_to_str(obj=el, level=level + 1)
if dataclasses.is_dataclass(el)
else str(el)
)
for el in obj
]

Expand Down

0 comments on commit ffb05c8

Please sign in to comment.