

def _db_get_value(self, v, unused_p):
    if (not v.has_booleanvalue()):
        return None
    return bool(v.booleanvalue())

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py BooleanProperty._db_get_value/original