You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Field.error_messages type to allow dict and list values (#2907)
* Fix Field.error_messages type to allow dict and list values
The error_messages parameter on Field and its type annotation were
typed as dict[str, str], but error messages can actually be dicts or
lists (as used in tests and supported by ValidationError). This updates
the type to dict[str, str | list | dict] via a new ErrorMessages type
alias, fixing #1636.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Address type errors; add type annotation to catch regression
* Update changelog and authors
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Steven Loria <git@stevenloria.com>
0 commit comments