Skip to content

show variance when hovering over generics #3540

@DetachHead

Description

@DetachHead
class Foo[T]:
    def foo(self) -> T: ...

both ty and pyright do this:

Image

pyrefly only shows this:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedLarger than "good first issue", but still well-defined and ready for someone to pick uplanguage-serverIssues specific to our IDE integration rather than type checking
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions