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 inconsistency where model-level before and wrap validators received
different states during field assignment validation.
During assignment with validate_assignment=True:
- Before: before validators received dict with NEW field value
- After: before validators receive dict with OLD field value (consistent with wrap validators)
Both validator modes now consistently see the pre-update state during assignment.
Fixes: pydantic/pydantic#11823"
0 commit comments