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
d3cryptofc
changed the title
AttributeError: 'MyModel' object has no attribute '__fields_modified__'
AttributeError: 'Person' object has no attribute '__fields_modified__'
Oct 29, 2024
Bug
The bug happens using pydantic's
model_validator
, when trying to modify one of the model's attributes, but works normally with pydantic's BaseModel.Current Behavior
It's just a random example, I know it's not the case for
model_validator
butfield_validator
, but it's just to demonstrate the bug.Expected behavior
Environment
python -c "import pydantic.utils; print(pydantic.utils.version_info())
):The text was updated successfully, but these errors were encountered: