Skip to content

Commit

Permalink
docs: fix copypasta in docstrings (#5001)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJGooding authored Sep 16, 2024
1 parent 7738b10 commit fe91255
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/textual/widgets/_tabbed_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ def __init__(
Args:
*titles: Positional argument will be used as title.
initial: The id of the initial tab, or empty string to select the first tab.
name: The name of the button.
id: The ID of the button in the DOM.
classes: The CSS classes of the button.
disabled: Whether the button is disabled or not.
name: The name of the tabbed content.
id: The ID of the tabbed content in the DOM.
classes: The CSS classes of the tabbed content.
disabled: Whether the tabbed content is disabled or not.
"""
self.titles = [self.render_str(title) for title in titles]
self._tab_content: list[Widget] = []
Expand Down
4 changes: 2 additions & 2 deletions src/textual/widgets/_tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ def __init__(
Args:
*tabs: Positional argument should be explicit Tab objects, or a str or Text.
active: ID of the tab which should be active on start.
name: Optional name for the input widget.
name: Optional name for the tabs widget.
id: Optional ID for the widget.
classes: Optional initial classes for the widget.
disabled: Whether the input is disabled or not.
disabled: Whether the widget is disabled or not.
"""
self._tabs_counter = 0

Expand Down

0 comments on commit fe91255

Please sign in to comment.