Unused import¶
ID: py/unused-importKind: problemSecurity severity: Severity: recommendationPrecision: very-highTags: - quality - maintainability - useless-codeQuery suites: - python-security-and-quality.qls
Click to see the query in the CodeQL repository
A module is imported (using theimport statement) but that module is never used. This creates a dependency that does not need to exist and makes the code more difficult to read.
Recommendation¶
Delete the import statement.
References¶
Python:import statement.