

def _validate(self, value):
    if (not isinstance(value, datastore_types.BlobKey)):
        raise datastore_errors.BadValueError(('Expected BlobKey, got %r' % (value,)))

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py BlobKeyProperty._validate/original