

def __call__(self, *args, **kwargs):
    if self.functions:
        return intersect_functions(*[functools.partial(f, **f_kwargs) for (f, f_kwargs) in self.functions])(*args, **kwargs)
    else:
        return True

dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/couchexport/util.py SerializableFunction.__call__/original