form: fix SelectOption's choices coercing list to dict

This commit is contained in:
axolotle 2023-12-12 12:17:19 +01:00
parent 9809de65f8
commit 1d734b5df5

View file

@ -1465,7 +1465,7 @@ class SelectOption(BaseChoicesOption):
type: Literal[OptionType.select] = OptionType.select
filter: Literal[None] = None
choices: Union[dict[str, Any], list[Any]]
choices: Union[list[Any], dict[str, Any]]
default: Union[str, None]
_annotation = str