Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(option list): restore missing docstring #5419

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/textual/widgets/_option_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading