

def _resolve_hook(self, name, callable_or_name, ignore_failure, reload_module=False):
    if is_callable(callable_or_name):
        self.hooks[name] = callable_or_name
    else:
        self.hooks[name] = resolve_name(callable_or_name, reload=reload_module)
    if ignore_failure:
        self.ignore_hook_failure.append(self)

dataset/ETHPy150Open circus-tent/circus/circus/watcher.py Watcher._resolve_hook/VarMisuse@70/100 `name`->`self`