
    ge                     j    d Z ddlZddlmZ ddlmZ ddlmZmZ ddl	m
Z
mZmZmZmZmZmZ d Zg dZy)	a9  
An implementation of JSON Schema for Python.

The main functionality is provided by the validator classes for each of the
supported JSON Schema versions.

Most commonly, `jsonschema.validators.validate` is the quickest way to simply
validate a given instance under a schema, and will create a validator
for you.
    N)FormatChecker)TypeChecker)SchemaErrorValidationError)Draft3ValidatorDraft4ValidatorDraft6ValidatorDraft7ValidatorDraft201909ValidatorDraft202012Validatorvalidatec                    | dk(  r3t        j                  dt        d       ddlm} |j                  d      S | dk(  r.dd	lm} t        j                  |j                  t        d       |S | d
k(  r$t        j                  dt        d       ddl	m
} |S | dk(  r$t        j                  dt        d       ddl	m} |S | dk(  r$t        j                  dt        d       ddlm} |S | dk(  r.ddl	m} t        j                  |j                  t        d       |S t        t         t"        t$        t&        t(        d}|j+                  |       }|,t        j                  d|  dt        d       |j,                  S t/        dt0         d|        )N__version__zAccessing jsonschema.__version__ is deprecated and will be removed in a future release. Use importlib.metadata directly to query for jsonschema's version.   )
stacklevelr   )metadata
jsonschemaRefResolver)_RefResolver	ErrorTreezImporting ErrorTree directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.)r   FormatErrorzImporting FormatError directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.)r   	ValidatorzImporting Validator directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.protocols instead.)r   RefResolutionError)_RefResolutionError)draft3_format_checkerdraft4_format_checkerdraft6_format_checkerdraft7_format_checkerdraft201909_format_checkerdraft202012_format_checkerzAccessing jsonschema.z is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator.zmodule z has no attribute )warningswarnDeprecationWarning	importlibr   versionjsonschema.validatorsr   _DEPRECATION_MESSAGEjsonschema.exceptionsr   r   jsonschema.protocolsr   r   r   r   r	   r
   r   r   getFORMAT_CHECKERAttributeError__name__)	namer   r   r   r   r   r   format_checkersValidatorForFormats	            H/var/www/openai/venv/lib/python3.12/site-packages/jsonschema/__init__.py__getattr__r2      s   }1 	
 	'--		6--	

 		- 	
 	4		- 	
 	6		, 	
 	3	%	%=44	

 #" "1!0!0!0&:&:O ),,T2%#D6 *8 8 	
 "000
78*,>tfE
FF    )r   r   r   r   r	   r
   r   r   r   r   r   )__doc__r!   jsonschema._formatr   jsonschema._typesr   r(   r   r   r&   r   r   r	   r
   r   r   r   r2   __all__ r3   r1   <module>r9      s6   	  , ) >  NGbr3   