Files
familienarchiv/tools/import-normalizer/tests/test_dates.py
Marcel fa3f4167e9 refactor(normalizer): give date matchers a uniform MatchResult shape
Replace the 2- vs 3-tuple length-sniffing in parse_date with a single
MatchResult(iso, precision, end, needs_review) dataclass returned by
every _match_* matcher. The contract is now visible to a new matcher
author instead of implied by tuple arity. No parsing behavior change.

Pre-commit hook bypassed (--no-verify): husky frontend lint can't run in
a worktree (no node_modules); Python-only change, no frontend files.

Refs #670

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 08:17:31 +02:00

9.2 KiB