(kind: str, title: str, page_number: int, seen: dict[str, int])
| 108 | |
| 109 | |
| 110 | def new_record(kind: str, title: str, page_number: int, seen: dict[str, int]) -> dict[str, Any]: |
| 111 | sid = section_id(title or kind, seen) |
| 112 | return { |
| 113 | "record_type": "section", |
| 114 | "section_id": sid, |
| 115 | "kind": kind, |
| 116 | "title": normalize_whitespace(title) or kind, |
| 117 | "page_start": page_number, |
| 118 | "page_end": page_number, |
| 119 | "_lines": [], |
| 120 | } |
| 121 | |
| 122 | |
| 123 | def finalize_section(record: dict[str, Any]) -> dict[str, Any] | None: |
no test coverage detected