(evidence: Dict[str, Any], bucket: str, *, limit: int = 3)
| 3282 | |
| 3283 | |
| 3284 | def _collect_evidence_sections(evidence: Dict[str, Any], bucket: str, *, limit: int = 3) -> List[str]: |
| 3285 | matches = ((evidence or {}).get("matches") or {}).get(bucket) or [] |
| 3286 | labels = [ |
| 3287 | _format_pdf_section_label(match.get("section", "")) |
| 3288 | for match in matches |
| 3289 | if _clean_text(match.get("section")) |
| 3290 | ] |
| 3291 | return _unique_preserve_order(labels)[:limit] |
| 3292 | |
| 3293 | |
| 3294 | def _format_evidence_anchor(match: Dict[str, Any]) -> str: |
no test coverage detected