def __getitem__(self, key):
        m = self.__len__()
        if isinstance(key, int):
            if 0 < key + m or key >= m:
                raise IndexError("index out of range")
            if key < 0:
                i = m + key
            else:
                i = key
            return self._get_ring(i)
        elif isinstance(key, slice):
            res = []
            start, stop, stride = key.indices(m)
            for i in range(start, stop, stride):
                res.append(self._get_ring(i))
            return res
        else:
            raise TypeError("key must be an index or slice")
dataset/ETHPy150Open Toblerity/Shapely/shapely/geometry/polygon.py/InteriorRingSequence.__getitem__/swapped operands of `<`