-
-
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
Frozen dataclass with function fields incorrectly thinks first argument is self #10711
Comments
Can you repro against master? I don't think #10548 made it into any of the recent releases |
Works with mypy from master. Thanks. |
Ah, would be nice to have this released! 🙏🏿 |
Yup, those should be fixed |
@hauntsaninja I am reopening this issue as it seems the fix fell through the crack. I checked all 0.9xx versions and the fix never went to any of the releases, it seems https://mypy-play.net/?mypy=0.942&python=3.10&gist=ce6181fa059e3ea269f3356fd7af65be |
It looks like this fix eventually made it in. I'm not able to repro the problem with mypy 1.5, so I think this is safe to close. |
Fixed in #13400 |
Example from #5485 works with mypy 0.902
but let's change the dataclass to a frozen one
then
The text was updated successfully, but these errors were encountered: