(self, name, on_enter=None, on_exit=None,
                 ignore_invalid_triggers=None)
Args:
            name (str or Enum): The name of the state
            on_enter (str or list): Optional callable(s) to trigger when a
                state is entered. Can be either a string providing the name of
                a callable, or a list of strings.
            on_exit (str or list): Optional callable(s) to trigger when a
                state is exited. Can be either a string providing the name of a
                callable, or a list of strings.
            ignore_invalid_triggers (Boolean): Optional flag to indicate if
                unhandled/invalid triggers should raise an exception
Args:
            name (str or Enum): The name of the state
            on_enter (str or list): Optional callable(s) to trigger when a
                state is entered. Can be either a string providing the name of
                a callable, or a list of strings.
            on_exit (str or list): Optional callable(s) to trigger when a
                state is exited. Can be either a string providing the name of a
                callable, or a list of strings.
            ignore_invalid_triggers (Boolean): Optional flag to indicate if
                unhandled/invalid triggers should raise an exception
Args : name ( str or Enum ) : The name of the state on_enter ( str or list ) : Optional callable ( s ) to trigger when a state is entered . Can be either a string providing the name of a callable or a list of strings . on_exit ( str or list ) : Optional callable ( s ) to trigger when a state is exited . Can be either a string providing the name of a callable or a list of strings . ignore_invalid_triggers ( Boolean ) : Optional flag to indicate if unhandled / invalid triggers should raise an exception
def __init__(self, name, on_enter=None, on_exit=None,
                 ignore_invalid_triggers=None):
        """
        Args:
            name (str or Enum): The name of the state
            on_enter (str or list): Optional callable(s) to trigger when a
                state is entered. Can be either a string providing the name of
                a callable, or a list of strings.
            on_exit (str or list): Optional callable(s) to trigger when a
                state is exited. Can be either a string providing the name of a
                callable, or a list of strings.
            ignore_invalid_triggers (Boolean): Optional flag to indicate if
                unhandled/invalid triggers should raise an exception

        """
        self._name = name
        self.ignore_invalid_triggers = ignore_invalid_triggers
        self.on_enter = listify(on_enter) if on_enter else []
        self.on_exit = listify(on_exit) if on_exit else []
def __init__ ( self , name , on_enter = None , on_exit = None , ignore_invalid_triggers = None ) : self . _name = name self . ignore_invalid_triggers = ignore_invalid_triggers self . on_enter = listify ( on_enter ) if on_enter else [ ] self . on_exit = listify ( on_exit ) if on_exit else [ ]