From 9e4f4db5dc9db60b10ea222a9288e3f12c3145d3 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 7 Sep 2024 20:30:57 +0100 Subject: [PATCH] docstring --- src/textual/_node_list.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/textual/_node_list.py b/src/textual/_node_list.py index 958b799720..abae4c298f 100644 --- a/src/textual/_node_list.py +++ b/src/textual/_node_list.py @@ -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] = []