-
-
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
Fix mypy v1 plugin for upcoming mypy release #9586
Conversation
please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, thank you!
Thanks for the quick review @sydney-runkle! Should I open another PR against main to fix that in the If possible, it would be real awesome to get a |
All good, we'll release from I can get one ready next week - we're halting V1 support after June 30th though, just FYI! |
Thanks for the info @sydney-runkle! That's a bit unfortunate sadly. E.g. for Home Assistant we're still stuck on Thankfully those are rather rare though. |
Change Summary
In python/mypy#17311 the signature of
TypeVarType
was changed to only acceptTypeVarId
. Previously it acceptedTypeVarId | int
and did an auto-conversion if an int was passed.This will break with the next release of mypy. Thus a new pydantic release would be much appreciated.
Related issue number
--
Checklist
Skip change file check
Selected Reviewer: @hramezani