
    !#h                     6    d dl Z  G d de j                        Zy)    Nc                   <    e Zd ZdZdZdZdZdZdZde	fdZ
defd	Zy
)
TrialStatea,  State of a :class:`~optuna.trial.Trial`.

    Attributes:
        RUNNING:
            The :class:`~optuna.trial.Trial` is running.
        WAITING:
            The :class:`~optuna.trial.Trial` is waiting and unfinished.
        COMPLETE:
            The :class:`~optuna.trial.Trial` has been finished without any error.
        PRUNED:
            The :class:`~optuna.trial.Trial` has been pruned with
            :class:`~optuna.exceptions.TrialPruned`.
        FAIL:
            The :class:`~optuna.trial.Trial` has failed due to an uncaught error.
    r               returnc                     t        |       S )N)strselfs    P/var/www/html/sandstorm/venv/lib/python3.12/site-packages/optuna/trial/_state.py__repr__zTrialState.__repr__   s    4y    c                 R    | t         j                  k7  xr | t         j                  k7  S )zReturn a bool value to represent whether the trial state is unfinished or not.

        The unfinished state is either ``RUNNING`` or ``WAITING``.
        )r   RUNNINGWAITINGr   s    r   is_finishedzTrialState.is_finished   s%     z)))Hdj6H6H.HHr   N)__name__
__module____qualname____doc__r   COMPLETEPRUNEDFAILr   r   r   boolr    r   r   r   r      s<      GHFDG# IT Ir   r   )enumIntEnumr   r   r   r   <module>r       s     I  Ir   