

def _db_set_value(self, v, p, value):
    if (not isinstance(value, datastore_types.BlobKey)):
        raise TypeError(('BlobKeyProperty %s can only be set to BlobKey values; received %r' % (self._name, value)))
    p.set_meaning(entity_pb.Property.BLOBKEY)
    self.set_stringvalue(str(value))

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py BlobKeyProperty._db_set_value/VarMisuse@59/100 `v`->`self`