model_attribute_typed

glotaran.model.attribute.model_attribute_typed(types: dict[str, Any], no_label=False)[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.