o
    ge                     @   sl   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d Zg d	ZdS )
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           	      C   sP  | dkrt jdtdd ddlm} |dS | dkr,dd	lm} t j|jtdd |S | d
kr@t jdtdd ddl	m
} |S | dkrTt jdtdd ddl	m} |S | dkrht jdtdd ddlm} |S | dkr}ddl	m} t j|jtdd |S ttttttd}|| }|d urt jd|  dtdd |jS tdt 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ValidatorForFormat r/   O/var/www/html/chatdoc2/venv/lib/python3.10/site-packages/jsonschema/__init__.py__getattr__   s   


r1   )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   r1   __all__r/   r/   r/   r0   <module>   s    
$Q