

def _validate(self, value):
    if ((self._json_type is not None) and (not isinstance(value, self._json_type))):
        raise TypeError(('JSON property must be a %s' % self._json_type))

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