(self)
return res
Save state for `set_restore_state`
Save state for `set_restore_state`
Save state for set_restore_state
def save_state(self):
        # type: () -> Dict[str, Any]
        """
        Save state for `set_restore_state`
        """
        selection = self._save_selection()
        res = {"version": (0, 0, 0)}
        if selection is not None:
            res["selection_state"] = selection
        return res
def save_state ( self ) : # type: () -> Dict[str, Any] selection = self . _save_selection ( ) res = { "version" : ( 0 , 0 , 0 ) } if selection is not None : res [ "selection_state" ] = selection return res