self-assigning-variable / W0127#

Message emitted:

Assigning the same variable %r to itself

Description:

Emitted when we detect that a variable is assigned to itself

Problematic code:

year = 2000
year = year  # [self-assigning-variable]

Correct code:

year = 2000

Related links:

Created by the basic checker.