def next_keyboard(self):
        """Set the next layout in the list of configured keyboard layouts as
        new current layout in use

        If the current keyboard layout is not in the list, it will set as new
        layout the first one in the list.
        """

        current_keyboard = self.keyboard
        if self.configured_keyboards in current_keyboard:
            # iterate the list circularly
            next_keyboard = self.configured_keyboards[
                (self.configured_keyboards.index(current_keyboard) + 1) %
                len(self.configured_keyboards)]
        else:
            next_keyboard = self.configured_keyboards[0]
        self.keyboard = next_keyboard
dataset/ETHPy150Open qtile/qtile/libqtile/widget/keyboardlayout.py/KeyboardLayout.next_keyboard/swapped operands of `in`