o
    ‘ôj9  ã                   @   sœ   d dl mZ d dlmZmZ d dlmZmZmZ d dl	m
Z
 d dlmZ d dlmZ ddlmZ 					
		ddee deee  dedee def
dd„Zd	S )é    )Údedent)ÚListÚOptional)Ú
DictConfigÚ	OmegaConfÚ	open_dict)Úversion)ÚGlobalHydra)ÚRunModeé   )Údeprecation_warningNFÚconfig_nameÚ	overridesÚreturn_hydra_configÚstrictÚreturnc                 C   sÊ   |du rg }t ƒ  ¡ sJ dƒ‚t  ¡ }|jdusJ ‚|jj| |tjddd�}t|tƒs-J ‚|sJd|v rJt	|ƒ� |d= W d  ƒ n1 sEw   Y  |durct
 d¡rWtdƒ‚ttdƒƒ t ||¡ |S )	ar  
    :param config_name: the name of the config
           (usually the file name without the .yaml extension)
    :param overrides: list of overrides for config file
    :param return_hydra_config: True to return the hydra config node in the result
    :param strict: DEPRECATED. If false, returned config has struct mode disabled.
    :return: the composed config
    NzgGlobalHydra is not initialized, use @hydra.main() or call one of the hydra initialization methods firstF)r   r   Úrun_modeZ
from_shellZwith_log_configurationÚhydraz1.2z#got an unexpected 'strict' argumentzÍ
                    The strict flag in the compose API is deprecated.
                    See https://hydra.cc/docs/1.2/upgrades/0.11_to_1.0/strict_mode_flag_deprecated for more info.
                    )r	   Úis_initializedÚinstancer   Zcompose_configr
   ÚRUNÚ
isinstancer   r   r   Úbase_at_leastÚ	TypeErrorr   r   r   Ú
set_struct)r   r   r   r   ÚghÚcfg© r   ú`/var/www/html/academy/tools/voices/clone/cosy-venv/lib/python3.10/site-packages/hydra/compose.pyÚcompose   s>   ÿþû
ÿ
ÿÿr   )NNFN)Útextwrapr   Útypingr   r   Ú	omegaconfr   r   r   r   r   Úhydra.core.global_hydrar	   Úhydra.typesr
   Z_internal.deprecation_warningr   ÚstrÚboolr   r   r   r   r   Ú<module>   s,   üÿ
þýüû