Skip to content

Remove unnecessary workarounds from bind_self() #19356

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

Merged
merged 1 commit into from
Jun 29, 2025

Conversation

ilevkivskyi
Copy link
Member

In my original PR I erroneously concluded that attribute access on TypeVar would result in PyObject attribute access after mypy is compiled, but this is actually no the case. I therefore remove some workarounds (and a bit of unused code).

Copy link
Contributor

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

@hauntsaninja hauntsaninja merged commit bca959f into python:master Jun 29, 2025
19 checks passed
@ilevkivskyi ilevkivskyi deleted the use-upper-bound branch June 29, 2025 23:23
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.

2 participants