generics_typevartuple_basic_3 error

TypeVarTuple variance/bounds/constraints violation

TypeVarTuple does not support specification of variance, bounds, or constraints. Using these parameters with TypeVarTuple is invalid.

# BAD
Ts = TypeVarTuple("Ts", covariant=True)  # E: TypeVarTuple does not support variance
Ts = TypeVarTuple("Ts", int, float)      # E: TypeVarTuple does not support constraints
Ts = TypeVarTuple("Ts", bound=int)       # E: TypeVarTuple does not support bounds

# GOOD
Ts = TypeVarTuple("Ts")  # OK

How to handle it

Every rule is on by default — strict is the default, not a cage. You can dial generics_typevartuple_basic_3 down per-file or per-path from your editor or pyproject.toml, or fix the code so it type-checks. See the Type System rules and the complete diagnostic reference.

Canonical URL: https://www.basilisk-python.dev/errors/generics_typevartuple_basic_3