Skip to content

Delete Instance.invalid#20861

Merged
ilevkivskyi merged 1 commit intopython:masterfrom
ilevkivskyi:delete-instance-invalid
Feb 22, 2026
Merged

Delete Instance.invalid#20861
ilevkivskyi merged 1 commit intopython:masterfrom
ilevkivskyi:delete-instance-invalid

Conversation

@ilevkivskyi
Copy link
Copy Markdown
Member

Instance is like the hottest type ever. Having a whole attribute there to tweak some rare/niche edge case seems really wasteful. I think we should delete it.

(I also delete 1 line of dead code while I am at it.)

@github-actions
Copy link
Copy Markdown
Contributor

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

@ilevkivskyi ilevkivskyi merged commit 2171b6f into python:master Feb 22, 2026
24 checks passed
@ilevkivskyi ilevkivskyi deleted the delete-instance-invalid branch February 22, 2026 21:03
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