Dont-Self-Assign-Variables¶
Sourcery rule id: dont-self-assign-variables
¶
Description¶
Assigning a variable to itself has no effect.
Match¶
a = a
Explanation¶
Assigning a variable to itself has no effect, and is therefore either redundant or a mistake.