data = bytes(circuitLine) ret = PBCircuitLine().parse(data) # type: 'PBCircuitLine' circuitLine:  ret: 