imports_unresolved
error
Unresolved import
Fires when an import cannot be resolved and the module is not part of the Python standard library. When uv package-registry context is available the diagnostic message explains why the import failed (not installed, transitive-only, needs sync, wrong Python version). Without that context a generic fallback message is used.
How to handle it
Every rule is on by default — strict is the default, not a cage. You can dial
imports_unresolved 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/imports_unresolved