Skip to content

Commit 7d0bfd8

Browse files
markstewardsrittau
andauthored
[wtforms] also allow None for SelectField.choices
As suggested by srittau Co-authored-by: Sebastian Rittau <sebastian.rittau@zfutura.de>
1 parent b132e7f commit 7d0bfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/WTForms/wtforms/fields/choices.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SelectFieldBase(Field):
4646

4747
class SelectField(SelectFieldBase):
4848
coerce: Callable[[Any], Any]
49-
choices: Sequence[_Choice] | _GroupedChoices
49+
choices: Sequence[_Choice] | _GroupedChoices | None
5050
validate_choice: bool
5151
def __init__(
5252
self,

0 commit comments

Comments
 (0)