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

  # Use late import so the dependency is optional.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/JsonProperty._validate/operator `is not` -> `>`