From 9fa6a0af5ed6983abd1aa30a07d559d0e60c2403 Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Sat, 21 Dec 2024 10:09:27 +0000 Subject: [PATCH] docs(option list): restore missing docstring --- src/textual/widgets/_option_list.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/textual/widgets/_option_list.py b/src/textual/widgets/_option_list.py index 6aeac230ce..edb9a5efe6 100644 --- a/src/textual/widgets/_option_list.py +++ b/src/textual/widgets/_option_list.py @@ -257,6 +257,17 @@ def __init__( wrap: bool = True, tooltip: RenderableType | None = None, ): + """Initialise the option list. + + Args: + *content: The content for the option list. + name: The name of the option list. + id: The ID of the option list in the DOM. + classes: The CSS classes of the option list. + disabled: Whether the option list is disabled or not. + wrap: Should prompts be auto-wrapped? + tooltip: Optional tooltip. + """ super().__init__(name=name, id=id, classes=classes, disabled=disabled) self._wrap = wrap