

def __call__(self, f):
    names = ['{0}.{1}'.format(func.__module__, self.func_name) for func in hooks[self.event]]
    if ('{0}.{1}'.format(f.__module__, f.func_name) not in names):
        hooks[self.event].append(f)
    return f

dataset/ETHPy150Open tarbell-project/tarbell/tarbell/hooks.py register_hook.__call__/VarMisuse@23/30 `func`->`self`