diff --git a/tests/test_visitors/conftest.py b/tests/test_visitors/conftest.py index 23a51945a..c2ea882e1 100644 --- a/tests/test_visitors/conftest.py +++ b/tests/test_visitors/conftest.py @@ -25,7 +25,7 @@ def maybe_set_parent(tree: ast.AST) -> ast.AST: """ for statement in ast.walk(tree): for child in ast.iter_child_nodes(statement): - if not hasattr(child, 'parent'): # noqa: Z113 + if not hasattr(child, 'parent'): # noqa: Z112 setattr(child, 'parent', statement) return tree