From 2e37541d709ca203b25c35ccd072cbce69aa0cf9 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 24 May 2023 12:59:20 +0100 Subject: [PATCH] Correct the types in a copied docstring --- src/textual/widgets/_selection_list.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/textual/widgets/_selection_list.py b/src/textual/widgets/_selection_list.py index 719aa590a..231d2de1d 100644 --- a/src/textual/widgets/_selection_list.py +++ b/src/textual/widgets/_selection_list.py @@ -159,9 +159,10 @@ class SelectionList(Generic[SelectionType], OptionList): @property def control(self) -> OptionList: - """The option list that sent the message. + """The selection list that sent the message. - This is an alias for [`OptionMessage.option_list`][textual.widgets.OptionList.OptionMessage.option_list] + This is an alias for + [`SelectionMessage.selection_list`][textual.widgets.SelectionList.SelectionMessage.selection_list] and is used by the [`on`][textual.on] decorator. """ return self.selection_list