Open DetachHead opened 1 month ago
from typing import TypeVar, Generic T = TypeVar("T", covariant=True) class Foo(Generic[T]): value: T # no error
This is a well known issue, any everyone wants to pretend it doesn't exist: https://github.com/python/mypy/issues/735