-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Regression in mypy 0.930: Cannot override writable attribute "__module__" with a final one #11820
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
Comments
Thanks! Fix is on its way. You can add |
I'm afraid it will have to be "mypy != 0.930" because there are too many of them and because psycopg is also affected by python/typeshed#6661 😄 https://github.com/psycopg/psycopg/runs/4610348714?check_suite_focus=true |
I'll add pyscopg to mypy_primer, so hopefully you'll have fewer regressions in the future :-) |
The release is affected by the issues: - python/mypy#11820 - python/typeshed#6661 already acknowledged as bugs.
@hauntsaninja amazing, thank you! And thank you all for the quick turnaround! |
The release is affected by the issues: - python/mypy#11820 - python/typeshed#6661 already acknowledged as bugs.
This seems still open in mypy 0.931. In which release is the fix due? https://github.com/psycopg/psycopg/runs/4741795872?check_suite_focus=true |
It seems still affected by python/mypy#11820.
It seems still affected by python/mypy#11820.
The commit made it in, but I don't think it actually fixed the issue (as also evidenced by the lack of a primer diff on that PR). I can still repro on both master and 0.931, cc @sobolevn |
No worries, @sobolevn: your work is very appreciated 🙂 |
Bug Report
The following code is reported as error by mypy 0.930 (Python 3.8). It seems correct, and was considered correct so far:
The error reported is:
which I don't even know what means...
The text was updated successfully, but these errors were encountered: