Skip to content

Commit 91eced8

Browse files
committed
Adds fix to compat style
1 parent d5f7668 commit 91eced8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wemake_python_styleguide/compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def maybe_set_parent(tree: ast.AST) -> ast.AST:
1313
"""Sets parents for all nodes that do not have this prop."""
1414
for statement in ast.walk(tree):
1515
for child in ast.iter_child_nodes(statement):
16-
if not hasattr(child, 'parent'): # noqa: Z105
17-
setattr(child, 'parent', statement) # noqa: Z105
16+
if not hasattr(child, 'parent'): # noqa: Z113
17+
setattr(child, 'parent', statement) # noqa: Z113
1818

1919
return tree

0 commit comments

Comments
 (0)