pylint crashed with a ``AttributeError`` and with the following stacktrace:
Traceback (most recent call last):
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 1034, in _check_files
self._check_file(get_ast, check_astroid_module, file)
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 1069, in _check_file
check_astroid_module(ast_node)
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 1203, in check_astroid_module
retval = self._check_astroid_module(
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 1250, in _check_astroid_module
walker.walk(node)
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 75, in walk
self.walk(child)
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 75, in walk
self.walk(child)
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 75, in walk
self.walk(child)
[Previous line repeated 1 more time]
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 72, in walk
callback(astroid)
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/checkers/refactoring/refactoring_checker.py", line 637, in visit_for
self._check_unnecessary_dict_index_lookup(node)
File "/home/azureuser/runners/ScenarioExtractor_runner/_work/_tool/Python/3.10.1/x64/lib/python3.10/site-packages/pylint/checkers/refactoring/refactoring_checker.py", line 1906, in _check_unneces
sary_dict_index_lookup
or node.target.name != value.value.name
AttributeError: 'Attribute' object has no attribute 'name'
jacobtylerwalls
added
Needs backport
Needs to be cherry-picked on the current patch version by a pylint's maintainer
and removed
Needs backport
Needs to be cherry-picked on the current patch version by a pylint's maintainer
labels
May 11, 2022
Bug description
Configuration
No response
Command used
Pylint output
Expected behavior
Not fail? I think
Pylint version
The text was updated successfully, but these errors were encountered: