

def _check_property(self, rest=None, require_indexed=True):
    "Internal helper to check this property for specific requirements.\n\n    Called by Model._check_properties().\n\n    Args:\n      rest: Optional subproperty to check, of the form 'name1.name2...nameN'.\n\n    Raises:\n      InvalidPropertyError if this property does not meet the given\n      requirements or if a subproperty is specified.  (StructuredProperty\n      overrides this method to handle subproperties.)\n    "
    if (require_indexed and (not self._indexed)):
        raise InvalidPropertyError(('Property is unindexed %s' % self._name))
    if rest:
        raise InvalidPropertyError(('Referencing subproperty %s.%s but %s is not a structured property' % (self._name, rest, require_indexed._name)))

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py Property._check_property/VarMisuse@65/265 `self`->`require_indexed`