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
class MyClass():
def fu(self, objects):
delitem = dict.__delitem__.__get__(self, dict)
for k in objects:
delitem(k)
Run pylint 2.5.3 on the file.
Current behavior
Exception:
File "D:\Program Files\Python38\lib\site-packages\pylint\lint\run.py", line 344, in __init__
linter.check(args)
File "D:\Program Files\Python38\lib\site-packages\pylint\lint\pylinter.py", line 870, in check
self._check_files(
File "D:\Program Files\Python38\lib\site-packages\pylint\lint\pylinter.py", line 904, in _check_files
self._check_file(get_ast, check_astroid_module, name, filepath, modname)
File "D:\Program Files\Python38\lib\site-packages\pylint\lint\pylinter.py", line 930, in _check_file
check_astroid_module(ast_node)
File "D:\Program Files\Python38\lib\site-packages\pylint\lint\pylinter.py", line 1062, in check_astroid_module
retval = self._check_astroid_module(
File "D:\Program Files\Python38\lib\site-packages\pylint\lint\pylinter.py", line 1107, in _check_astroid_module
walker.walk(ast_node)
File "D:\Program Files\Python38\lib\site-packages\pylint\utils\ast_walker.py", line 75, in walk
self.walk(child)
File "D:\Program Files\Python38\lib\site-packages\pylint\utils\ast_walker.py", line 75, in walk
self.walk(child)
File "D:\Program Files\Python38\lib\site-packages\pylint\utils\ast_walker.py", line 75, in walk
self.walk(child)
[Previous line repeated 2 more times]
File "D:\Program Files\Python38\lib\site-packages\pylint\utils\ast_walker.py", line 72, in walk
callback(astroid)
File "D:\Program Files\Python38\lib\site-packages\pylint\checkers\refactoring.py", line 720, in visit_call
self._check_raising_stopiteration_in_generator_next_call(node)
File "D:\Program Files\Python38\lib\site-packages\pylint\checkers\refactoring.py", line 761, in _check_raising_stopiteration_in_generator_next_call
inferred = utils.safe_infer(node.func)
File "D:\Program Files\Python38\lib\site-packages\pylint\checkers\utils.py", line 1124, in safe_infer
inferred_types.add(_get_python_type_of_node(value))
File "D:\Program Files\Python38\lib\site-packages\pylint\checkers\utils.py", line 1103, in _get_python_type_of_node
return pytype()
File "D:\Program Files\Python38\lib\site-packages\astroid\scoped_nodes.py", line 1185, in pytype
if "method" in self.type:
File "D:\Program Files\Python38\lib\site-packages\astroid\decorators.py", line 72, in __get__
val = self.wrapped(inst)
File "D:\Program Files\Python38\lib\site-packages\astroid\scoped_nodes.py", line 1461, in type
for decorator in self.extra_decorators:
File "D:\Program Files\Python38\lib\site-packages\astroid\decorators.py", line 72, in __get__
val = self.wrapped(inst)
File "D:\Program Files\Python38\lib\site-packages\astroid\scoped_nodes.py", line 1419, in extra_decorators
frame = self.parent.frame()
AttributeError: 'NoneType' object has no attribute 'frame'
Steps to reproduce
Current behavior
Exception:
Expected behavior
Normal pylint run without exception.
python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
outputPython 3.8.3
Pylint 2.5.3
astroid 2.4.1
The text was updated successfully, but these errors were encountered: