def mixin(parent, child, attrs=None):
    attrs = attrs or {}
    return type(
        '%sx%s' % (parent.__name__, child.__name__),
        (child, parent),
        attrs
    )
dataset/ETHPy150Open ojii/django-classy-tags/classytags/utils.py/mixin/original