Miscellaneous utility methods for collections.
Module Attributes
ArgType generic type. |
Functions
|
Create a list or list-wrapping of arg. |
Classes
TypeVar(name, *constraints[, bound, ...]) |
Type variable. |
ArgType generic type.
alias of TypeVar(‘ArgType’)
Create a list or list-wrapping of arg.
arg – Input data..
excl_types – Iterable types that should be treated as single elements, such as strings.
A list representation of arg.
Notes
For all zero-length arguments, i.e. len(arg) == 0, an empty list is returned.