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
Using TypeAdapter with PyRight has typing issues #9147
Comments
Duplicate of #7094 |
Any suggestions for how we might fix this? |
Additionally |
#8923 will suppress the error, however the type variable of To properly support this I'm afraid the only solution is to have type forms to land, but this is an active subject: python/mypy#9773.
I agree this can be counter intuitive. Switching from |
Yeah, I think we do actually want to switch to proper subclasses: #7353. So I think that's probably the way forward here. |
For now, let's have the subclasses replace the exiting types in |
Great time to address this issue #9159. |
Initial Checks
Description
Hoping something can be done with typing to make it get along better with PyRight. See below:
Affected Components
.model_dump()
and.model_dump_json()
model_construct()
, pickling, private attributes, ORM modeThe text was updated successfully, but these errors were encountered: