<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def state(self, state: str) -> None: """Update state of event."""

        self._state = state
        for callback in self._callbacks:
            callback()