-
-
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
"AttributeError: 'int' object has no attribute 'is_meta_var'" in 1.11 #17516
Comments
Reproducer is needed 🙏 |
That's strange and concerning |
This looks like it's related to an overload with a TypeVar. Do you use custom mypy plugins? Maybe the one for pydantic? The For pydantic v1: make sure to run at least |
It's definitely a plugin. Looks like this will stop crashing if I turn off |
@cdce8p Hello, shouldn't this change be reflected in the "Announcement issue for plugin API changes" #6617 issue? |
Bug Report
I pip-installed the 1.11 branch to take a preview of the next release, and I saw a crash when running mypy:
pip install -U git+https://github.com/python/mypy.git@release-1.11
To Reproduce
Hard to share, this happens when running on my company code. Can look more closely by request, if the traceback isn't enough.
Expected Behavior
No traceback from mypy
Actual Behavior
(See traceback)
Your Environment
The text was updated successfully, but these errors were encountered: