from typing import Iterable


def combine_encoders(name: str,
                     encoders: Iterable[type]) -> type:
    """Combine several Encoders to a new one.

    Use this e.g. as
    >>> DataclassAndNumpy = combine_encoders('DataclassAndNumpy',
    ...                                      (DataclassEncoder, NumpyEncoder))
    """
    return type(name, tuple(encoders), {})