consider Sequence[Any]
instead of Iterable[Any]
for ChoiceField
s choices
#454
Labels
bug
Something isn't working
this isn't a bug but perhaps a suggestion.
when rest_framework's
ChoiceField
andMultipleChoiceField
receive an unordered collection forchoices
it can lead to a negative experience: unordered form output, unordered schema, etc.djangorestframework-stubs/rest_framework-stubs/fields.pyi
Line 460 in e0e9e1f
we've made a small plugin for
sentry
that enforces this for our uses since we kept hitting this problem: getsentry/sentry#53707though this isn't entirely in spirit of the type system so understandable if this isn't a good idea
The text was updated successfully, but these errors were encountered: