MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / unique_object

Function unique_object

tools/provenance-export/verify_dsse.py:20–26  ·  view source on GitHub ↗
(pairs)

Source from the content-addressed store, hash-verified

18
19
20def unique_object(pairs):
21 result = {}
22 for key, value in pairs:
23 if key in result:
24 raise ValueError("duplicate JSON member")
25 result[key] = value
26 return result
27
28
29def refuse_number(_):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected