diff --git a/wemake_python_styleguide/compat.py b/wemake_python_styleguide/compat.py index 209ddc69e..e623e7323 100644 --- a/wemake_python_styleguide/compat.py +++ b/wemake_python_styleguide/compat.py @@ -13,7 +13,7 @@ def maybe_set_parent(tree: ast.AST) -> ast.AST: """Sets parents for all nodes that do not have this prop.""" for statement in ast.walk(tree): for child in ast.iter_child_nodes(statement): - if not hasattr(child, 'parent'): # noqa: Z105 - setattr(child, 'parent', statement) # noqa: Z105 + if not hasattr(child, 'parent'): # noqa: Z113 + setattr(child, 'parent', statement) # noqa: Z113 return tree