From a25ef78a7f3c81e3c5d4fbb4b847d41765509067 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Mon, 22 May 2023 15:02:32 +0100 Subject: [PATCH] Fully hint the type of the selection list in mesages --- src/textual/widgets/_selection_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/widgets/_selection_list.py b/src/textual/widgets/_selection_list.py index 0bfba439d..449feeab5 100644 --- a/src/textual/widgets/_selection_list.py +++ b/src/textual/widgets/_selection_list.py @@ -125,7 +125,7 @@ class SelectionList(Generic[SelectionType], OptionList): index: The index of the selection that the message relates to. """ super().__init__() - self.selection_list: SelectionList = selection_list + self.selection_list: SelectionList[MessageSelectionType] = selection_list """The option list that sent the message.""" self.selection: Selection[ MessageSelectionType