-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Mypy crashes with 1.11.1 version and Pydantic 1.10.11 #17671
Comments
This should be reported to pydantic instead: plain integers as type variable IDs are not supported anymore (plain integers are kind of private API anyway). |
Interesting,
|
The plugin is run within the mypy process, so each traceback that has entries related to plugins needs to be investigated to determine the correct root cause. In this case it seems clear that mypy changed an internal API, and the plugin may need to switch to the new API (i.e. using As the plugin system doesn't guarantee backward compatibility, my suggestion would be to test plugins using mypy master in addition to the most recent release to catch issue like this earlier. Also, we could document internal changes in #6617 more widely, but it's hard to predict which internal changes could impact plugins. |
Crash Report
Updated mypy to 1.11.1 version. Run mypy and faced with error.
It doesn't crash with mypy 1.10.1
Traceback
To Reproduce
I created a POC repository. You can follow the instructions in the README and face the error yourself: https://github.com/OmerFI/mypyfailproject
Your Environment
mypy.ini
(and other config files): https://github.com/OmerFI/mypyfailproject/blob/main/mypy.iniThe text was updated successfully, but these errors were encountered: