From 3a2950b2fdfe3a6ed2723fb7fe8569a005acffb3 Mon Sep 17 00:00:00 2001 From: Aled Watkins Date: Sat, 6 Apr 2024 15:34:46 +0100 Subject: [PATCH] Change `ListTimetableCommand.choices` to tuple Prior to this change, this was a generator which is incompatible with the type of the attribute on the super class. --- squash_bot/list_timetable/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squash_bot/list_timetable/commands.py b/squash_bot/list_timetable/commands.py index 471ace7..a644356 100644 --- a/squash_bot/list_timetable/commands.py +++ b/squash_bot/list_timetable/commands.py @@ -35,7 +35,7 @@ class ListTimetableCommand(_command.Command): type=core_constants.CommandOptionType.STRING, default=timetable.TimeOfDayType.ANY.value, required=False, - choices=( + choices=tuple( _command.CommandOptionChoice( time_of_day.value, time_of_day.value, core_constants.CommandOptionType.STRING )