def do_complete(self, code, cursor_pos):
        no_complete = {
            'status': 'ok',
            'matches': [],
            'cursor_start': 0,
            'cursor_end': cursor_pos,
            'metadata': dict(),
        }

        if not code or code[-1] == ' ':
            return no_complete

        tokens = code.split()
        if not tokens:
            return no_complete

        token = tokens[-1]
        start = len(token) - cursor_pos

        matches = self.qsh._complete(code, token)
        return {
            'status': 'ok',
            'matches': sorted(matches),
            'cursor_start': start,
            'cursor_end': cursor_pos,
            'metadata': dict(),
        }
dataset/ETHPy150Open qtile/qtile/libqtile/interactive/iqsh_kernel.py/QshKernel.do_complete/swapped operands of `-`