class documentation
class _AttributeOptions(NamedTuple): (source)
define Python-local attribute behavior options common to all :class:`.MapperProperty` objects. Currently this includes dataclass-generation arguments. .. versionadded:: 2.0
Class Variable | dataclasses |
Undocumented |
Class Variable | dataclasses |
Undocumented |
Class Variable | dataclasses |
Undocumented |
Class Variable | dataclasses |
Undocumented |
Class Variable | dataclasses |
Undocumented |
Class Variable | dataclasses |
Undocumented |
Class Method | _get |
given attribute key, annotation, and value from a class, return the argument tuple we would pass to dataclasses.make_dataclass() for this attribute. |
Method | _as |
Return a ``dataclasses.Field`` object given these arguments. |
@classmethod
def _get_arguments_for_make_dataclass(cls, key:
def _get_arguments_for_make_dataclass(cls, key:
str
, annotation: _AnnotationScanType
, mapped_container: Optional[ Any]
, elem: _T
) -> Union[ Tuple[ str, _AnnotationScanType], Tuple[ str, _AnnotationScanType, dataclasses.Field[ Any]]]
:
(source)
¶
given attribute key, annotation, and value from a class, return the argument tuple we would pass to dataclasses.make_dataclass() for this attribute.