diff --git a/searches/binary_tree_traversal.py b/searches/binary_tree_traversal.py index 47af57f7f94d..2e70bcfe251b 100644 --- a/searches/binary_tree_traversal.py +++ b/searches/binary_tree_traversal.py @@ -259,6 +259,7 @@ def post_order_iter(node: TreeNode) -> None: def prompt(s: str = "", width=50, char="*") -> str: + """Return a prompt string padded to the specified width.""" if not s: return "\n" + width * char left, extra = divmod(width - len(s) - 2, 2)