BSK-W0011
warning
Undeclared dependency import
Fires when an import resolves to a package that is only a transitive dependency — present in uv.lock but not listed in the project's project.dependencies in pyproject.toml.
Transitive dependencies can disappear when a direct dependency drops them, breaking imports that relied on their implicit availability.
import urllib3 # W0011: 'urllib3' is a transitive dependency (via requests)
How to handle it
Every rule is on by default — strict is the default, not a cage. You can dial
BSK-W0011 down per-file or per-path from your editor or
pyproject.toml, or fix the code
so it type-checks. See the Warnings rules and
the complete diagnostic reference.
Canonical URL: https://www.basilisk-python.dev/warnings/BSK-W0011