Skip to content

Commit dc71564

Browse files
authored
Merge pull request #5419 from TomJGooding/docs-option-list-restore-missing-docstring
docs(option list): restore missing docstring
2 parents c4e3f04 + 9fa6a0a commit dc71564

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
@@ -259,6 +259,17 @@ def __init__(
259259
wrap: bool = True,
260260
tooltip: RenderableType | None = None,
261261
):
262+
"""Initialise the option list.
263+
264+
Args:
265+
*content: The content for the option list.
266+
name: The name of the option list.
267+
id: The ID of the option list in the DOM.
268+
classes: The CSS classes of the option list.
269+
disabled: Whether the option list is disabled or not.
270+
wrap: Should prompts be auto-wrapped?
271+
tooltip: Optional tooltip.
272+
"""
262273
super().__init__(name=name, id=id, classes=classes, disabled=disabled)
263274

264275
self._wrap = wrap

0 commit comments

Comments
 (0)