from typing import List


def flatten_list(data_list) -> List:
    """flatten a list of lists"""
    if isinstance(data_list, list):
        return [a for i in data_list for a in flatten_list(i)]
    return [data_list]