Skip to content

Commit

Permalink
Merge pull request #5419 from TomJGooding/docs-option-list-restore-mi…
Browse files Browse the repository at this point in the history
…ssing-docstring

docs(option list): restore missing docstring
  • Loading branch information
willmcgugan authored Jan 12, 2025
2 parents c4e3f04 + 9fa6a0a commit dc71564
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/textual/widgets/_option_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,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
Expand Down

0 comments on commit dc71564

Please sign in to comment.