- qspec. check_iterable ( arg , dtype=str )[source]
-
Cast an argument or the elements of an argument of type
dtypeto a list.- Parameters:
-
- argobject
The argument that is checked.
- dtypetype
The type that has to be matched by the elements of
argorargitself.
- Returns:
-
- arg_listlist
argas a list if it is alist,tupleorsetof values of typedtype, a list of the single elementargif it is of typedtypeand else an empty list.