BSK-E0152 error

Missing type stubs for installed package

Fires when a package is imported and resolves to a .py source file (not .pyi) without a py.typed marker. This means the package is installed but lacks type information, reducing type safety. Strict-by-default: an untyped third-party import is a hard error. Projects can opt out per import (# type: warningBSK-E0152) or globally ("BSK-E0152" = "warning") to import non-type-safe libraries at their own risk.

import flask  # E0152: Package 'flask' is installed but has no type stubs

How to handle it

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