Derived from the Pylint linter.
What it does#
Checks for type names that do not match the variance of their associated type parameter.
Why is this bad?#
PEP 484 recommends the use of the
_contra suffixes for
covariant and contravariant type parameters, respectively (while invariant
type parameters should not have any such suffix).