FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clean-up and move operator access to checkmember.py by ilevkivskyi · Pull Request #19250 · python/mypy · GitHub

Repository navigation

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

Merged
ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:rename-has-member
Jun 9, 2025
Merged

ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:rename-has-member

Conversation

Copy link
Copy Markdown
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 requested a review from JukkaL June 7, 2025 21:38

github-actions Bot commented Jun 7, 2025

Copy link
Copy Markdown
Contributor

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

JukkaL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks! Looks good.

ilevkivskyi merged commit ac511d6 into python:master Jun 9, 2025
ilevkivskyi deleted the rename-has-member branch June 9, 2025 14:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants


Back | FazBrowse Home | New Git URL