Skip to content

Commit 68c0ff9

Browse files
committed
fix class assign visitor. visit targets instead of the node
1 parent a0f6fdd commit 68c0ff9

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)