Skip to content
Snippets Groups Projects
Commit 83099dad authored by Bryce Guinta's avatar Bryce Guinta
Browse files

Fix parent reference in transform (incorrectly referred to body as parent)

parent ad0cc167
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -34,7 +34,7 @@ def attr_attributes_transform(node):
"""
# Astroid can't infer this attribute properly
# Prevents https://github.com/PyCQA/pylint/issues/1884
node.locals["__attrs_attrs__"] = [astroid.Unknown(parent=node.body)]
node.locals["__attrs_attrs__"] = [astroid.Unknown(parent=node)]
 
for cdefbodynode in node.body:
if not isinstance(cdefbodynode, astroid.Assign):
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment