From fe91255871d9772ca0fc10e517dcb196ee64fbcb Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Mon, 16 Sep 2024 10:45:44 +0100 Subject: [PATCH] docs: fix copypasta in docstrings (#5001) --- src/textual/widgets/_tabbed_content.py | 8 ++++---- src/textual/widgets/_tabs.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/textual/widgets/_tabbed_content.py b/src/textual/widgets/_tabbed_content.py index aea9a555ff..d216688f7f 100644 --- a/src/textual/widgets/_tabbed_content.py +++ b/src/textual/widgets/_tabbed_content.py @@ -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] = [] diff --git a/src/textual/widgets/_tabs.py b/src/textual/widgets/_tabs.py index abcf4654a6..db91209a88 100644 --- a/src/textual/widgets/_tabs.py +++ b/src/textual/widgets/_tabs.py @@ -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