Description
Bug description
consider-using-augmented-assign
did not catch next situations:
dict_of_dicts = {
'key1': {
'key2': 0
}
}
dict_of_dicts['key1']['key2'] = dict_of_dicts['key1']['key2'] + 1 # [consider-using-augmented-assign]
Configuration
No response
Command used
pylint --load-plugins=pylint.extensions.code_style --enable=all pylint_test.py
Pylint output
************* Module pylint_test
pylint_test.py:1:0: C0114: Missing module docstring (missing-module-docstring)
-------------------------------------------------------------------
Your code has been rated at 6.67/10 (previous run: 10.00/10, -3.33)
Expected behavior
Warning should be shown.
Pylint version
pylint 2.17.4
astroid 2.15.5
Python 3.11.4 (main, Jun 26 2023, 16:57:25) [GCC 7.5.0]
OS / Environment
No response
Additional dependencies
No response