Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No syntax highlighting for Python 3.12 type aliases #6794

Open
umarbutler opened this issue Dec 24, 2024 · 0 comments
Open

No syntax highlighting for Python 3.12 type aliases #6794

umarbutler opened this issue Dec 24, 2024 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@umarbutler
Copy link

Environment data

Version: 1.96.2 (user setup)
Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f
Date: 2024-12-19T10:22:47.216Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631
Pylance: 2024.12.1
Python: 3.12.5

Code Snippet

Image

The ability to define a type alias using type Alias = tuple[int, int] was added in Python 3.12 so presumably Pylance needs to be updated to account for this new syntax.

Expected behavior

The type alias be syntax highlighted, not white, which is what you see when Pylance isn't working.

Actual behavior

The type alias be highlighted.

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants