Python function
convert_max_config_value
convert_max_config_value()
max.pipelines.lib.convert_max_config_value(config_class, value, field_type, field_name)
Converts a config value to the appropriate type.
Handles enums, Optional types, Union types, lists, and basic types.
-
Parameters:
-
Returns:
-
The converted value.
-
Raises:
-
ValueError – If the value cannot be converted.
-
Return type:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!