We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7592a20 + 4690d15 commit 8e09eedCopy full SHA for 8e09eed
1 file changed
python/asthelper.py
@@ -55,6 +55,11 @@ def visit_Assign(self, node):
55
ac.visit(target)
56
self.attributes |= ac.data
57
58
+ def visit_AnnAssign(self, node):
59
+ ac = AttributeCollector(self.instance_name)
60
+ ac.visit(node.target)
61
+ self.attributes |= ac.data
62
+
63
64
class MethodVisitor(ast.NodeVisitor):
65
"""Gathers information about a method
0 commit comments