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

Function format_dict

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

Source from the content-addressed store, hash-verified

87
88
89def format_dict(d):
90 ret = {}
91 for key, val in d.items():
92 if isinstance(val, dict):
93 new_val = format_dict(val)
94 elif isinstance(val, list):
95 new_val = str(val)
96 else:
97 new_val = val
98 ret[key] = new_val
99 return ret

Callers 3

metrics_tableFunction · 0.90
_diffFunction · 0.90
diffFunction · 0.90

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected