Skip to content

Support for type parameters #273

Description

@alexr00

Steps to Reproduce:

Consider the following code, using type parameters with python >= 3.13:

def f[T](x: T) -> T: ...

The -> is highlighted red, seemingly indicating a syntax error, although there is no syntax error.

Originally from @s-banach in microsoft/vscode#251997

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