def update_context_menu(self):
        """Update the context menu."""

        menus = {
            "internal": INTERNAL_MENU,
            "external": EXTERNAL_MENU,
            "svn": {
                "internal": SVN_INTERNAL_MENU,
                "external": SVN_EXTERNAL_MENU
            },
            "git": {
                "internal": GIT_INTERNAL_MENU,
                "external": GIT_EXTERNAL_MENU
            },
            "hg": {
                "internal": HG_INTERNAL_MENU,
                "external": HG_EXTERNAL_MENU
            }
        }
        if "view" in self.menu_types:
            submenu = load_settings().get("submenu", [])
            self.update_menu(CONTEXT_MENU, menus, submenu in "view")
        else:
            self.remove_menu(CONTEXT_MENU)
dataset/ETHPy150Open facelessuser/EasyDiff/easy_diff_dynamic_menu.py/MenuUpdater.update_context_menu/swapped operands of `in`