def insertCompletion(self, completion): CompletionTextEdit.insertCompletion(self, completion) self.textCursor().insertText("\n")