mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 04:48:06 +00:00
## Summary This is effectively the same problem as https://github.com/astral-sh/ruff/pull/9175. And this just papers over it again, though I'm gonna try a more holistic fix in a follow-up PR. The _real_ fix here is that we need to continue to visit deferred items until they're exhausted since, e.g., we still get this case wrong (flagging `re` as unused): ```python import re cast(lambda: re.match, 1) ``` Closes https://github.com/astral-sh/ruff/issues/9534. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| package | ||
| project | ||
| disallowed_rule_names.txt | ||