ruff
841fb339 - Reject starred comprehension targets (#26023)

Commit
30 days ago
Reject starred comprehension targets (#26023) ## 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`.
Author
Parents
Loading