(figures_wrapper: dict[str, Any])
| 86 | |
| 87 | |
| 88 | def planned_items(figures_wrapper: dict[str, Any]) -> dict[str, dict[str, Any]]: |
| 89 | figure_plan = ( |
| 90 | figures_wrapper.get("figure_plan", {}) |
| 91 | if isinstance(figures_wrapper.get("figure_plan"), dict) |
| 92 | else {} |
| 93 | ) |
| 94 | planned: dict[str, dict[str, Any]] = {} |
| 95 | for item in figure_plan.get("figures", []) or []: |
| 96 | if not isinstance(item, dict): |
| 97 | continue |
| 98 | label = normalize_whitespace(str(item.get("id", ""))) |
| 99 | if label: |
| 100 | planned[normalize_label(label)] = item |
| 101 | return planned |
| 102 | |
| 103 | |
| 104 | def quality_status(plan_item: dict[str, Any]) -> str: |
no test coverage detected