Skip to content

Fix Enum final props and writable special members#11945

Merged
97littleleaf11 merged 1 commit intopython:masterfrom
sobolevn:issue-11820-2
Jan 10, 2022
Merged

Fix Enum final props and writable special members#11945
97littleleaf11 merged 1 commit intopython:masterfrom
sobolevn:issue-11820-2

Conversation

@sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 9, 2022

Closes #11820

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2022

Diff from mypy_primer, showing the effect of this PR on open source code:

psycopg (https://github.com/psycopg/psycopg)
- psycopg/psycopg/pq/_enums.py:15: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/pq/_enums.py:43: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/pq/_enums.py:62: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/pq/_enums.py:129: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/pq/_enums.py:150: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/pq/_enums.py:176: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/pq/_enums.py:199: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/pq/_enums.py:230: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/pq/_enums.py:243: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/_enums.py:23: error: Cannot override writable attribute "__module__" with a final one  [misc]
- psycopg/psycopg/_enums.py:46: error: Cannot override writable attribute "__module__" with a final one  [misc]

@97littleleaf11 97littleleaf11 merged commit f6ebf10 into python:master Jan 10, 2022
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression in mypy 0.930: Cannot override writable attribute "__module__" with a final one

2 participants