Correct the types in a copied docstring

This commit is contained in:
Dave Pearson
2023-05-24 12:59:20 +01:00
parent 64ed982fd4
commit 2e37541d70

View File

@@ -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