- qspec.check_iterable ( arg , dtype = 'str' )[source]
-
- Parameters:
-
- argAny
The argument that is checked.
- dtypetype
The type that has to be matched by the elements of arg or arg itself.
- Returns:
-
- outlist
'arg' as a list if it is a 'list', 'tuple' or 'set' of values of type 'dtype', a list of the single element 'arg' if it is of type 'dtype' and else an empty list.