Skip to content

Commit

Permalink
fixup! Add shared abstraction for STEP assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Sep 3, 2023
1 parent c08f3f5 commit ce21b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cadquery_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ def __init__(self, name: str):
for printer in Message.DefaultMessenger_s().Printers():
printer.SetTraceLevel(Message_Gravity.Message_Fail)

def add_body(self, body: cq.Workplane, name: str, color: cq.Color):
def add_body(self, body: cq.Workplane, name: str, color: cq.Color) -> None:
"""
Add a body to the assembly.
"""
self.assembly.add(body, name=name, color=color)

def save(self, out_path: str):
def save(self, out_path: str) -> None:
"""
Write the STEP file to the specified path.
"""
Expand Down

0 comments on commit ce21b40

Please sign in to comment.