---
source: crates/ruff_linter/src/rules/pylint/mod.rs
snapshot_kind: text
---
redeclared_assigned_name.py:1:8: PLW0128 Redeclared variable `FIRST` in assignment
  |
1 | FIRST, FIRST = (1, 2)  # PLW0128
  |        ^^^^^ PLW0128
2 | FIRST, (FIRST, SECOND) = (1, (1, 2))  # PLW0128
3 | FIRST, (FIRST, SECOND, (THIRD, FIRST)) = (1, (1, 2))  # PLW0128
  |

redeclared_assigned_name.py:2:9: PLW0128 Redeclared variable `FIRST` in assignment
  |
1 | FIRST, FIRST = (1, 2)  # PLW0128
2 | FIRST, (FIRST, SECOND) = (1, (1, 2))  # PLW0128
  |         ^^^^^ PLW0128
3 | FIRST, (FIRST, SECOND, (THIRD, FIRST)) = (1, (1, 2))  # PLW0128
4 | FIRST, SECOND, THIRD, FIRST, SECOND = (1, 2, 3, 4)  # PLW0128
  |

redeclared_assigned_name.py:3:9: PLW0128 Redeclared variable `FIRST` in assignment
  |
1 | FIRST, FIRST = (1, 2)  # PLW0128
2 | FIRST, (FIRST, SECOND) = (1, (1, 2))  # PLW0128
3 | FIRST, (FIRST, SECOND, (THIRD, FIRST)) = (1, (1, 2))  # PLW0128
  |         ^^^^^ PLW0128
4 | FIRST, SECOND, THIRD, FIRST, SECOND = (1, 2, 3, 4)  # PLW0128
  |

redeclared_assigned_name.py:3:32: PLW0128 Redeclared variable `FIRST` in assignment
  |
1 | FIRST, FIRST = (1, 2)  # PLW0128
2 | FIRST, (FIRST, SECOND) = (1, (1, 2))  # PLW0128
3 | FIRST, (FIRST, SECOND, (THIRD, FIRST)) = (1, (1, 2))  # PLW0128
  |                                ^^^^^ PLW0128
4 | FIRST, SECOND, THIRD, FIRST, SECOND = (1, 2, 3, 4)  # PLW0128
  |

redeclared_assigned_name.py:4:23: PLW0128 Redeclared variable `FIRST` in assignment
  |
2 | FIRST, (FIRST, SECOND) = (1, (1, 2))  # PLW0128
3 | FIRST, (FIRST, SECOND, (THIRD, FIRST)) = (1, (1, 2))  # PLW0128
4 | FIRST, SECOND, THIRD, FIRST, SECOND = (1, 2, 3, 4)  # PLW0128
  |                       ^^^^^ PLW0128
5 | 
6 | FIRST, SECOND, _, _, _ignored = (1, 2, 3, 4, 5)  # OK
  |

redeclared_assigned_name.py:4:30: PLW0128 Redeclared variable `SECOND` in assignment
  |
2 | FIRST, (FIRST, SECOND) = (1, (1, 2))  # PLW0128
3 | FIRST, (FIRST, SECOND, (THIRD, FIRST)) = (1, (1, 2))  # PLW0128
4 | FIRST, SECOND, THIRD, FIRST, SECOND = (1, 2, 3, 4)  # PLW0128
  |                              ^^^^^^ PLW0128
5 | 
6 | FIRST, SECOND, _, _, _ignored = (1, 2, 3, 4, 5)  # OK
  |
