Skip to content

dataclasses

Classes:

StorableDataclass

Bases: Storable, _FakeBase

A base for user-defined storable dataclasses.

Methods:

storable_body_serializer

storable_body_serializer(registry: Registry) -> Serializer

Return the serializer for the body of this storable class.

storable_body_storage

storable_body_storage(registry: Registry) -> Storage

Return the storage for the body of this storable class.

storable_config classmethod

storable_config(
    *, allow_none: bool
) -> StorableConfig | None
storable_config(
    *, allow_none: Literal[False] = ...
) -> StorableConfig
storable_config(
    *, allow_none: bool = False
) -> StorableConfig | None

Get the configuration for this storable class.

StorableDataclassUnpacker

Bases: Unpacker['StorableDataclass']

Unpacker for StorableDataclass.