BSK-E0005 error

Missing class attribute type annotation

Every class attribute declared in the class body must have an explicit type annotation. Without one, Basilisk cannot verify assignments to the attribute and cannot produce accurate stub types.

Enum subclasses and Protocol subclasses are exempt: Enum members have metaclass-synthesised Literal... types, and Protocol attributes are interface specifications rather than concrete class variables.

Real basilisk check output

What you see when BSK-E0005 fires on a minimal example:

basilisk check output reporting BSK-E0005 — Missing class attribute type annotation

How to handle it

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

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