
    Di                    Z    d dl mZ d dlZd dlmZ erd dlZ G d dej                        Zy)    )annotationsN)TYPE_CHECKINGc                  6    e Zd ZdZej
                  dd       Zy)
BasePrunerzBase class for pruners.c                    t         )a  Judge whether the trial should be pruned based on the reported values.

        Note that this method is not supposed to be called by library users. Instead,
        :func:`optuna.trial.Trial.report` and :func:`optuna.trial.Trial.should_prune` provide
        user interfaces to implement pruning mechanism in an objective function.

        Args:
            study:
                Study object of the target study.
            trial:
                FrozenTrial object of the target trial.
                Take a copy before modifying this object.

        Returns:
            A boolean value representing whether the trial should be pruned.
        )NotImplementedError)selfstudytrials      Z/home/ubuntu/crypto_trading_bot/.venv/lib/python3.12/site-packages/optuna/pruners/_base.pyprunezBasePruner.prune   s
    & "!    N)r
   z'optuna.study.Study'r   z'optuna.trial.FrozenTrial'returnbool)__name__
__module____qualname____doc__abcabstractmethodr    r   r   r   r      s    !" "r   r   )
__future__r   r   typingr   optunaABCr   r   r   r   <module>r      s&    " 
   " "r   