Skip to content

Improve match narrowing and reachability analysis#15882

Merged
hauntsaninja merged 1 commit intopython:masterfrom
hauntsaninja:match-narrow
Aug 19, 2023
Merged

Improve match narrowing and reachability analysis#15882
hauntsaninja merged 1 commit intopython:masterfrom
hauntsaninja:match-narrow

Conversation

@hauntsaninja
Copy link
Copy Markdown
Collaborator

Fixes #12534, fixes #15878

@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 merged commit 5af7671 into python:master Aug 19, 2023
@hauntsaninja hauntsaninja deleted the match-narrow branch August 19, 2023 18:41
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.

Missing return statement error using enums and match Guard clause prevents match from seeing that all paths return

2 participants