Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FixOR pattern structural matching exhaustiveness#18119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@shenyih0ng
Copy link
Contributor

@shenyih0ngshenyih0ng commentedNov 7, 2024
edited
Loading

Fixes#18108

This PR fixes the issue of missing value comparisons in aMatchStmt due toOrPattern incorrectly narrowing down the type of the subject.

acciaioli reacted with heart emojikokrui reacted with rocket emoji
@github-actions

This comment has been minimized.

@shenyih0ngshenyih0ngforce-pushed thefix/or-pattern-match-exhaustiveness branch from4cd8a8c to2c6a179CompareNovember 10, 2024 08:59
@github-actions

This comment has been minimized.

@shenyih0ngshenyih0ngforce-pushed thefix/or-pattern-match-exhaustiveness branch from2c6a179 toff90fbbCompareNovember 10, 2024 09:28
@github-actions
Copy link
Contributor

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

@shenyih0ngshenyih0ng marked this pull request as ready for reviewNovember 10, 2024 10:10
Copy link
Collaborator

@brianschubertbrianschubert left a comment

Choose a reason for hiding this comment

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

Nice! LGTM!

@JukkaLJukkaL merged commitf067db4 intopython:masterNov 11, 2024
19 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@brianschubertbrianschubertbrianschubert approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Structural Pattern Matching Exhaustiveness check when using OR

3 participants

@shenyih0ng@brianschubert@JukkaL

[8]ページ先頭

©2009-2025 Movatter.jp