star-needs-assignment-target / E0114ΒΆ

Message emitted:

Can use starred expression only in assignment target

Description:

Emitted when a star expression is not used in an assignment target.

Problematic code:

stars = *["Sirius", "Arcturus", "Vega"]  # [star-needs-assignment-target]

Correct code:

sirius, *arcturus_and_vega = ["Sirius", "Arcturus", "Vega"]

Created by the basic checker.