Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def signal(self):
signal = self.group[self.signal_combo.currentText()]
if isinstance(signal, NXlink):
if signal.is_external():
return NXlinkfield(target=signal.nxtarget,
file=signal.nxfilename)
else:
return signal.nxlink
else:
return signal