def compose_types(a, b, *cs):
    mcls = (a, b) + cs
    return type(
        'compose_types(%s)' % ', '.join(map(attrgetter('__name__'), mcls)),
        mcls,
        {},
    )
Compose multiple classes together.
dataset/ETHPy150Open quantopian/zipline/zipline/utils/metautils.py/compose_types