module documentation
(source)

Plugin that provides support for dataclasses.
Class ​Dataclass​Attribute No class docstring; 0/9 instance variable, 1/5 method, 0/1 class method documented
Class ​Dataclass​Transformer No class docstring; 0/1 instance variable, 6/9 methods documented
Function dataclass​_class​_maker​_callback Hooks into the class typechecking process to add support for dataclasses.
Constant dataclass​_makers Undocumented
Constant field​_makers Undocumented
Constant SELF​_TVAR​_NAME Undocumented
Function _collect​_field​_args Returns a tuple where the first value represents whether or not the expression is a call to dataclass.field and the second is a dictionary of the keyword arguments that field() was called with.
def dataclass_class_maker_callback(ctx): (source)
Hooks into the class typechecking process to add support for dataclasses.
Parameters
ctx:ClassDefContextUndocumented
dataclass_makers: set[str] = (source)

Undocumented

Value
set(['dataclass', 'dataclasses.dataclass'])
field_makers: set[str] = (source)

Undocumented

Value
set(['dataclasses.field'])
SELF_TVAR_NAME: str = (source)

Undocumented

Value
'_DT'
def _collect_field_args(expr, ctx): (source)
Returns a tuple where the first value represents whether or not the expression is a call to dataclass.field and the second is a dictionary of the keyword arguments that field() was called with.
Parameters
expr:ExpressionUndocumented
ctx:ClassDefContextUndocumented
Returns
Tuple[bool, Dict[str, Expression]]Undocumented