argclz.types.slice_type#

argclz.types.slice_type(arg)[source]#

Convert a ‘start:end’ string into a slice object.

Parameters:

arg (str) – string in ‘start:end’ format

Returns:

slice(start, end)

Raises:

ValueError – if format is invalid or parts are not integers

Return type:

slice