o
    iX                     @   s   d dl mZ d dl mZ d dl mZ d dl mZ d dl mZ er'd dlmZ nzd dlmZ W n e	y>   d dlmZ Y nw dgZ
G d	d
 d
eZG dd dedhdZdS )    )TYPE_CHECKING)Any)Dict)Iterable)Tuple)
SafeLoader)CSafeLoaderr   c                
       sJ   e Zd ZdZdedeedf deeef de	e dd f
 fdd	Z
  ZS )
LimitedSafeLoaderzFMeta YAML loader that skips the resolution of the specified YAML tags.namebases.	namespaceexclude_resolversreturnc                    sF   t    fddtj D }t | |tg|R i |d|iS )Nc                    s$   i | ]\}}| fd d|D qS )c                    s    g | ]\}}| vr||fqS  r   ).0tagregexr   r   ]/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/jsonschema_path/loaders.py
<listcomp>"   s
    z8LimitedSafeLoader.__new__.<locals>.<dictcomp>.<listcomp>r   )r   keymappingsr   r   r   
<dictcomp>!   s    z-LimitedSafeLoader.__new__.<locals>.<dictcomp>yaml_implicit_resolvers)setr   r   itemssuper__new__)clsr
   r   r   r   implicit_resolvers	__class__r   r   r      s   

zLimitedSafeLoader.__new__)__name__
__module____qualname____doc__strr   typer   r   r   r   __classcell__r   r   r    r   r	      s    

r	   c                   @   s   e Zd ZdZdS )JsonschemaSafeLoaderz5A safe YAML loader that leaves timestamps as strings.N)r"   r#   r$   r%   r   r   r   r   r)   1   s    r)   ztag:yaml.org,2002:timestamp)	metaclassr   N)typingr   r   r   r   r   yamlr   r   ImportError__all__r'   r	   r)   r   r   r   r   <module>   s&   

