Skip to content

Commit 8615d6d

Browse files
committed
docstring syntax
1 parent ea1a5a3 commit 8615d6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/textual/walk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ def walk_depth_first(
5050
5151
Args:
5252
root: The root note (starting point).
53-
filter_type: Optional DOMNode subclass to filter by, or ``None`` for no filter.
53+
filter_type: Optional DOMNode subclass to filter by, or `None` for no filter.
5454
with_root: Include the root in the walk.
5555
5656
Returns:
57-
An iterable of DOMNodes, or the type specified in ``filter_type``.
57+
An iterable of DOMNodes, or the type specified in `filter_type`.
5858
"""
5959
stack: list[Iterator[DOMNode]] = [iter(root.children)]
6060
pop = stack.pop
@@ -116,11 +116,11 @@ def walk_breadth_first(
116116
117117
Args:
118118
root: The root note (starting point).
119-
filter_type: Optional DOMNode subclass to filter by, or ``None`` for no filter.
119+
filter_type: Optional DOMNode subclass to filter by, or `None` for no filter.
120120
with_root: Include the root in the walk.
121121
122122
Returns:
123-
An iterable of DOMNodes, or the type specified in ``filter_type``.
123+
An iterable of DOMNodes, or the type specified in `filter_type`.
124124
"""
125125
from textual.dom import DOMNode
126126

0 commit comments

Comments
 (0)