def max(self, spec):
        if not isinstance(spec, (list, tuple)):
            raise TypeError("spec must be an instance of list or tuple")

        self.__check_okay_to_chain()
        self.__max = SON(spec)
        return self
<text>
dataset/ETHPy150Open blynch/CloudMemeBackend/pymongo/cursor.py/Cursor.max--crossover with--dataset/ETHPy150Open ProgVal/Limnoria/plugins/String/plugin.py/String.sha