You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pylint crashed with a AttributeError and with the following stacktrace:
Traceback (most recent call last):
File "/home/graingert/.local/pipx/.cache/1ea90594a10eda9/lib/python3.8/site-packages/pylint/lint/pylinter.py", line 1008, in _check_files
self._check_file(get_ast, check_astroid_module, file)
File "/home/graingert/.local/pipx/.cache/1ea90594a10eda9/lib/python3.8/site-packages/pylint/lint/pylinter.py", line 1043, in _check_file
check_astroid_module(ast_node)
File "/home/graingert/.local/pipx/.cache/1ea90594a10eda9/lib/python3.8/site-packages/pylint/lint/pylinter.py", line 1180, in check_astroid_module
retval = self._check_astroid_module(
File "/home/graingert/.local/pipx/.cache/1ea90594a10eda9/lib/python3.8/site-packages/pylint/lint/pylinter.py", line 1227, in _check_astroid_module
walker.walk(node)
File "/home/graingert/.local/pipx/.cache/1ea90594a10eda9/lib/python3.8/site-packages/pylint/utils/ast_walker.py", line 78, in walk
self.walk(child)
File "/home/graingert/.local/pipx/.cache/1ea90594a10eda9/lib/python3.8/site-packages/pylint/utils/ast_walker.py", line 80, in walk
callback(astroid)
File "/home/graingert/.local/pipx/.cache/1ea90594a10eda9/lib/python3.8/site-packages/pylint/checkers/classes.py", line 907, in leave_classdef
self._check_unused_private_variables(node)
File "/home/graingert/.local/pipx/.cache/1ea90594a10eda9/lib/python3.8/site-packages/pylint/checkers/classes.py", line 973, in _check_unused_private_variables
and child.expr.name in ("self", "cls", node.name)
AttributeError: 'Attribute' object has no attribute 'name'
The text was updated successfully, but these errors were encountered:
graingert
changed the title
Crash 'Attribute' object has no attribute 'name' (if possible, be more specific about what made pylint crash)
Crash 'Attribute' object has no attribute 'name' in _check_unused_private_variables due to access via self.__class__
Nov 5, 2021
When parsing the following file:
pylint crashed with a
AttributeError
and with the following stacktrace:The text was updated successfully, but these errors were encountered: