mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-21 12:16:15 +08:00
## Summary ty currently reports `unresolved-import` for both a missing module and a missing member in a `from` import. But the word "unresolved" is heavily overloaded in Python, and has been reported by users as being confusing (see https://github.com/astral-sh/ty/issues/2471). This PR renames the rule to `import-not-found`, which describes the lookup failure in either case. Configuration, command-line flags, and ignore comments accept either spelling. If several flags set this rule’s severity using different spellings, the last flag wins. Existing baseline entries still match, and rewriting a baseline uses the new name. Links to the old rule heading still work.