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
"none is not an allowed value" when using Union with Any #3444
Labels
bug V1
Bug related to Pydantic V1.X
Comments
|
@mykhailoleskiv That almost works, except it doesn't add |
tharradine
added a commit
to tharradine/pydantic
that referenced
this issue
Nov 25, 2021
tharradine
added a commit
to tharradine/pydantic
that referenced
this issue
Nov 25, 2021
5 tasks
PrettyWood
added a commit
to tharradine/pydantic
that referenced
this issue
Dec 8, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checks
Bug
It seems that
None
is allowed when a field's type isAny
(as is expected, stated in the docs), butNone
is not allowed when a field's type isUnion[SomeType, Any]
.Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:Code which reproduces the issue:
This may be somewhat related to #1624.
The text was updated successfully, but these errors were encountered: