buffalo_panel.config.schema_field_metadata

buffalo_panel.config.schema_field_metadata(cls)[source]

Return structured metadata for the dataclass fields on cls.

Parameters:

cls (type[object]) – Dataclass type whose field metadata should be inspected.

Returns:

Ordered mapping from field name to the structured metadata stored on that dataclass field.

Return type:

dict[str, SchemaFieldMetadata]

Raises:

TypeError – If cls is not a dataclass type.