MCPcopy
hub / github.com/treeverse/dvc / _flatten

Function _flatten

dvc/utils/diff.py:32–39  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

30
31
32def _flatten(d):
33 if not d:
34 return defaultdict(lambda: None)
35
36 if isinstance(d, dict):
37 return defaultdict(lambda: None, flatten(d))
38
39 return defaultdict(lambda: "unable to parse")
40
41
42def _diff_dicts(old_dict, new_dict, with_unchanged):

Callers 1

_diff_dictsFunction · 0.85

Calls 1

flattenFunction · 0.90

Tested by

no test coverage detected