o
    $i                     @   sH   d dl Z d dlmZmZ e eZdee dee dedefddZ	dS )	    N)DictOptionalmetricmodeconfigreturnc              
   K   sb   z| |||fi |W S  t y0 } zdt|v 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 searchers to be updated.
    z:set_search_properties() got an unexpected keyword argumentzPlease update custom Searcher to take in function signature as ``def set_search_properties(metric, mode, config, **spec) -> bool``.N)	TypeErrorstrloggerwarning)set_search_properties_funcr   r   r   spece r   Q/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/ray/tune/search/util.py+_set_search_properties_backwards_compatible   s   r   )
loggingtypingr   r   	getLogger__name__r
   r	   boolr   r   r   r   r   <module>   s    
