Reports incorrect use of Python type variables due to variance issues. +
+ +Incompatible variance
+
+from typing import TypeVar, Generic
+T = TypeVar("T", covariant=True)
+class C(Generic[T]):
+ def method(self, t: T): # at 'T': Incompatible variance: expected contravariant but was covariant
+ pass
+
+
+
+