Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Sep 7, 2024
1 parent b6b79c7 commit 9e4f4db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/textual/_node_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ class NodeList(Sequence["Widget"]):
"""

def __init__(self, parent: DOMNode | None = None) -> None:
"""Initialize a node list.
Args:
parent: The parent node which holds a reference to this object, or `None` if
there is no parent.
"""
self._parent = None if parent is None else weakref.ref(parent)
# The nodes in the list
self._nodes: list[Widget] = []
Expand Down

0 comments on commit 9e4f4db

Please sign in to comment.