Skip to content

Clean-up and move operator access to checkmember.py #19250

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilevkivskyi
Copy link
Member

Fixes #5136
Fixes #5491

This is a fifth "major" PR toward #7724. Although it would be impractical to move all the operator special-casing to checkmember.py, this does two things:

  • Removes known inconsistencies in operator handling
  • Adds a much more complete has_operator() helper that can be a starting point for future performance optimizations

@ilevkivskyi ilevkivskyi requested a review from JukkaL June 7, 2025 21:38
Copy link
Contributor

github-actions bot commented Jun 7, 2025

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
1 participant