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
Traceback (most recent call last):
File "/root/home-assistant/venv/lib/python3.8/site-packages/pylint/lint/pylinter.py", line 1044, in get_ast
return MANAGER.ast_from_file(filepath, modname, source=True)
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/manager.py", line 101, in ast_from_file
return AstroidBuilder(self).file_build(filepath, modname)
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/builder.py", line 139, in file_build
return self._post_build(module, encoding)
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/builder.py", line 163, in _post_build
module = self._manager.visit_transforms(module)
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/manager.py", line 78, in visit_transforms
return self._transform.visit(node)
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/transforms.py", line 89, in visit
module.body = [self._visit(child) for child in module.body]
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/transforms.py", line 89, in <listcomp>
module.body = [self._visit(child) for child in module.body]
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/transforms.py", line 54, in _visit
visited = self._visit_generic(value)
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/transforms.py", line 61, in _visit_generic
return [self._visit_generic(child) for child in node]
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/transforms.py", line 61, in <listcomp>
return [self._visit_generic(child) for child in node]
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/transforms.py", line 67, in _visit_generic
return self._visit(node)
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/transforms.py", line 57, in _visit
return self._transform(node)
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/transforms.py", line 39, in _transform
if predicate is None or predicate(node):
File "/root/home-assistant/venv/lib/python3.8/site-packages/astroid/brain/brain_namedtuple_enum.py", line 472, in <lambda>
lambda node: node.name == "NamedTuple" and node.parent.name == "typing",
AttributeError: 'If' object has no attribute 'name'
************* Module run
run.py:1:0: F0002: <class 'AttributeError'>: 'If' object has no attribute 'name' (astroid-error)
https://github.com/secdev/scapy/blob/master/scapy/compat.py
Steps to reproduce
Given a file
a.py
:Current behavior
Result of
pylint a.py
:Expected behavior
pylint --version output
Result of
pylint --version
output:Also fails with
The text was updated successfully, but these errors were encountered: