- raise NotImplementedError("Internal pullups not supported in periphery, use physical resistor instead!")
- elif pull == self.PULL_DOWN:
- raise NotImplementedError("Internal pulldowns not supported in periphery, use physical resistor instead!")
- else:
- raise RuntimeError("Invalid pull for pin: %s" % self.id)
+ raise NotImplementedError(
+ "Internal pullups not supported in periphery, "
+ "use physical resistor instead!"
+ )
+ if pull == self.PULL_DOWN:
+ raise NotImplementedError(
+ "Internal pulldowns not supported in periphery, "
+ "use physical resistor instead!"
+ )
+ raise RuntimeError("Invalid pull for pin: %s" % self.id)