MCPcopy Create free account
hub / github.com/dblalock/bolt / update_func_from_dict

Function update_func_from_dict

experiments/python/pyience.py:175–181  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

173
174
175def update_func_from_dict(d):
176 def f(params, new_keys):
177 for k, v in d.items():
178 if k in new_keys:
179 for kk, vv in v.items():
180 params.setdefault(kk, vv)
181 return f
182
183
184def generate_params_combinations(params_list, update_func):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected