Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_values(fields, args):
# Returns [(fieldname, value)]. If the value is a FACTORY, call it.
assert len(fields) == len(args)
return [(fieldname, (value._callable() if isinstance(value, FACTORY) else value))
for fieldname, value in zip(fields, args)]