def _run_hooks(self):
        """Calls any registered hooks providing the current state."""
        for hook in self.hooks:
            getattr(self, hook)(self._state)
def _run_hooks ( self ) : for hook in self . hooks : getattr ( self , hook ) ( self . _state )
Calls any registered hooks providing the current state.