Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if 'name' in kwargs:
self.name = kwargs['name']
else:
self.name = 'data{}'.format(Innotation.anonindex)
Innotation.anonindex += 1
self.desc = kwargs.get('desc', self.name)
self.widget = None
self.layout = kwargs.get('layout', {})
if 'disabled' in kwargs:
self.disabled = kwargs['disabled']
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if 'name' in kwargs:
self.name = kwargs['name']
else:
self.name = 'data{}'.format(Innotation.anonindex)
Innotation.anonindex += 1
self.desc = kwargs.get('desc', self.name)
self.widget = None
self.layout = kwargs.get('layout', {})
if 'disabled' in kwargs:
self.disabled = kwargs['disabled']