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
When doing a union of types with the same contract, items are converted inappropriately #453
Labels
Comments
This is the same as #436. We could perhaps iterate over |
2 tasks
4 tasks
3 tasks
@samuelcolvin do you have any plans on solving this? |
alexdrydew
pushed a commit
to alexdrydew/pydantic
that referenced
this issue
Dec 23, 2023
* coverage only on 3.11 * remove rm rust-toolchain * remove rm rust-toolchain, more
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
This prints:
Expected output:
Workaround: One workaround is to ensure that your classes do not have equivalent signatures. Changing to this will avoid the issue:
System Info:
3.7.1
0.21
The text was updated successfully, but these errors were encountered: