from typing import List
from typing import Union
from typing import Any


def flatten_list(lst: List[Union[List, Any]]) -> List[Any]:
    """Flatten list of lists"""
    result = []
    for elm in lst:
        if isinstance(elm, list):
            result.extend(elm)
        else:
            result.append(elm)
    return result