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

Refactor equality and identity narrowing for clarity by hauntsaninja · Pull Request #20595 · python/mypy · GitHub

Repository navigation

Refactor equality and identity narrowing for clarity - #20595

Merged
hauntsaninja merged 1 commit into
python:masterfrom
hauntsaninja:narrow2
Jan 16, 2026
Merged

hauntsaninja merged 1 commit into
python:masterfrom
hauntsaninja:narrow2

Conversation

Copy link
Copy Markdown
Collaborator

This is a follow up to #20492 that is pure refactoring. I separated it out to make that change easier to review. We inline narrow_identity_equality_comparison, improve comments, etc.

There is some further refactoring later in my commit stack too.

hauntsaninja mentioned this pull request Jan 16, 2026

Copy link
Copy Markdown
Contributor

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

hauntsaninja merged commit 66f83ea into python:master Jan 16, 2026
23 checks passed
hauntsaninja deleted the narrow2 branch January 16, 2026 21:25
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

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL