(self, state)
Updates the EventData object with the passed state.

        Attributes:
            state (State, str or Enum): The state object, enum member or string to assign to EventData.
Updates the EventData object with the passed state.
Updates the EventData object with the passed state .
def update(self, state):
        """ Updates the EventData object with the passed state.

        Attributes:
            state (State, str or Enum): The state object, enum member or string to assign to EventData.
        """

        if not isinstance(state, State):
            self.state = self.machine.get_state(state)
def update ( self , state ) : if not isinstance ( state , State ) : self . state = self . machine . get_state ( state )