(graph_path: Path)
| 602 | |
| 603 | |
| 604 | def _read_graph_for_extraction(graph_path: Path) -> dict | None: |
| 605 | try: |
| 606 | data = json.loads(graph_path.read_text(encoding="utf-8")) |
| 607 | except (OSError, ValueError, RecursionError): |
| 608 | return None |
| 609 | return data if isinstance(data, dict) else None |
| 610 | |
| 611 | def _placeholder_stale_sources( |
| 612 | graph_path: Path, |
no outgoing calls