from typing import Iterable


def remove_nones(sequence: Iterable) -> list:
    """Removes elements where bool(x) evaluates to False.

    Examples
    --------
    Normal usage::

        remove_nones(['m', '', 'l', 0, 42, False, True])
        # ['m', 'l', 42, True]
    """
    # Note this is redundant with it.chain
    return [x for x in sequence if x]