8000 Python syntax highlighting with Type Parameters · Issue #251997 · microsoft/vscode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Python syntax highlighting with Type Parameters #251997
Open
@s-banach

Description

@s-banach

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version / OS Version:
Version: 1.101.1 (user setup)
Commit: 18e3a1ec544e6907be1e944a94c496e302073435
Date: 2025-06-18T13:35:12.605Z
Electron: 35.5.1
ElectronBuildId: 11727614
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.22631

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.

Metadata

Metadata

Assignees

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

    0