is_scalar_type

glotaran.model.util.is_scalar_type(t: type) bool[source]

Check if the type is scalar.

Scalar means the type is neither a sequence nor a mapping.

Parameters

t (type) – The type to check.

Returns

Whether the type is scalar.

Return type

bool