consider-using-augmented-assign / R6104#
Use '%s' to do an augmented assign directly
Emitted when an assignment is referring to the object that it is assigning to. This can be changed to be an augmented assign. Disabled by default!
This message is disabled by default. To enable it, add
consider-using-augmented-assign to the
x = 1 x = x + 1 # [consider-using-augmented-assign]
x = 1 x += 1
[MAIN] load-plugins=pylint.extensions.code_style enable=consider-using-augmented-assign
- This message is emitted by the optional 'code_style'
checker which requires the
pylint.extensions.code_styleplugin to be loaded.
Created by the code_style checker.