from typing import List
from typing import Any


def flatten(list_to_flatten: List[Any]) -> List[Any]:
    """
    Flattens an arbitrarily nested irregular list of objects
    """
    list_flattened = []

    for element in list_to_flatten:
        if isinstance(element, list):
            list_flattened.extend(flatten(element))
        else:
            list_flattened.append(element)

    return list_flattened