              The output from the git branch query converted to a string
  
          Returns
          -------
          list
              Unique list of available branches sorted in alphabetical order
          """
          current = None
          branches = set()
          for line in stdout.splitlines():
 
</s> remove         str
 </s> add         str or ``None`` </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     def _build_branches_menu(self):
 </s> add     def _build_branches_menu(self) -> bool: </s> remove                 command=lambda b=branch: self._switch_branch(b))
 </s> add                 command=lambda b=branch: self._switch_branch(b))  # type:ignore </s> remove     @staticmethod
    def _get_branches():
 </s> add     @classmethod
    def _get_branches(cls) -> T.Optional[str]:
        list[str]
              The output from the git branch query converted to a string
  
          Returns
          -------
        list[str]
              Unique list of available branches sorted in alphabetical order
          """
          current = None
          branches = set()
          for line in stdout.splitlines():
keep keep keep keep replace keep keep keep keep keep
 locales: Add GUI menu translations 
lib/gui/menu.py