MCPcopy Create free account
hub / github.com/base/base / load_json

Function load_json

etc/scripts/ci/render_fresh_devnet_bench.py:19–24  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

17
18
19def load_json(path: Path) -> dict[str, Any]:
20 with path.open(encoding="utf-8") as file:
21 value = json.load(file)
22 if not isinstance(value, dict):
23 raise ValueError(f"expected a JSON object in {path}")
24 return value
25
26
27def number(value: object, precision: int = 0) -> str:

Callers 2

summary_valuesFunction · 0.85
render_commentFunction · 0.85

Calls 2

openMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected