-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CPython 3.13 warns on FutureRef._evaluate/typing._eval_type not passing type_params
#9613
Comments
@sydney-runkle FYI, semi related to #9607 |
Note that this can be reproduced with:
|
Note also that #9613 (comment), above, reproduces this with the latest Pydantic v2, so this is not only a Pydantic v1 issue. |
Anything calling |
yup, makes sense. Ideally we should find a way to remove their use, at least from V2. In V1 we can do something hackier. |
Are you able to repro this on |
@sydney-runkle It looks like @musicinmybrain tested this on If v1 won't have 3.13 support, we can maybe drop the |
All good, let's leave this open then, thanks @musicinmybrain!
I read this and assumed you were using v2.7.4, my apologies! |
Any interest in helping us with another v1 patch here? I've got a draft PR up to start adding support for 3.13 explicitly in v2, but we'll have to do this |
Hah, I thought we weren't making changes in v1 to accommodate 3.13. Is there no way to not call into v1 apis for this functionality? |
Sigh... you and me both. I'll look into this in depth in the morning. |
Since this is such a small change, we're going to roll with it. Hopefully nothing else is needed in V1. |
Closing given that I merged the above, this should be fixed in 2.8! |
Initial Checks
Description
See upstream pull request python/cpython#118695
And discussion: python/cpython#118418
The current call pattern will be disallowed starting in CPython 3.15 based on the warning.
Example Code
No response
Python, Pydantic & OS Version
Affected Components
.model_dump()
and.model_dump_json()
model_construct()
, pickling, private attributes, ORM modeThe text was updated successfully, but these errors were encountered: