module documentation
Plugin that provides support for dataclasses.
Class |
|
No class docstring; 0/10 instance variable, 1/6 method, 0/1 class method documented |
Class |
|
Implement the behavior of @dataclass. |
Function | add |
Undocumented |
Function | dataclass |
Hooks into the class typechecking process to add support for dataclasses. |
Function | dataclass |
Record that we have a dataclass in the main semantic analysis pass. |
Constant | dataclass |
Undocumented |
Constant | SELF |
Undocumented |
Function | _get |
Find the relevant transform parameters from the decorator/parent class/metaclass that triggered the dataclasses plugin. |
Function | _is |
Undocumented |
Constant | _TRANSFORM |
Undocumented |
Record that we have a dataclass in the main semantic analysis pass. The later pass implemented by DataclassTransformer will use this to detect dataclasses in base classes.
Find the relevant transform parameters from the decorator/parent class/metaclass that triggered the dataclasses plugin. Although the resulting DataclassTransformSpec is based on the typing.dataclass_transform function, we also use it for traditional dataclasses.dataclass classes as well for simplicity. In those cases, we return a default spec rather than one based on a call to `typing.dataclass_transform`.