# my_states.py

from state import State

class DayState(State):

    def on_event(self, event):
        if event == 'enter_night_state':
            return NightState()

        return self

class NightState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()

        return self

class InitState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()
        elif event == 'enter_night_state':
            return NightState()

        return self
91d06570649030315bc013a3b5ca4f121a5739a8
<mask token>


class NightState(State):
    <mask token>


class InitState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()
        elif event == 'enter_night_state':
            return NightState()
        return self

<mask token>


class NightState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()
        return self


class InitState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()
        elif event == 'enter_night_state':
            return NightState()
        return self

<mask token>


class DayState(State):
    <mask token>


class NightState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()
        return self


class InitState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()
        elif event == 'enter_night_state':
            return NightState()
        return self

from state import State


class DayState(State):

    def on_event(self, event):
        if event == 'enter_night_state':
            return NightState()
        return self


class NightState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()
        return self


class InitState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()
        elif event == 'enter_night_state':
            return NightState()
        return self

# my_states.py

from state import State

class DayState(State):

    def on_event(self, event):
        if event == 'enter_night_state':
            return NightState()

        return self

class NightState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()

        return self

class InitState(State):

    def on_event(self, event):
        if event == 'enter_day_state':
            return DayState()
        elif event == 'enter_night_state':
            return NightState()

        return self