

def __delattr__(self, name):
    if (name.startswith('_') or isinstance(getattr(self.__class__, name, None), (Property, property))):
        return super(Expando, self).__delattr__(name)
    prop = self._properties.get(name)
    if (not isinstance(prop, Property)):
        raise TypeError(('Model properties must be Property instances; not %r' % prop))
    prop._delete_value(self)
    if (prop in self.__class__._properties):
        raise RuntimeError(('Property %s still in the list of properties for the base class.' % name))
    del self._properties[prop]

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py Expando.__delattr__/VarMisuse@129/190 `name`->`prop`