[docs]classInnerPin(InnerPinBase):''' This class extends the default InnerPin class '''
[docs]defindex(self):"""if this wire is in a cable, returns the index number of the wire in the parent cable"""assertself._portisnotNone,"the wire does not belong to a cable"returnself._port.pins.index(self)