mkt.databases.utils.convert_input2list
- mkt.databases.utils.convert_input2list(obj_in: Any, bool_empty: bool = False) list | None[source]
Convert input to a list if it is not already a list.
- Parameters:
obj_in (Any) – Input object to convert to a list.
bool_empty (bool, optional) – If True, return an empty list if obj_in is None, by default False
- Returns:
List containing the input if it is not already a list, otherwise returns the input as is.
- Return type:
list