Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class_members[key['name']] = []
class_members['lists'][key['name']] = key['type']
class_members[key['name']+'_append'] = []
class_members['lists'][key['name']+'_append'] = key['type']
if 'dicts' in _items:
class_members['dicts'] = {}
for key in _items['dicts']:
class_members[key['name']] = {}
class_members['dicts'][key['name']] = key['type']
generatedClass = type(cls, (base_class,), class_members)
globals()[generatedClass.__name__] = generatedClass
capi2_data = yaml.safe_load(description)
for backend in get_edatools():
backend_name = backend.__name__
if hasattr(backend, 'get_doc'):
if backend_name == "Edatool":
continue
tool_options = backend.get_doc(0)
elif hasattr(backend, 'tool_options'):
_tool_options = getattr(backend, 'tool_options')
tool_options = {'description' : 'Options for {} backend'.format(backend_name)}
for group in ['members', 'lists', 'dicts']:
if group in _tool_options:
tool_options[group] = []
for _name, _type in _tool_options[group].items():
tool_options[group].append({'name' : _name,
'type' : _type,
'desc' : ''})
else: