← Winnitude! Search  ·  Reader Mode (754 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 8 LINKS

Support for type parameters · Issue #273 · MagicStack/MagicPython

Repository navigation

Support for type parameters  #273


New issue

New issue

Open

Open
Support for type parameters #273

Description

@alexr00's profile alexr00 opened on Jul 8, 2025

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

Reacted by Tyler Yep, Connor Brinton, Richard Lewis, Asuka Minato, Kyle Into, Trevor Petersen and Danny Yang

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