Assignment issues
- Assignment can be replaced with augmented assignment
Reports assignments that can be replaced with augmented assignments.
- Assignments to 'for' loop or 'with' statement parameter
Reports the cases when you rewrite a loop variable with an inner loop.
- Reassigning the first argument of a method
Reports cases when the first parameter, such as self or cls, is reassigned in a method.
- Tuple item assignment is prohibited
Reports assignments to a tuple item.
Last modified: 20 November 2026