o
    5‘ði  ã                   @   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    
 þ