From d71ede927caafd7414eeabbde372f752e315ec1c Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 11 Nov 2025 18:30:23 -0800 Subject: [PATCH] [pather] code style changes --- masque/builder/pather.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/masque/builder/pather.py b/masque/builder/pather.py index d0deacb..c1e7d31 100644 --- a/masque/builder/pather.py +++ b/masque/builder/pather.py @@ -458,8 +458,8 @@ class Pather(Builder): portspec, ccw, length, - tool_port_names=tool_port_names, - plug_into=plug_into, + tool_port_names = tool_port_names, + plug_into = plug_into, **kwargs, ) @@ -678,15 +678,12 @@ class Pather(Builder): bound_types = set() if 'bound_type' in kwargs: - bound_types.add(kwargs['bound_type']) - bound = kwargs['bound'] - del kwargs['bound_type'] - del kwargs['bound'] + bound_types.add(kwargs.pop('bound_type')) + bound = kwargs.pop('bound') for bt in ('emin', 'emax', 'pmin', 'pmax', 'xmin', 'xmax', 'ymin', 'ymax', 'min_past_furthest'): if bt in kwargs: bound_types.add(bt) - bound = kwargs[bt] - del kwargs[bt] + bound = kwargs.pop('bt') if not bound_types: raise BuildError('No bound type specified for mpath')