Skip to content

PEP 695 type parameters are not colored correctly #6942

Description

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 Marc Mueller (@cdce8p) in #5541

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions