  
          for branch in branches:
              self._branches_menu.add_command(
                  label=branch,
                  command=lambda b=branch: self._switch_branch(b))
          return True
  
      @staticmethod
      def _get_branches():
          """ Get the available github branches
 
</s> remove     @staticmethod
    def _get_branches():
 </s> add     @classmethod
    def _get_branches(cls) -> T.Optional[str]: </s> remove         branches = sorted(list(branches), key=str.casefold)
        logger.debug("Final branches: %s", branches)
        return branches
 </s> add         retval = sorted(list(branches), key=str.casefold)
        logger.debug("Final branches: %s", retval)
        return retval </s> remove         str
 </s> add         str or ``None`` </s> remove     @staticmethod
    def _switch_branch(branch):
 </s> add     @classmethod
    def _switch_branch(cls, branch: str) -> None: </s> remove         list
 </s> add         list[str]
                command=lambda b=branch: self._switch_branch(b))  # type:ignore
  
          for branch in branches:
              self._branches_menu.add_command(
                  label=branch,
                command=lambda b=branch: self._switch_branch(b))  # type:ignore
          return True
  
      @staticmethod
      def _get_branches():
          """ Get the available github branches
keep keep keep keep replace keep keep keep keep keep
 locales: Add GUI menu translations 
lib/gui/menu.py