def hideEvent(self, event):
        """ Reimplemented to disconnect signal handlers and event filter.
        """
        super().hideEvent(event)
        try:
            self._text_edit.cursorPositionChanged.disconnect(self._update_current)
        except TypeError:
            pass
        self.removeEventFilter(self)
 Reimplemented to disconnect signal handlers and event filter.
        
angrmanagement/vendor/qtconsole/completion_widget.py