MCPcopy Index your code
hub / github.com/treeverse/dvc / _parse

Function _parse

dvc/utils/diff.py:7–15  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

5
6
7def _parse(raw):
8 if raw is None or isinstance(raw, (dict, list, int, float)):
9 return raw
10
11 assert isinstance(raw, str)
12 try:
13 return json.loads(raw)
14 except json.JSONDecodeError:
15 return raw
16
17
18def _diff_vals(old, new, with_unchanged):

Callers 1

_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected