brain_pipe.utils.list.flatten¶ flatten(lst: List[Any] | Tuple[Any]) → List[Any]¶ Flatten a list or tuple (recursively). Parameters: lst (Union[List[Any], Tuple[Any]]) – A list to be flattened. Sublists and tuples are also flattened. Returns: A flattened list. Return type: List[Any]