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
<!-- <img width="85%" src="./media/traversal-animation.gif" alt="Complete traversal of the AST for greet.py visualized with Graphviz"/> -->
563
567
</div>
564
568
565
569
---
@@ -653,9 +657,9 @@ class DocstringVisitor(ast.NodeVisitor):
653
657
[notes]
654
658
### Other uses for stacks
655
659
656
-
- determine whether a`ast.FunctionDef` node is a standalone function or method of a class
660
+
- determine whether an`ast.FunctionDef` node is a standalone function or method of a class
657
661
- detect when a function or class is nested
658
-
- check whether a function definition has a `return` statement (and therefore should be documented), despite not having a return type annotation
662
+
- check whether a function definition has a `return` statement (and therefore should be documented), despite not having a return type annotation, using a `visit_Returns()` method
0 commit comments