

def __setattr__(self, attr, value):
    if (attr not in self.__slots__):
        raise AttributeError('Cannot set attribute on proxy.')
    return super(Proxy, self).__setattr__(attr, value)

dataset/ETHPy150Open coleifer/peewee/peewee.py Proxy.__setattr__/original