Assignment can be replaced with augmented assignment
Reports assignments that can be replaced with augmented assignments.
Example:
a = 23
b = 3
a = a + b
After the quick-fix is applied, the code changes to:
a = 23
b = 3
a += b
Inspection Details | |
---|---|
Available in: | DataSpell 2023.3, PyCharm 2023.3 |
Plugin: | Python Community Edition, 233.SNAPSHOT |
Last modified: 13 July 2023