o
    !g                     @   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   m/root/parts/websockify/install/lib/python3.10/site-packages/setuptools/config/_validate_pyproject/__init__.py
<dictcomp>   s    
r   r   datareturnc                 C   sH   t   t| td tdd t|  W d   dS 1 sw   Y  dS )z~Validate the given ``data`` object using JSON Schema
    This function raises ``ValidationError`` if ``data`` is invalid.
    )custom_formatsc                 S   s   || S )Nr   )accr   r   r   r   <lambda>!   s    zvalidate.<locals>.<lambda>NT)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    
 