Skip to content

Ignore PLC0414 (useless-import-alias) - #216

Merged
jaraco merged 1 commit into
mainfrom
ignore-plc0414
Oct 1, 2026
Merged

jaraco merged 1 commit into
mainfrom
ignore-plc0414

Conversation

@jaraco

@jaraco jaraco commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Ruff 0.16 enables PLC0414 by default (#210). It flags import X as X, which is the idiom type checkers (mypy --no-implicit-reexport, pyright strict) recognize as an explicit re-export. Worse, its fix strips the alias and F401 then removes the now-"unused" import, silently dropping public names, as happened in distutils/errors.py.

Encountered again in jaraco/tempora#59, where schedule.py intentionally re-exports now so clients can override it.

🤖 Generated with Claude Code

Ref #210.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jaraco
jaraco merged commit 9e08129 into main Oct 1, 2026
32 of 36 checks passed
@jaraco
jaraco deleted the ignore-plc0414 branch October 1, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant