

def _to_base_type(self, value):
    if isinstance(value, self._modelclass):
        pb = pb._to_pb(set_key=self._keep_keys)
        return pb.SerializePartialToString()

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py LocalStructuredProperty._to_base_type/VarMisuse@26/33 `value`->`pb`