(path: Path, obj: dict[str, Any])
| 171 | |
| 172 | |
| 173 | def _dump_json(path: Path, obj: dict[str, Any]) -> None: |
| 174 | path.parent.mkdir(parents=True, exist_ok=True) |
| 175 | path.write_text(json.dumps(obj, indent=2) + "\n", encoding="utf-8") |
| 176 | |
| 177 | |
| 178 | def _path_is_regular_file(path: Path) -> bool: |