from typing import Iterable


def flatten_list(li: Iterable):
    """Flattens a list of lists."""
    if isinstance(li, Iterable):
        return [a for i in li for a in flatten_list(i)]
    else:
        return [li]