You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visits a ClassDef node and adds it to the list of classes if it does not have a docstring or if `force` is `True`.
44
+
Visits a ClassDef node and adds its name to the list of classes if it does not have a docstring or if `force` or `update` is `True`. Also sets the current class name for nested function collection.
45
+
34
46
Args:
35
47
node (cst.ClassDef): The ClassDef node to visit.
36
48
"""
37
49
self.current_class=node.name.value
38
-
ifnothas_docstring(node) orself.force:
50
+
ifself.force:
51
+
self.classes.append(node.name.value)
52
+
elifhas_docstring(node) andself.update:
53
+
self.classes.append(node.name.value)
54
+
elifnothas_docstring(node) andnotself.update:
39
55
self.classes.append(node.name.value)
40
56
# self.visit_ClassDef(node) # Call the superclass method to continue the visit
0 commit comments