@resistor.setter
    def resistor(self, resistor):
        if hasattr(self, '_pin_resistor'):
            raise AttributeError("'resistor' cannot be modified after Pin object is created")
        if resistor is not None and resistor not in PIN_RESISTORS:
            raise ValueError("'resistor' must be one of: {0}".format(', '.join(PIN_RESISTORS)))
        self._pin_resistor = resistor
dataset/ETHPy150Open projectweekend/Pi-Pin-Manager/pi_pin_manager/pins.py/Pin.resistor/original