

def __init__(self, intf):
    self.alternateSetting = intf.bAlternateSetting
    self.interfaceNumber = intf.bInterfaceNumber
    self.iInterface = intf.iInterface
    self.interfaceClass = intf.bInterfaceClass
    self.interfaceSubClass = intf.bInterfaceSubClass
    self.interfaceProtocol = intf.bInterfaceProtocol
    self.endpoints = [Endpoint(e) for e in intf]

dataset/ETHPy150Open walac/pyusb/usb/legacy.py Interface.__init__/original