-
Notifications
You must be signed in to change notification settings - Fork 116
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
Type Unions Broken #591
Comments
@hthall13 this will be somewhat relieved by #603 with a couple of caveats:
I've added some tests to #603 to test this case. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HashModels don't appear to support pydantic Unions.
The issue prevents initialization of the class:
I get the same error when incorporating Unions in JsonModel Fields as well.
Produces:
However excluding the Field class seems to keep this from happening:
Is this related to some problem with later pydantic versions? It looks like there are at least 3 PRs waiting to be reviewed to solve that problem: #548, #556, #577
redis-om: 0.2.1
pydantic: 2.0
pydantic_core = 2.0.1
The text was updated successfully, but these errors were encountered: