mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-26 06:15:39 +08:00
## Summary Reject bare starred targets in comprehensions: ```python [item for *items in source] ``` The semantic syntax checker already rejects a bare starred target in an ordinary `for` statement. This applies the same validation to comprehension clauses while preserving valid tuple and list unpacking targets such as `for *items, in source`.