Skip to content

fix NewType inlay hint is not a valid annotation #2965#4210

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

fix NewType inlay hint is not a valid annotation #2965#4210
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:2965

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #2965

NewType variable hints now display the callable signature, e.g. (_x: int) -> N, instead of invalid type[N]

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.

NewType inlay hint is not a valid annotation

1 participant