def Element(*value): # pylint: disable=invalid-name """Creates an element.""" el = _elt(eltType, numargs)(*value) if type(el['c']) == tuple: el['c'] = list(el['c']) # The content should be a list, not tuple return el
def Element(*value): # pylint: disable=invalid-name """Creates an element.""" el = _elt(eltType, numargs)(*value) if isinstance(el['c'], tuple): el['c'] = list(el['c']) # The content should be a list, not tuple return el