
    -jim                        % S SK Jr  S SKrS SKJr  S SKrS SKr\" \" \5      R                  5       R                  5      \R                  -   rS\S'   \S4       S	S jjrS/rg)
    )annotationsN)Pathstr_OPTUNA_MODULE_ROOT   c                    [         R                  S:  a  [        R                  " U UU[        4S9  g[        R                  " XUS-   S9  g)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      J/home/james-whalen/.local/lib/python3.13/site-packages/optuna/_warnings.pyoptuna_warnr      sA    " 7"! 35		
 	gJ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   