New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.9.1 Breaking change with model deep copying #4092
Comments
Thanks for reporting, please can you provide a self contained example that shows the error. |
I am experiencing the same, references that would've previously been carried through a hierarchy of types now get broken during validation. I will try to put together a repro and suggest changes to maintain the prior functionality |
here is a fine repro: That line was changed from |
Well that's not the same as the error shown above, that's just a change in behaviour. |
sure, but its a breaking change in behavior. |
Yeah, the breaking change in behavior on a minor release was my intention in creating the ticket, more info driven than anything. We've corrected the issue on our side by changing back to the previously default behavior for |
I am experiencing the same. Had to downgrade to 1.9.0 to make my code work. |
@samuelcolvin @NotPeopling2day I think this issue can be closed since it was fixed in https://github.com/pydantic/pydantic/releases/tag/v1.9.2 with #4093 |
Good catch, thanks. |
Checks
Bug
https://github.com/samuelcolvin/pydantic/pull/3642/files
The above PR changes the way models are copied and has created a breaking change in our code base. When running our test suite we now get the following error:
Pinning to 1.9.0 as current fix.
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:The text was updated successfully, but these errors were encountered: