betty.datas.aggregate.record.mapping module

Key-value mapping record data types.

final class betty.datas.aggregate.record.mapping.TypedMappingDefinition

Bases: RecordDefinition[MutableMappingT, Key], Generic

A typed mapping definition.

Actual values do not have to be typing.TypedDict. They can be any mapping, but like typed dicts, values are limited to the defined elements.