Skip to content

Show an error when old and new redefinion are enabled in a file#20920

Open
ilevkivskyi wants to merge 1 commit intopython:masterfrom
ilevkivskyi:prohibit-both-redefines
Open

Show an error when old and new redefinion are enabled in a file#20920
ilevkivskyi wants to merge 1 commit intopython:masterfrom
ilevkivskyi:prohibit-both-redefines

Conversation

@ilevkivskyi
Copy link
Member

I think we should add this to v1.20, as really not prohibiting this initially was a bug IMO.

Btw @JukkaL all my semantic changes to --allow-redefinition-new are now in master. You can try flipping the switch internally.

@ilevkivskyi ilevkivskyi requested a review from JukkaL February 27, 2026 21:41
@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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.

1 participant