Skip to content

Propagate narrowing within chained comparisons#21160

Open
hauntsaninja wants to merge 1 commit intopython:masterfrom
hauntsaninja:chainnarrow2
Open

Propagate narrowing within chained comparisons#21160
hauntsaninja wants to merge 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. ✅

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