
    Dim                        U d dl mZ d dlZd dlmZ d dlZd dlZ e ee      j                         j                        ej                  z   Zded<   edf	 	 	 	 	 	 	 d	dZdgZy)
    )annotationsN)Pathstr_OPTUNA_MODULE_ROOT   c                    t         j                  dk\  rt        j                  | ||t        f       yt        j                  | ||dz          y)a  
    Wrapper for :func:`warnings.warn` that hides internal Optuna stack frames (for Python 3.12+).

    Behavior:
        - Python 3.12+:
            Uses `skip_file_prefixes` so that warnings appear to originate
            from the user's calling code rather than inside Optuna.
        - Python <3.12:
            This function behaves exactly the same as calling `warnings.warn`
            directly, with no stack frame suppression.
    )      )category
stacklevelskip_file_prefixesr   )r   N)sysversion_infowarningswarnr   )messager   r   s      V/home/ubuntu/crypto_trading_bot/.venv/lib/python3.12/site-packages/optuna/_warnings.pyoptuna_warnr      sC    " 7"! 35		
 	gxJNC    r   )r   r   r   ztype[Warning]r   intreturnNone)
__future__r   ospathlibr   r   r   r   __file__resolveparentsepr   __annotations__UserWarningr   __all__ r   r   <module>r$      s    " 	  
  tH~557>>?"&&H S H
 *DDD D 
	D: /r   