Skip to content

fix show variance when hovering over generics #3540#3545

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

fix show variance when hovering over generics #3540#3545
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:3540

Conversation

@asukaminato0721
Copy link
Copy Markdown
Contributor

Summary

Fixes #3540

now class type-parameter hovers find the owning class, query the existing variance solver, and render T@Foo (covariant) without the redundant (type parameter) T: ... prefix.

Test Plan

add test

@meta-cla meta-cla Bot added the cla signed label May 22, 2026
@asukaminato0721 asukaminato0721 marked this pull request as ready for review May 22, 2026 07:32
Copilot AI review requested due to automatic review settings May 22, 2026 07:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@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.

show variance when hovering over generics

2 participants