Skip to content

fix hover on case _ show the remaining cases #3334#3972

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3334
Open

fix hover on case _ show the remaining cases #3334#3972
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3334

Conversation

@asukaminato0721

Copy link
Copy Markdown
Contributor

Summary

Fixes #3334

hovering case _ resolves the enclosing match case’s Key::PatternNarrow type, falling back to the subject type when there is no prior narrowing.

Test Plan

add test

@github-actions

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hover on case _ show the remaining cases

1 participant