

def __setattr__(self, name, value):
    if (name in self.__dict__['__cols__']):
        wanted_type = None
        new_value = type_name
        type_name = self.__dict__['__cols__'][name].schema['type']
        if ((type_name == 'INTEGER') or (type_name == 'NUMBER')):
            wanted_type = int
        if ('VARCHAR' in type_name):
            wanted_type = str
        if (wanted_type is not None):
            new_value = self._coerce(value, wanted_type)
        self.__dict__[name] = new_value
    else:
        self.__dict__[name] = value

dataset/ETHPy150Open rcbops/opencenter/opencenter/db/inmemory.py InMemoryBase.__setattr__/VarMisuse@34/45 `value`->`type_name`