+
    :1j0	                        R t ^ RIHt ^ RIHt ^ RIHt ^RIHt ^RI	H
t
 ^RIHtHt ^RIHt ^RIHt ]'       d   ^R	IHt ^R
IHt ]! ]4      t ! R R]4      tR# )zDefine YAML spec.)annotations)	getLogger)TYPE_CHECKING)yaml)
deprecated)CondaValueErrorPluginError)EnvironmentSpecBase)env)Environment)EnvironmentYamlc                  v    ] tR t^tRtRtRR ltR t]]	! RRRR7      R	 R
 l4       4       t
]R R l4       tRtR# )YamlFileSpecFNc                	     Wn         R V n        R # N)filenamemsg)selfr   kwargss   &&,9lib/python3.14/site-packages/conda/env/specs/yaml_file.py__init__YamlFileSpec.__init__    s         c                   V P                   f   \        R4      h\        P                  ! V P                   4      p\        P
                  ! V4      pVe   \        V\        4      '       g   \        V P                    R24      hR# )z
Validates loader can process environment definition.
This can handle if:
    * the provided file exists
    * the yaml file can be loaded and is not empty

:return: True or False
zNo filename providedz is an empty yaml file.T)	r   r   r
   	load_filer   loads
isinstancedictr   )r   yamlstrdatas   &  r   
can_handleYamlFileSpec.can_handle$   sg     == !"899--.zz'" <z$55/FGHHr   z26.3z26.9z*This method is not used anymore, use 'env')addendumc                   V ^8  d   QhRR/# )   returnr    )formats   "r   __annotate__YamlFileSpec.__annotate__;   s     ! !_ !r   c                	   V P                   '       gT   V P                  4       '       g   \        R V P                   24      h\        P
                  ! V P                  4      V n         V P                   f   \        R4      hV P                   # )z Cannot handle environment file: zEnvironment could not be loaded)_environmentr    r   r   r
   	from_filer   r   s   &r   environmentYamlFileSpec.environment9   sm        ??$$%(H
&STT #dmm <D$!"CDD   r   c                   V ^8  d   QhRR/# )r$   r%   r   r&   )r'   s   "r   r(   r)   F   s     8 8[ 8r   c                	    V P                   '       g&   \        P                  ! V P                  4      V n         V P                   P	                  4       # r   )r+   r
   r,   r   to_environment_modelr-   s   &r   r
   YamlFileSpec.envE   s8        #dmm <D  5577r   )r+   r   r   r   )__name__
__module____qualname____firstlineno__detection_supportedr+   r   r    propertyr   r.   r
   __static_attributes__r&   r   r   r   r      sT      L* )UV! W ! 8 8r   r   N)__doc__
__future__r   loggingr   typingr   common.serializer   deprecationsr   
exceptionsr   r   plugins.typesr	    r
   models.environmentr   r   r4   logr   r&   r   r   <module>rF      sD     "    $ & 6 0 1% 18& 18r   