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, 2025Steps 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