[pather] code style changes

This commit is contained in:
Jan Petykiewicz 2025-11-11 18:30:23 -08:00
parent 83850c1cbc
commit d71ede927c

View File

@ -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')