From bce64244e78dbd1cba933f58d9a6ce70d7a66987 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 13 Sep 2018 07:40:32 +0300 Subject: [PATCH] Fixes typo --- tests/test_visitors/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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