
    (^i                     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e	j                  j                  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                 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WAITING)selfs    T/var/www/html/hubwallet-dev/venv/lib/python3.12/site-packages/optuna/trial/_state.pyis_finishedzTrialState.is_finished   s%     z)))Hdj6H6H.HH    N)__name__
__module____qualname____doc__r   COMPLETEPRUNEDFAILr   enumEnum__str__boolr    r   r   r   r      s?      GHFDGiiGIT Ir   r   )r   IntEnumr   r   r   r   <module>r      s    I Ir   