Skip to content

Commit

Permalink
Change ListTimetableCommand.choices to tuple
Browse files Browse the repository at this point in the history
Prior to this change, this was a generator which is incompatible with
the type of the attribute on the super class.
  • Loading branch information
AledWatkins committed Apr 6, 2024
1 parent 5c169b8 commit c24fb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion squash_bot/list_timetable/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit c24fb22

Please sign in to comment.