baybe.utils.conversion.nonstring_to_tuple

baybe.utils.conversion.nonstring_to_tuple(x: Sequence[_T], self: type, field: Attribute)[source]

Convert a sequence to tuple but raise an exception for string input.

Return type:

tuple[TypeVar(_T), ...]