(candidates: List[Path])
| 32 | |
| 33 | |
| 34 | def _resolve_existing_path(candidates: List[Path]) -> Path: |
| 35 | checked: List[str] = [] |
| 36 | for candidate in candidates: |
| 37 | checked.append(str(candidate)) |
| 38 | if candidate.exists(): |
| 39 | return candidate |
| 40 | raise ConfigError( |
| 41 | f"subgraph YAML not found; tried: {', '.join(checked)}", |
| 42 | path=checked[-1] if checked else None, |
| 43 | ) |
| 44 | |
| 45 | |
| 46 | def _load_graph_dict(path: Path) -> Dict[str, Any]: |
no test coverage detected