o
    3Ihc                     @   s   d Z ddlmZ ddlmZ dZedddifgdd	 eeD d
dd	 eeeD dZeeZ	dZ
dZedkrae Zeddd  eddd  eddd  eddd  dS dS )z|
A benchmark for validation of schemas containing lots of useless keywords.

Checks we filter them out once, ahead of time.
    )Runner)Draft202012Validatori notconst*   c                 c       | ]	}t ||fV  qd S Nstr.0i r   f/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/jsonschema/benchmarks/useless_keywords.py	<genexpr>       r   )typeintegerc                 c   r   r   r	   r   r   r   r   r      r   )minimum%        __main__zbeginning of schemac                   C   
   t dS )Nr   	validatoris_validr   r   r   r   <lambda>      
 r   zmiddle of schemac                   C   r   )Nfoor   r   r   r   r   r      r   zend of schemac                   C   r   )Nr   r   r   r   r   r   r      r   validc                   C   r   )Nr   r   r   r   r   r   r       r   N)__doc__pyperfr   
jsonschemar   NUM_USELESSdictrangeschemar   r    invalid__name__runner
bench_funcr   r   r   r   <module>   s4    
	