Skip to content

Fix narrowing for match case with variadic tuples#21192

Merged
hauntsaninja merged 2 commits intopython:masterfrom
hauntsaninja:tuplefix
Apr 9, 2026
Merged

Fix narrowing for match case with variadic tuples#21192
hauntsaninja merged 2 commits intopython:masterfrom
hauntsaninja:tuplefix

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

Fixes #21189

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

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

@hauntsaninja hauntsaninja merged commit f394946 into python:master Apr 9, 2026
24 checks passed
@hauntsaninja hauntsaninja deleted the tuplefix branch April 9, 2026 18:56
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] Mypy incorrectly marks a match case as unreachable

2 participants