Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
elif isfunction(link):
sig = signature(link)
params = list(sig.parameters)
if len(params) == 1:
if params[0] == 'row':
ds = row_processor(link)(ds, position=position)
elif params[0] == 'rows':
ds = rows_processor(link)(ds, position=position)
elif params[0] == 'package':
ds = datapackage_processor(link)(ds, position=position)
else:
assert False, 'Failed to parse function signature %r' % params
else:
assert False, 'Failed to parse function signature %r' % params
elif isinstance(link, Iterable):
ds = iterable_loader(link)(ds, position=position)
return ds