return type.__init__(cls, classname, bases, dict_)


class Meta(type):

    def __init__(cls, classname, bases, dict_):
        print('Meta')
return type.__init__(cls, classname, bases, dict_)


class NewMeta(Meta, DeclarativeMeta):
    pass


class MyBase(object, metaclass=NewMeta):
    pass
pass
Dealing with metaclass conflict with SQL Alchemy declarative base