def __init__(self, name: str, type: ActivationType | str | None = None, icon_path: str = None) -> None:
        """
        Only specify type if it's the root menu.
        """

        self.name = name
        self.sub_items: list[ItemType] = []
        self.type = type
        self.icon_path = icon_path
        self.isMenu = True  # Needed to avoid circular imports

        Only specify type if it's the root menu.
        
context_menu/menus.py