

def _notify(self, title, message, expected_action=None):
    '\n        Notify user from external event\n        '
    inital_value = self.editor.save_on_focus_out
    self.editor.save_on_focus_out = False
    self._flg_notify = True
    dlg_type = (QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No)
    expected_action = ((lambda *x: None) if (not expected_action) else expected_action)
    if (self._auto_reload or (QtWidgets.QMessageBox.question(self.editor, title, message, dlg_type, QtWidgets.QMessageBox.Yes) == QtWidgets.QMessageBox.Yes)):
        expected_action(self.editor.file.path)
    self._update_mtime()
    dlg_type.editor.save_on_focus_out = inital_value

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/modes/filewatcher.py FileWatcherMode._notify/VarMisuse@135/201 `self`->`dlg_type`