docs: def append(self, text: str):
          """
          Undo safe wrapper for the native ``append`` method.
  
          |Args|
  
          * ``text`` (**str**): text to insert at the specified position.
  
          |Returns|
  
          **None**
  
          |Raises|
  
          * **QtmacsArgumentError** if at least one argument has an invalid type.
          """
          pos = self.getCursorPosition()
          line, col = self.getNumLinesAndColumns()
          undoObj = UndoInsertAt(self, text, line, col)
          self.qteUndoStack.push(undoObj)
          self.setCursorPosition(*pos)