class documentation

class DataclassAttribute: (source)

View In Hierarchy

Undocumented

Class Method deserialize Undocumented
Method __init__ Undocumented
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 Undocumented
Method to​_argument Undocumented
Method to​_var Undocumented
Instance Variable column Undocumented
Instance Variable has​_default Undocumented
Instance Variable info Undocumented
Instance Variable is​_in​_init Undocumented
Instance Variable is​_init​_var Undocumented
Instance Variable kw​_only Undocumented
Instance Variable line Undocumented
Instance Variable name Undocumented
Instance Variable type Undocumented
@classmethod
def deserialize(cls, info, data, api): (source)

Undocumented

Parameters
info:TypeInfoUndocumented
data:JsonDictUndocumented
api:SemanticAnalyzerPluginInterfaceUndocumented
Returns
DataclassAttributeUndocumented
def __init__(self, name, is_in_init, is_init_var, has_default, line, column, type, info, kw_only): (source)

Undocumented

Parameters
name:strUndocumented
is​_in​_init:boolUndocumented
is​_init​_var:boolUndocumented
has​_default:boolUndocumented
line:intUndocumented
column:intUndocumented
type:Optional[Type]Undocumented
info:TypeInfoUndocumented
kw​_only:boolUndocumented
def expand_typevar_from_subtype(self, sub_type): (source)
Expands type vars in the context of a subtype when an attribute is inherited from a generic super type.
Parameters
sub​_type:TypeInfoUndocumented
def serialize(self): (source)

Undocumented

Returns
JsonDictUndocumented
def to_argument(self): (source)

Undocumented

Returns
ArgumentUndocumented
def to_var(self): (source)

Undocumented

Returns
VarUndocumented
column = (source)

Undocumented

has_default = (source)

Undocumented

info = (source)

Undocumented

is_in_init = (source)

Undocumented

is_init_var = (source)

Undocumented

kw_only = (source)

Undocumented

line = (source)

Undocumented

name = (source)

Undocumented

type = (source)

Undocumented