o
    0ήc                     @   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   U/tmp/pip-target-vg8gfxp4/lib/python/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.
    )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   error_reportingr   r	   extra_validationsr
   fastjsonschema_exceptionsr   r   fastjsonschema_validationsr   r   __all____dict__valuesr   strbool__annotations__r   r   r   r   <module>   s    
 