type_override

emmet.core.utils.type_override(overrides)

Pydantic model decorator for declaring a field should be serialized as a type that does not match the type hint for the field. Examples: narrow a union type to a single value or hint at a the return type of a field_serializer used during model dumping.

Parameters:

overrides (dict[str, Any])