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