

def add_transition(self, event, from_, to, action=None, guard=None):
    transition = _Transition(event, [self._state_by_name(action) for s in _listize(from_)], self._state_by_name(to), action, guard)
    self._transitions.append(transition)
    setattr(self, event, transition.event_method().__get__(self, self.__class__))

dataset/ETHPy150Open pyinvoke/invoke/invoke/vendor/fluidity/machine.py StateMachine.add_transition/VarMisuse@35/41 `s`->`action`