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

Function integer

tools/provenance-export/verify_dsse.py:33–37  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

31
32
33def integer(value):
34 parsed = int(value)
35 if abs(parsed) > 9007199254740991:
36 raise ValueError("integer exceeds I-JSON exact range")
37 return parsed
38
39
40def admitted_json(raw):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected