|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| typing.Sequence[_T] | __call__ (self, typing.Sequence[_T] value) |
Public Member Functions inherited from OneOf | |
| def | __init__ (self, typing.Iterable choices, typing.Optional[typing.Iterable[str]] labels=None, *typing.Optional[str] error=None) |
| typing.Any | __call__ (self, typing.Any value) |
| typing.Iterable[typing.Tuple[typing.Any, str]] | options (self, typing.Union[str, typing.Callable[[typing.Any], typing.Any]] valuegetter=str) |
Public Member Functions inherited from Validator | |
| str | __repr__ (self) |
Static Public Attributes | |
| default_message | |
Static Public Attributes inherited from OneOf | |
| default_message | |
Static Public Attributes inherited from Validator | |
| error | |
Additional Inherited Members | |
Data Fields inherited from OneOf | |
| choices | |
| choices_text | |
| labels | |
| labels_text | |
| error | |
Validator which succeeds if ``value`` is a sequence and each element
in the sequence is also in the sequence passed as ``choices``. Empty input
is considered valid.
:param iterable choices: Same as :class:`OneOf`.
:param iterable labels: Same as :class:`OneOf`.
:param str error: Same as :class:`OneOf`.
.. versionchanged:: 3.0.0b2
Duplicate values are considered valid.
.. versionchanged:: 3.0.0b2
Empty input is considered valid. Use `validate.Length(min=1) <marshmallow.validate.Length>`
to validate against empty inputs.
| typing.Sequence[_T] __call__ | ( | self, | |
| typing.Sequence[_T] | value | ||
| ) |
|
static |