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


Public Member Functions | |
| def | __init__ (self, default, validator, repr, cmp, hash, init, converter, metadata, type, kw_only, eq, eq_key, order, order_key, on_setattr) |
| def | validator (self, meth) |
| def | default (self, meth) |
Data Fields | |
| counter | |
| converter | |
| repr | |
| eq | |
| eq_key | |
| order | |
| order_key | |
| hash | |
| init | |
| metadata | |
| type | |
| kw_only | |
| on_setattr | |
Static Public Attributes | |
| int | cls_counter = 0 |
Intermediate representation of attributes that uses a counter to preserve the order in which the attributes have been defined. *Internal* data structure of the attrs library. Running into is most likely the result of a bug like a forgotten `@attr.s` decorator.
| def __init__ | ( | self, | |
| default, | |||
| validator, | |||
| repr, | |||
| cmp, | |||
| hash, | |||
| init, | |||
| converter, | |||
| metadata, | |||
| type, | |||
| kw_only, | |||
| eq, | |||
| eq_key, | |||
| order, | |||
| order_key, | |||
| on_setattr | |||
| ) |
| def default | ( | self, | |
| meth | |||
| ) |
Decorator that allows to set the default for an attribute. Returns *meth* unchanged. :raises DefaultAlreadySetError: If default has been set before. .. versionadded:: 17.1.0
| def validator | ( | self, | |
| meth | |||
| ) |
Decorator that adds *meth* to the list of validators. Returns *meth* unchanged. .. versionadded:: 17.1.0
|
static |
| converter |
| counter |
| eq |
| eq_key |
| hash |
| init |
| kw_only |
| metadata |
| on_setattr |
| order |
| order_key |
| repr |
| type |