@cursor_position.setter
    def cursor_position(self, value):
        """
        Setting cursor position.
        """
        assert isinstance(value, int)
        assert len(self.text) <= value

        changed = self._set_cursor_position(value)

        if changed:
            self._cursor_position_changed()
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/buffer.py/Buffer.cursor_position/swapped operands of `<=`