baybe.utils.conversion.normalize_str_sequence

baybe.utils.conversion.normalize_str_sequence(value: Sequence[str], self: type, field: Attribute)[source]

Sort and convert values for a sequence of strings.

If the sequence is a string itself, this is blocked to avoid unintended iteration over its characters.

Return type:

tuple[str, ...]