def not_allowed(func):
    def inner(self, *args, **kwargs):
        raise NotImplementedError('%s is not allowed on %s instances' % (
            func, type(self).__name__))
    return inner
Serialize Python class
dataset/ETHPy150Open coleifer/peewee/peewee.py/not_allowed--crossover with--dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/core/utils.py/serialize_class