Skip to content

dataclasses_test

Classes:

  • MyClass

    A simple dataclass that is storable.

MyClass dataclass

MyClass(
    no_spec: Any,
    spec_with_serializer: Any,
    spec_with_storage: Any,
    spec_with_serializer_and_storage: Any,
)

Bases: StorableDataclass

A simple dataclass that is storable.

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.