model_item_typed
- glotaran.model.item.model_item_typed(*, types: dict[str, Any], has_label: bool = True, default_type: str = None)[source]
The model_item_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.
has_label – If False no label property will be added.