

def _db_set_value(self, v, p, value):
    if (not isinstance(value, GeoPt)):
        raise TypeError(('GeoPtProperty %s can only be set to GeoPt values; received %r' % (self._name, p)))
    p.set_meaning(entity_pb.Property.GEORSS_POINT)
    pv = v.mutable_pointvalue()
    pv.set_x(value.lat)
    pv.set_y(value.lon)

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py GeoPtProperty._db_set_value/VarMisuse@40/76 `value`->`p`