Skip to content

Propagate narrowing within chained comparisons#21160

Merged
hauntsaninja merged 1 commit intopython:masterfrom
hauntsaninja:chainnarrow2
Apr 13, 2026
Merged

Propagate narrowing within chained comparisons#21160
hauntsaninja merged 1 commit intopython:masterfrom
hauntsaninja:chainnarrow2

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

Fixes #21149 (the part that isn't a regression)

Fixes python#21149 (the part that isn't a regression)
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

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

@hauntsaninja hauntsaninja merged commit c90b301 into python:master Apr 13, 2026
24 checks passed
@hauntsaninja hauntsaninja deleted the chainnarrow2 branch April 13, 2026 22:12
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.20 regression] loss of type inference of chained-comparison operands

1 participant