def state_dict(self) -> Dict[str, Any]:
        """
        Returns the state of the scheduler as a ``dict``.
        """
        return {key: value for key, value in self.__dict__.items() if key != 'optimizer'}