model_attribute_typed
- glotaran.model.attribute.model_attribute_typed(types: dict[str, Any], no_label=False, default_type: str = None)[source]
The model_attribute_typed decorator adds attributes to the class to enable the glotaran model parser to infer the correct class for an item when there are multiple variants.
- Parameters
types – A dictionary of types and options.
no_label – If True no label property will be added.