BSK-E0085
error
TypeVarTuple argument count mismatch
When a constructor with TypeVarTuple parameters is called, the number of arguments must match the expected count inferred from the TypeVarTuple.
Ts = TypeVarTuple("Ts")
class Array(Generic[*Ts]):
def __init__(self, shape: tuple[*Ts]) -> None: ...
Array[Height, Width]((Height(1), Width(2))) # OK
Array[Height, Width](Height(1)) # E: expected 2 arguments, got 1
How to handle it
Every rule is on by default — strict is the default, not a cage. You can dial
BSK-E0085 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/BSK-E0085