From 98021626160f3f65013f91ef409f0f4371933bff Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:24:54 +0000 Subject: [PATCH] refactor(select): utilize add_options method --- src/textual/widgets/_select.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/textual/widgets/_select.py b/src/textual/widgets/_select.py index 8d651cbe44..ab8be3620e 100644 --- a/src/textual/widgets/_select.py +++ b/src/textual/widgets/_select.py @@ -415,8 +415,7 @@ def _setup_options_renderables(self) -> None: option_list = self.query_one(SelectOverlay) option_list.clear_options() - for option in self._select_options: - option_list.add_option(option) + option_list.add_options(self._select_options) def _init_selected_option(self, hint: SelectType | NoSelection = BLANK) -> None: """Initialises the selected option for the `Select`."""