Skip to content

PEP 695 type parameters are not colored correctlyΒ #6942

@debonte

Description

@debonte

Awesome to have syntax highlighting for PEP 695 type aliases. However, type parameter are still missing unfortunately.

Image

from 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: ...

Originally posted by @cdce8p in #5541

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions