code: def append(self, new: Statement) -> None:
          
          new = HistoryItem(new)
          list.append(self, new)
          new.idx = len(self)
docs: Append a HistoryItem to end of the History list
  
          :param new: command line to convert to HistoryItem and add to the end of the History list