U
    kufe                     @   s~   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d	d
dddddddddg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   sX  | dkr.t jdtdd ddlm} |dS | dkrXdd	lm} t j|jtdd |S | d
krt jdtdd ddl	m
} |S | dkrt jdtdd ddl	m} |S | dkrt jdtdd ddlm} |S | dk rddl	m} t j|jtdd |S ttttttd}|| }|d k	r@t jd|  dtdd |jS tdt d|  d S )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   )metadataZ
jsonschemaZ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   ZRefResolutionError)_RefResolutionError)Zdraft3_format_checkerZdraft4_format_checkerZdraft6_format_checkerZdraft7_format_checkerZdraft201909_format_checkerZ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   Z_DEPRECATION_MESSAGEjsonschema.exceptionsr   r   Zjsonschema.protocolsr   r   r   r   r   r	   r
   r   getZFORMAT_CHECKERAttributeError__name__)	namer   r   r   r   r   r   Zformat_checkersZValidatorForFormat r!   7/tmp/pip-unpacked-wheel-k94ccfep/jsonschema/__init__.py__getattr__   s    




r#   r
   r   r   r   r   r	   r   r   r   r   r   )__doc__r   Zjsonschema._formatr   Zjsonschema._typesr   r   r   r   r   r   r   r   r	   r
   r   r   r#   __all__r!   r!   r!   r"   <module>   s$   
$R