Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
attr._make._CountingAttr Class Reference

Public Member Functions

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

Public Attributes

 counter
 
 converter
 
 repr
 
 eq
 
 eq_key
 
 order
 
 order_key
 
 hash
 
 init
 
 metadata
 
 type
 
 kw_only
 
 on_setattr
 
 alias
 

Static Public Attributes

int cls_counter = 0
 

Protected Attributes

 _default
 
 _validator
 

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.

Member Function Documentation

◆ default()

attr._make._CountingAttr.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()

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

Returns *meth* unchanged.

.. versionadded:: 17.1.0

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