(token: str)
| 1034 | |
| 1035 | |
| 1036 | def parse_date_token(token: str) -> date: |
| 1037 | token = token.strip().lower() |
| 1038 | if token in {"today", "now"}: |
| 1039 | return _iso_today() |
| 1040 | return date.fromisoformat(token) |
| 1041 | |
| 1042 | |
| 1043 | def collect_scan_issues(records: list[FileRecord], target: Literal["errors", "warnings"]) -> list[str]: |