We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5f7668 commit 91eced8Copy full SHA for 91eced8
wemake_python_styleguide/compat.py
@@ -13,7 +13,7 @@ def maybe_set_parent(tree: ast.AST) -> ast.AST:
13
"""Sets parents for all nodes that do not have this prop."""
14
for statement in ast.walk(tree):
15
for child in ast.iter_child_nodes(statement):
16
- if not hasattr(child, 'parent'): # noqa: Z105
17
- setattr(child, 'parent', statement) # noqa: Z105
+ if not hasattr(child, 'parent'): # noqa: Z113
+ setattr(child, 'parent', statement) # noqa: Z113
18
19
return tree
0 commit comments