a
    �Ï?ee  ã                   @   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   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r€t jdtdd� ddl	m
} |S | dkr¨t jdtdd� ddl	m} |S | dkrÐt 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�r@t jd| › d�tdd� |jS tdt› d| › �ƒ‚d S )NÚ__version__zšAccessing 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Ú	ErrorTreez”Importing ErrorTree directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.)r   ÚFormatErrorz–Importing FormatError directly from the jsonschema package is deprecated and will become an ImportError. Import it from jsonschema.exceptions instead.)r   Ú	Validatorz“Importing 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!   úV/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/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   
$Q