Skip to content

Avoid widening types in conditional_types#21242

Merged
hauntsaninja merged 1 commit intopython:masterfrom
hauntsaninja:mypynarrow
Apr 21, 2026
Merged

Avoid widening types in conditional_types#21242
hauntsaninja merged 1 commit intopython:masterfrom
hauntsaninja:mypynarrow

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

Fixes #21181

Another pre-existing issue exposed by narrowing improvements

Fixes python#21181

Another pre-existing issue exposed by narrowing improvements
@github-actions
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 hauntsaninja marked this pull request as draft April 16, 2026 02:25
@hauntsaninja hauntsaninja marked this pull request as ready for review April 21, 2026 02:56
@hauntsaninja hauntsaninja merged commit 93bc02b into python:master Apr 21, 2026
24 checks passed
@hauntsaninja hauntsaninja deleted the mypynarrow branch April 21, 2026 03:01
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] when same object is narrowed multiple times

1 participant