

def _check_property(self, rest=None, require_indexed=True):
    'Override for Property._check_property().\n\n    Raises:\n      InvalidPropertyError if no subproperty is specified or if something\n      is wrong with the subproperty.\n    '
    if (not rest):
        raise InvalidPropertyError(('Structured property %s requires a subproperty' % self._name))
    self._modelclass._check_properties([rest], require_indexed=require_indexed)

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py StructuredProperty._check_property/original