MCPcopy Create free account
hub / github.com/dcharatan/flowmap / separate_fn

Function separate_fn

flowmap/config/tools.py:45–54  ·  view source on GitHub ↗
(joined: dict)

Source from the content-addressed store, hash-verified

43 """
44
45 def separate_fn(joined: dict) -> list:
46 # The dummy allows the union to be converted.
47 @dataclass
48 class Dummy:
49 dummy: data_class_union
50
51 return [
52 get_typed_config(Dummy, DictConfig({"dummy": {"name": name, **cfg}})).dummy
53 for name, cfg in joined.items()
54 ]
55
56 return separate_fn

Callers

nothing calls this directly

Calls 1

get_typed_configFunction · 0.70

Tested by

no test coverage detected