OpenQuizz
Une application de gestion des contenus pédagogiques
NoneOf Class Reference
Inheritance diagram for NoneOf:
Collaboration diagram for NoneOf:

Public Member Functions

def __init__ (self, typing.Iterable iterable, *typing.Optional[str] error=None)
 
typing.Any __call__ (self, typing.Any value)
 
- Public Member Functions inherited from Validator
str __repr__ (self)
 

Data Fields

 iterable
 
 values_text
 
 error
 

Static Public Attributes

 default_message
 
- Static Public Attributes inherited from Validator
 error
 

Detailed Description

Validator which fails if ``value`` is a member of ``iterable``.

:param iterable: A sequence of invalid values.
:param error: Error message to raise in case of a validation error. Can be
    interpolated using `{input}` and `{values}`.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
typing.Iterable  iterable,
*typing.Optional[str]   error = None 
)

Member Function Documentation

◆ __call__()

typing.Any __call__ (   self,
typing.Any  value 
)

Reimplemented from Validator.

Field Documentation

◆ default_message

default_message
static

◆ error

error

◆ iterable

iterable

◆ values_text

values_text

The documentation for this class was generated from the following file: