multiple-starred-expressions
What it does
Section titled “What it does”Reports an assignment target with two starred names, such as a, *b, *c = x.
Why it matters
Section titled “Why it matters”Python rejects the file with SyntaxError: multiple starred expressions in assignment, since it cannot tell how to split the values between them.
To fix, keep one starred name.
Example
Section titled “Example”...
...
*a, *b = range(3)Configuration
Section titled “Configuration”python: lint: rules: multiple-starred-expressions: warn # off, warn (default), errorEnabled by the presets: python/ruff.
Suppress one line with sudsy-disable-next-line multiple-starred-expressions in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| ruff | F622 |
full |