Skip to content

Commit

Permalink
Add missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kklemon committed Sep 18, 2024
1 parent 080c905 commit 3930882
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/penai/hierarchy_generation/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def from_penpot_shape(cls, shape: PenpotShapeElement) -> Self:
for child in shape.get_direct_children_shapes():
element.children.append(cls.from_penpot_shape(child))

return element

def flatten(self) -> Iterable[Self]:
yield self

Expand Down

0 comments on commit 3930882

Please sign in to comment.