o
    $i                     @   s@   d dl Z d dlmZ e eZdee dee defddZdS )    N)Optionalmetricmodereturnc              
   K   s`   z
| ||fi |W S  t y/ } zt|dr)td | ||W  Y d}~S |d}~ww )zWraps around set_search_properties() so that it is backward compatible.

    Also outputs a warning to encourage custom schedulers to be updated.
    z:set_search_properties() got an unexpected keyword argumentz|Please update custom Scheduler to take in function signature as ``def set_search_properties(metric, mode, **spec) -> bool``.N)	TypeErrorstr
startswithloggerwarning)set_search_properties_funcr   r   spece r   U/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/ray/tune/schedulers/util.py+_set_search_properties_backwards_compatible   s   r   )	loggingtypingr   	getLogger__name__r	   r   boolr   r   r   r   r   <module>   s    
