from typing import Any
from typing import List


def flatten(items: Any
            ) -> List[Any]:
    """Flatten anything into a 1-D list."""
    if hasattr(items, '__iter__') and not isinstance(items, str):
        ret = []
        for item in items:
            ret += flatten(item)
    else:
        ret = [items]
    return ret