(report_record: Optional[Dict[str, Any]])
| 1370 | |
| 1371 | def _is_report_record_current(report_record: Optional[Dict[str, Any]]) -> bool: |
| 1372 | if not isinstance(report_record, dict): |
| 1373 | return False |
| 1374 | metadata = report_record.get("metadata") or {} |
| 1375 | if not isinstance(metadata, dict): |
| 1376 | return False |
| 1377 | return _clean_text(metadata.get("report_version")) == READING_REPORT_OUTPUT_VERSION |
| 1378 | |
| 1379 | |
| 1380 | def _report_record_matches_language(report_record: Optional[Dict[str, Any]], response_language: str) -> bool: |
| 1381 | if not isinstance(report_record, dict): |
no test coverage detected