diff --git a/src/faebryk/libs/examples/pickers.py b/src/faebryk/libs/examples/pickers.py index c3fd5e37..cab62c0c 100644 --- a/src/faebryk/libs/examples/pickers.py +++ b/src/faebryk/libs/examples/pickers.py @@ -265,7 +265,7 @@ def pick_battery(module: F.Battery): ) -def pick_switch(module: "_TSwitch[F.Electrical]"): +def pick_switch(module: "_TSwitch"): module.add(F.can_attach_to_footprint_symmetrically()) pick_module_by_params( module, diff --git a/src/faebryk/libs/picker/jlcpcb/jlcpcb.py b/src/faebryk/libs/picker/jlcpcb/jlcpcb.py index 41fe28fd..c4cab9cb 100644 --- a/src/faebryk/libs/picker/jlcpcb/jlcpcb.py +++ b/src/faebryk/libs/picker/jlcpcb/jlcpcb.py @@ -365,6 +365,7 @@ def attach( ): p.override(value) + attach(module, self.partno) module.add( F.has_descriptive_properties_defined( { @@ -380,7 +381,6 @@ def attach( ) ) - attach(module, self.partno) module.add(has_part_picked_defined(JLCPCB_Part(self.partno))) if logger.isEnabledFor(logging.DEBUG): logger.debug(