

@classmethod
def _check_properties(cls, property_names, require_indexed=True):
    'Internal helper to check the given properties exist and meet specified\n    requirements.\n\n    Called from query.py.\n\n    Args:\n      property_names: List or tuple of property names -- each being a string,\n        possibly containing dots (to address subproperties of structured\n        properties).\n\n    Raises:\n      InvalidPropertyError if one of the properties is invalid.\n      AssertionError if the argument is not a list or tuple of strings.\n    '
    assert isinstance(property_names, (list, tuple)), repr(property_names)
    for name in property_names:
        assert isinstance(name, basestring), repr(name)
        if ('.' in name):
            (name, rest) = name.split('.', 1)
        else:
            rest = None
        prop = cls._properties.get(name)
        if (prop is None):
            cls._unknown_property(property_names)
        else:
            prop._check_property(rest, require_indexed=require_indexed)

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py Model._check_properties/VarMisuse@116/295 `name`->`property_names`