class documentation

class Attribute: (source)

View In Hierarchy

The value of an attr.ib() call.

Class Method deserialize Return the Attribute that was serialized.
Method __init__ Undocumented
Method argument Return this attribute as an argument to __init__.
Method expand_typevar_from_subtype Expands type vars in the context of a subtype when an attribute is inherited from a generic super type.
Method serialize Serialize this object so it can be saved and restored.
Instance Variable context Undocumented
Instance Variable converter Undocumented
Instance Variable has_default Undocumented
Instance Variable info Undocumented
Instance Variable init Undocumented
Instance Variable init_type Undocumented
Instance Variable kw_only Undocumented
Instance Variable name Undocumented

Return the Attribute that was serialized.

def __init__(self, name: str, info: TypeInfo, has_default: bool, init: bool, kw_only: bool, converter: Converter|None, context: Context, init_type: Type|None): (source)

Undocumented

Return this attribute as an argument to __init__.

def expand_typevar_from_subtype(self, sub_type: TypeInfo): (source)

Expands type vars in the context of a subtype when an attribute is inherited from a generic super type.

def serialize(self) -> JsonDict: (source)

Serialize this object so it can be saved and restored.

Undocumented

converter = (source)

Undocumented

has_default = (source)

Undocumented

Undocumented

Undocumented

init_type = (source)

Undocumented

Undocumented

Undocumented