form: remove ChoosableOptions for now

This commit is contained in:
axolotle 2023-04-19 20:01:18 +02:00
parent 6bef4b1e0e
commit b778aaf780

View file

@ -938,18 +938,6 @@ class FileOption(BaseInputOption):
# ─ CHOICES ───────────────────────────────────────────────
ChoosableOptions = Literal[
OptionType.string,
OptionType.color,
OptionType.number,
OptionType.date,
OptionType.time,
OptionType.email,
OptionType.path,
OptionType.url,
]
class BaseChoicesOption(BaseInputOption):
# FIXME probably forbid choices to be None?
filter: Union[JSExpression, None] = None # filter before choices