Skip to content

Commit 9fa6a0a

Browse files
committed
docs(option list): restore missing docstring
1 parent 5cb6cd0 commit 9fa6a0a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/textual/widgets/_option_list.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,17 @@ def __init__(
257257
wrap: bool = True,
258258
tooltip: RenderableType | None = None,
259259
):
260+
"""Initialise the option list.
261+
262+
Args:
263+
*content: The content for the option list.
264+
name: The name of the option list.
265+
id: The ID of the option list in the DOM.
266+
classes: The CSS classes of the option list.
267+
disabled: Whether the option list is disabled or not.
268+
wrap: Should prompts be auto-wrapped?
269+
tooltip: Optional tooltip.
270+
"""
260271
super().__init__(name=name, id=id, classes=classes, disabled=disabled)
261272

262273
self._wrap = wrap

0 commit comments

Comments
 (0)