o
    ^+)h                     @   s   U d dl mZ d dlmZmZmZ ddlmZ ddlm	Z	m
Z
 ddlmZ ddlmZmZ ddlmZ g d	Zd
d ej D Zeeeegef f ed< dedefddZdS )    )reduce)AnyCallableDict   )formats)detailed_errorsValidationError)EXTRA_VALIDATIONS)JsonSchemaExceptionJsonSchemaValueException)validate)r   FORMAT_FUNCTIONSr
   r	   r   r   c                 C   s0   i | ]}t |r|jd s|jd d|qS )_-)callable__name__
startswithreplace).0fn r   mC:\Users\User\Downloads\Proyecto_IoT\venv\Lib\site-packages\setuptools/config/_validate_pyproject/__init__.py
<dictcomp>   s    
r   r   datareturnc                 C   sF   t   t| td W d   n1 sw   Y  tdd t|  dS )z~Validate the given ``data`` object using JSON Schema
    This function raises ``ValidationError`` if ``data`` is invalid.
    )Zcustom_formatsNc                 S   s   || S )Nr   )accr   r   r   r   <lambda>!   s    zvalidate.<locals>.<lambda>T)r   	_validater   r   r
   )r   r   r   r   r      s
   r   N)	functoolsr   typingr   r   r    r   Zerror_reportingr   r	   Zextra_validationsr
   Zfastjsonschema_exceptionsr   r   Zfastjsonschema_validationsr   r   __all____dict__valuesr   strbool__annotations__r   r   r   r   <module>   s    
 