(path: str, payload: dict)
| 19 | |
| 20 | |
| 21 | def write_json(path: str, payload: dict) -> None: |
| 22 | ensure_dir(dirname(path)) |
| 23 | with open(path, "w", encoding="utf-8") as handle: |
| 24 | json.dump(payload, handle, indent=2) |
| 25 | |
| 26 | |
| 27 | def write_lines(path: str, lines: Iterable[str]) -> None: |
no test coverage detected