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
C:\temp>py -3 -m pylint test.py
Exception on node <ClassDef.Bla l.3 at 0x1255a3b6dc0> in file 'C:\temp\test.py'
Traceback (most recent call last):
File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python39\lib\site-packages\pylint\__main__.py", line 9, in <module>
pylint.run_pylint()
File "C:\Program Files\Python39\lib\site-packages\pylint\__init__.py", line 24, in run_pylint
PylintRun(sys.argv[1:])
File "C:\Program Files\Python39\lib\site-packages\pylint\lint\run.py", line 384, in __init__
linter.check(args)
File "C:\Program Files\Python39\lib\site-packages\pylint\lint\pylinter.py", line 973, in check
self._check_files(
File "C:\Program Files\Python39\lib\site-packages\pylint\lint\pylinter.py", line 1007, in _check_files
self._check_file(get_ast, check_astroid_module, name, filepath, modname)
File "C:\Program Files\Python39\lib\site-packages\pylint\lint\pylinter.py", line 1033, in _check_file
check_astroid_module(ast_node)
File "C:\Program Files\Python39\lib\site-packages\pylint\lint\pylinter.py", line 1170, in check_astroid_module
retval = self._check_astroid_module(
File "C:\Program Files\Python39\lib\site-packages\pylint\lint\pylinter.py", line 1215, in _check_astroid_module
walker.walk(ast_node)
File "C:\Program Files\Python39\lib\site-packages\pylint\utils\ast_walker.py", line 77, in walk
self.walk(child)
File "C:\Program Files\Python39\lib\site-packages\pylint\utils\ast_walker.py", line 79, in walk
callback(astroid)
File "C:\Program Files\Python39\lib\site-packages\pylint\checkers\classes.py", line 901, in leave_classdef
self._check_unused_private_members(node)
File "C:\Program Files\Python39\lib\site-packages\pylint\checkers\classes.py", line 914, in _check_unused_private_members
and attribute.expr.name in ("self", node.name)
AttributeError: 'Call' object has no attribute 'name'
Expected behavior
************* Module test
test.py:3:0: R0903: Too few public methods (0/2) (too-few-public-methods)
------------------------------------------------------------------
Your code has been rated at 8.00/10 (previous run: 2.00/10, +6.00)
Steps to reproduce
Given a file
test.py
:Current behavior
Result of
pylint a.py
:Expected behavior
pylint --version output
Result of
pylint --version
output:The issue doesn't reproduce on version 2.8.3
It started reproducing on 2.9.0 and still happens in the latest prerelease version
The text was updated successfully, but these errors were encountered: