Skip to content

Unable to resovle references type variables #636

Open
@svartkanin

Description

@svartkanin

When using type variables in class names for example

class Test[ValueT]:
    def __init__(self, value: ValueT) -> None:
        self.value = value


t = Test[int](1)

and then trying to resolve the references for Test will not find any references nor definitions.

[telescope.builtin.lsp_definitions]: No LSP Definitions found

Removing the type variable from the class as a counter check makes it work again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions