BSK-E0043 error

Non-TypeVar argument in Generic... or Protocol...

PEP 484 requires that all arguments to Generic... and Protocol... be type variable names (TypeVar, TypeVarTuple, or ParamSpec). Passing a concrete type (e.g. Genericint) is a type error.

class Bad1(Generic[int]): ...      # E — `int` is not a TypeVar
class Bad2(Protocol[int]): ...     # E — `int` is not a TypeVar

How to handle it

Every rule is on by default — strict is the default, not a cage. You can dial BSK-E0043 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-E0043