consider-augmented-assign false positive #8086
Labels
Blocker 🙅
Blocks the next release
False Positive 🦟
A message is emitted but nothing is wrong with the code
Unreleased
Milestone
Bug description
Currently this checker doesn't appear to pay attention to the context of a field lookup and assumes that as long as the field name matches it can proceed, example:
Configuration
Command used
Please don't scream, we need to move things around (suggestions welcome either way).
`find . -type f -name "*.py" -not -path "./.env/*" -not -path "*/src/common/*" | xargs pylint --jobs 4 --init-hook "import sys; sys.path.append(\"$PWD\")"`
Pylint output
`Use '+=' to do an augmented assign directlypylint(consider-using-augmented-assign)`
Expected behavior
The false positive should not be reported
Pylint version
OS / Environment
MacOS
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: