Skip to content

no unsafe variance error on attributes #395

@DetachHead

Description

@DetachHead
from typing import TypeVar, Generic

T = TypeVar("T", covariant=True)

class Foo(Generic[T]):
    value: T # no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    type checking / lintingissues relating to existing diagnostic rules or proposals for new diagnostic rules

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions