Format status with optional detail (e.g. 'busy (compiling)').
(inst: dict[str, Any])
| 332 | |
| 333 | |
| 334 | def _format_status(inst: dict[str, Any]) -> str: |
| 335 | """Format status with optional detail (e.g. 'busy (compiling)').""" |
| 336 | status = inst.get("status", "unknown") |
| 337 | detail = inst.get("status_detail") |
| 338 | return f"{status} ({detail})" if detail else status |
| 339 | |
| 340 | |
| 341 | def _print_instances_plain(instances: list[dict[str, Any]], has_duplicates: bool) -> None: |
no test coverage detected