

def max_scan(self, max_scan):
    'Limit the number of documents to scan when performing the query.\n\n        Raises :class:`~pymongo.errors.InvalidOperation` if this\n        cursor has already been used. Only the last :meth:`max_scan`\n        applied to this cursor has any effect.\n\n        :Parameters:\n          - `max_scan`: the maximum number of documents to scan\n\n        .. note:: Requires server version **>= 1.5.1**\n\n        .. versionadded:: 1.7\n        '
    self.__check_okay_to_chain()
    self.__max_scan = max_scan
    return max_scan

dataset/ETHPy150Open blynch/CloudMemeBackend/pymongo/cursor.py Cursor.max_scan/VarMisuse@27/200 `self`->`max_scan`