Skip to content

Commit 7592a20

Browse files
authored
Merge pull request #26 from vindex10/bug/visit_assign_targets
fix class assign visitor. visit targets instead of the node
2 parents a0f6fdd + 68c0ff9 commit 7592a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/asthelper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, instance_name):
5252
def visit_Assign(self, node):
5353
ac = AttributeCollector(self.instance_name)
5454
for target in node.targets:
55-
ac.visit(node)
55+
ac.visit(target)
5656
self.attributes |= ac.data
5757

5858

0 commit comments

Comments
 (0)