(self)
return dm_env.TimeStep(
        step_type=None,
        reward=self._task.get_reward_spec(),
        discount=self._task.get_discount_spec(),
        observation=self._observation_updater.observation_spec(),
    )
DEPRECATED: please use `reward_spec` and `discount_spec` instead.
DEPRECATED: please use `reward_spec` and `discount_spec` instead.
DEPRECATED : please use reward_spec and discount_spec instead .
def step_spec(self):
    """DEPRECATED: please use `reward_spec` and `discount_spec` instead."""
    warnings.warn('`step_spec` is deprecated, please use `reward_spec` and '
                  '`discount_spec` instead.', DeprecationWarning)
    if (self._task.get_reward_spec() is None or
        self._task.get_discount_spec() is None):
      raise NotImplementedError
    return dm_env.TimeStep(
        step_type=None,
        reward=self._task.get_reward_spec(),
        discount=self._task.get_discount_spec(),
        observation=self._observation_updater.observation_spec(),
    )
def step_spec ( self ) : warnings . warn ( '`step_spec` is deprecated, please use `reward_spec` and ' '`discount_spec` instead.' , DeprecationWarning ) if ( self . _task . get_reward_spec ( ) is None or self . _task . get_discount_spec ( ) is None ) : raise NotImplementedError return dm_env . TimeStep ( step_type = None , reward = self . _task . get_reward_spec ( ) , discount = self . _task . get_discount_spec ( ) , observation = self . _observation_updater . observation_spec ( ) , )