()
| 712 | |
| 713 | |
| 714 | def _load_pending_store() -> Dict[str, Dict[str, Any]]: |
| 715 | if not PENDING_PATH.exists(): |
| 716 | return {} |
| 717 | try: |
| 718 | with PENDING_PATH.open("r", encoding="utf-8") as handle: |
| 719 | raw = json.load(handle) or {} |
| 720 | except Exception as exc: |
| 721 | print(f"Failed to load pending direction store: {exc}") |
| 722 | return {} |
| 723 | if not isinstance(raw, dict): |
| 724 | return {} |
| 725 | return {key: value for key, value in raw.items() if isinstance(value, dict)} |
| 726 | |
| 727 | |
| 728 | def _save_pending_store(store: Dict[str, Any]) -> bool: |
no outgoing calls
no test coverage detected