MCPcopy
hub / github.com/anthropics/financial-services / _load

Function _load

scripts/validate.py:18–23  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

16
17
18def _load(path: Path):
19 text = path.read_text()
20 if path.suffix in (".yaml", ".yml"):
21 import yaml
22 return yaml.safe_load(text)
23 return json.loads(text)
24
25
26def main() -> int:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected