Skip to content

Commit 80ee75e

Browse files
committed
Switch to video for traversal to avoid restarting issues
1 parent 2e165e0 commit 80ee75e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

keynote.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,11 @@ greet is missing a docstring
559559
---
560560

561561
<div class="center">
562-
<img width="85%" src="./media/traversal-animation.gif" alt="Complete traversal of the AST for greet.py visualized with Graphviz"/>
562+
<video width="80%" controls>
563+
<source src="./media/traversal-animation.mp4" type="video/mp4">
564+
Your browser does not support the video tag.
565+
</video>
566+
<!-- <img width="85%" src="./media/traversal-animation.gif" alt="Complete traversal of the AST for greet.py visualized with Graphviz"/> -->
563567
</div>
564568

565569
---
@@ -653,9 +657,9 @@ class DocstringVisitor(ast.NodeVisitor):
653657
[notes]
654658
### Other uses for stacks
655659

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
657661
- 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
659663

660664

661665
---

0 commit comments

Comments
 (0)