-
Notifications
You must be signed in to change notification settings - Fork 765
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
Syntax highlighting for PEP 695: Type Parameter Syntax #5541
Comments
Since then I've been using this theme, which seems to have resolved the symptom described here. |
Any updates ? Since we all start adopting python 12 in our projects, it gets frustrating to miss on new features... |
As an update, I ended up switching from pylance to based pyright. |
|
This issue has been fixed in prerelease version 2025.1.100, which we've just released. You can find the changelog here: CHANGELOG.md |
Awesome to have syntax highlighting for PEP 695 type aliases. However, type parameter are still missing unfortunately. Example codefrom typing import Generic, TypeVar
T = TypeVar("T")
class X(Generic[T]):
def __init__(self, var: T) -> None: ...
class Y[T]:
def __init__(self, var: T) -> None: ... |
As @cdce8p said, this is still not fully working for generic class type parameters in 2025.2.1. |
Thanks for pointing that out. I opened #6942 to track that. |
Discussed in #5540
Originally posted by einarwar February 28, 2024
I recently started using python 3.12, but to my surprise the syntax highlighting for the new type parameter added in PEP 695 was white! Generally white color is used when accessing attributes/methods on
Unknown
objects. See image below:Is this color intentional or have i not set up pylance correctly?
The text was updated successfully, but these errors were encountered: