Skip to content

Narrow match captures based on previous cases#21405

Open
hauntsaninja wants to merge 2 commits intopython:masterfrom
hauntsaninja:matchnarrow
Open

Narrow match captures based on previous cases#21405
hauntsaninja wants to merge 2 commits intopython:masterfrom
hauntsaninja:matchnarrow

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja commented May 4, 2026

Fixes #16736
Closes #18155

Co-authored-by Codex

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 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.

match: Incorrect "Incompatible types in capture pattern" when type has already been narrowed

1 participant