From c69e53f77eba26e6aa57ac162cd3416fa34241a9 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 25 May 2023 14:04:32 +0100 Subject: [PATCH 1/2] Save a word! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com> --- 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 40c9f3257..084c48274 100644 --- a/src/textual/widgets/_selection_list.py +++ b/src/textual/widgets/_selection_list.py @@ -382,7 +382,7 @@ class SelectionList(Generic[SelectionType], OptionList): value: The value to toggle. Returns: - Always `True`. + `True`. """ if value in self._selected: self._deselect(value) From 95389ebe764613b8f7b7e92eefc63df8a24d1d53 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 25 May 2023 14:05:05 +0100 Subject: [PATCH 2/2] Fix a typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com> --- 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 084c48274..146e25f18 100644 --- a/src/textual/widgets/_selection_list.py +++ b/src/textual/widgets/_selection_list.py @@ -260,7 +260,7 @@ class SelectionList(Generic[SelectionType], OptionList): """Post a message that the selected collection has changed, where appropriate. Note: - A message will only be send if `_send_messages` is `True`. This + A message will only be sent if `_send_messages` is `True`. This makes this safe to call before the widget is ready for posting messages. """