Commit 6791004
committed
fix: model validator assignment consistency
Fix inconsistency where model-level before and wrap validators received
different states during field assignment validation.
- Before validators now see pre-update state (consistent with wrap validators)
- Updated test expectations to match correct behavior
- Fixed linting issues (removed unused noqa directives)
Fixes: pydantic/pydantic#118231 parent 15142d9 commit 6791004
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
1168 | | - | |
| 1168 | + | |
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
| 1173 | + | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
| |||
0 commit comments