argclz.types.tuple_type#

argclz.types.tuple_type(*value_type)[source]#

Create a caster that splits a comma-separated string into a tuple of typed values.

Parameters:

value_type (Type[T] | Callable[[str], T] | ellipsis) – converter functions for each tuple position; use EllipsisType to repeat last

Returns:

a function that converts a comma-separated string into a typed tuple