

def process_dict(d, injector):
    for (key, value) in d.items():
        if isinstance(value, list):
            value[:] = [wrap_fun(fun, injector) for fun in value]
        elif hasattr(value, '__call__'):
            injector[key] = wrap_fun(value, injector)

dataset/ETHPy150Open alecthomas/flask_injector/flask_injector.py process_dict/VarMisuse@66/76 `d`->`injector`