Check for unused imports
Open
Nobody has claimed this yet.
priority-low
type-feature
- Dominant language
- Python
- Stars
- 83
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
A check that knows the special import handling in stubs. E.g.:
from x import a, b, c as c
x: b
This should complain about a being unused, but not b or c.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no source file or test; start by locating the existing import checks in flake8-pyi and its test coverage. Use the stub example as the initial case: report a as unused while retaining b and c, and verify the check distinguishes these special imports.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100