def hideEvent(self, event):
super(CompletionWidget, self).hideEvent(event)<EOL>self._text_edit.cursorPositionChanged.disconnect(self._update_current)<EOL>self._text_edit.removeEventFilter(self)<EOL>
Reimplemented to disconnect signal handlers and event filter.