(note_plan: dict[str, Any])
| 94 | |
| 95 | |
| 96 | def accepts_partial_reading(note_plan: dict[str, Any]) -> bool: |
| 97 | coverage = note_plan.get("source_coverage", {}) |
| 98 | if isinstance(coverage, dict) and coverage.get("partial_reading_accepted") is True: |
| 99 | return True |
| 100 | return normalize_whitespace(str(note_plan.get("reading_mode", ""))).lower() in { |
| 101 | "partial", |
| 102 | "accepted_partial", |
| 103 | "partial_reading", |
| 104 | } |
| 105 | |
| 106 | |
| 107 | def contains_old_reference(value: Any) -> bool: |
no test coverage detected