

def setAltInterface(self, alternate):
    'Sets the active alternate setting of the current interface.\n\n        Arguments:\n            alternate: an alternate setting number or an Interface object.\n        '
    if isinstance(self, Interface):
        alternate = alternate.alternateSetting
    self.dev.set_interface_altsetting(self.__claimed_interface, alternate)

dataset/ETHPy150Open walac/pyusb/usb/legacy.py DeviceHandle.setAltInterface/VarMisuse@17/69 `alternate`->`self`