from typing import Union
from typing import Iterable
from typing import Any


def flatten_to_list(obj: Union[Iterable[Any], Any]) -> Union[list[Any], Any]:
    """
    Flattens iterable to a non-nested list

    Function ignores strings and treats as non-iterable

    :param obj: iterable of nested iterables
    :return: list of non-iterable objects
    """
    if (not isinstance(obj, Iterable)) or isinstance(obj, str):
        return obj
    else:
        out = []
        for item in obj:
            if (not isinstance(item, Iterable)) or isinstance(item, str):
                out.append(item)
            else:
                out += flatten_to_list(item)

        return out