Skip to content

Fix match statement semantic reachability#20968

Merged
hauntsaninja merged 1 commit into
python:masterfrom
hauntsaninja:narrow112
Mar 4, 2026
Merged

Fix match statement semantic reachability#20968
hauntsaninja merged 1 commit into
python:masterfrom
hauntsaninja:narrow112

Conversation

@hauntsaninja

Copy link
Copy Markdown
Collaborator

Fixes #12778

@github-actions

github-actions Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

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

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would need to also add support for this to ast_serialize

@hauntsaninja hauntsaninja merged commit 1952636 into python:master Mar 4, 2026
24 checks passed
@hauntsaninja hauntsaninja deleted the narrow112 branch March 4, 2026 22:39
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.

Maybe a problem with reachability of Match cases

2 participants