Derived from the Pyflakes linter.
Fix is sometimes available.
What it does#
Checks for unused imports.
Why is this bad?#
Unused imports add a performance overhead at runtime, and risk creating import cycles. They also increase the cognitive load of reading the code.
If an import statement is used to check for the availability or existence
of a module, consider using
To check the availability of a module, use