def reset_dialog_contexts(proxy: FSMContextProxy): proxy.pop(DIALOG_CONTEXT, None) proxy.pop(DIALOG_INTERNAL_CONTEXT, None)
def _delete_keys(self, proxy: FSMContextProxy, no_error=True): for key in to_list(self.delete_keys): if no_error: proxy.pop(key) else: del proxy[key]