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

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  default,
  validator,
  repr,
  cmp,
  hash,
  init,
  converter,
  metadata,
  type,
  kw_only,
  eq,
  eq_key,
  order,
  order_key,
  on_setattr 
)

Member Function Documentation

◆ default()

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

◆ validator()

def validator (   self,
  meth 
)
Decorator that adds *meth* to the list of validators.

Returns *meth* unchanged.

.. versionadded:: 17.1.0

Field Documentation

◆ cls_counter

int cls_counter = 0
static

◆ converter

converter

◆ counter

counter

◆ eq

eq

◆ eq_key

eq_key

◆ hash

hash

◆ init

init

◆ kw_only

kw_only

◆ metadata

metadata

◆ on_setattr

on_setattr

◆ order

order

◆ order_key

order_key

◆ repr

repr

◆ type

type

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