PropertiesOrRangesHaveValueType🔗

Type: Transpilable verification function
Check that all the elements have the valueType.

Code

for element in elements:
    if isinstance(element, Property) and element.value_type != value_type:
        return False

    if isinstance(element, Range) and element.value_type != value_type:
        return False

return True