[Tool] avoid passing port_names down

This commit is contained in:
Jan Petykiewicz 2026-03-31 17:12:41 -07:00
commit 20c845a881
2 changed files with 33 additions and 3 deletions

View file

@ -240,7 +240,7 @@ class Tool:
BuildError if an impossible or unsupported geometry is requested.
"""
# Fallback implementation using traceL
port_names = kwargs.get('port_names', ('A', 'B'))
port_names = kwargs.pop('port_names', ('A', 'B'))
tree = self.traceL(
ccw,
length,
@ -288,7 +288,7 @@ class Tool:
BuildError if an impossible or unsupported geometry is requested.
"""
# Fallback implementation using traceS
port_names = kwargs.get('port_names', ('A', 'B'))
port_names = kwargs.pop('port_names', ('A', 'B'))
tree = self.traceS(
length,
jog,