Why not `isinstance(x, args)`, avoiding a "for" with list concatenations? Written this way, a single pin can appear twice (e.g. Analog+Digital pin).