Skip to content

Files

Latest commit

 

History

History
19 lines (12 loc) · 339 Bytes

redeclared-assigned-name.md

File metadata and controls

19 lines (12 loc) · 339 Bytes

Pattern: Redeclaring assigned name

Issue: -

Description

Detects that a name was assigned one or multiple times in the same assignment, which indicate a potential bug.

Example of incorrect code:

FIRST, FIRST = (1, 2)  # [redeclared-assigned-name]

Example of correct code:

FIRST, SECOND = (1, 2)