Fully hint the type of the selection list in mesages

This commit is contained in:
Dave Pearson
2023-05-22 15:02:32 +01:00
parent 13e796bfea
commit a25ef78a7f

View File

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