|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/local/lib/python3.6/site-packages/jsonschema/__pycache__/ |
Upload File : |
3
F�Kd�2 � C @ s� d dl mZ d dlmZ d dlZd dlZd dlZd dlmZ G dd� de �Z
e
� Ze
� Ze
� Z
e
� Ze
� Ze
� Zeeee
eeed�Zdddddddf fdd �Zed
d�edd�d
d� ��Zeddddddejd�dd� �Zedejd�dd� �Zee��. d dlmZ eddddddd�dd� �ZW dQ R X ee��, d dlZedddejefd�dd � �ZW dQ R X yd dl Z W nb ek
�r� ee��> d d!l!m"Z" ed"d�d#d$� �Z#ed%d%d%d%e$d&�d'd(� �Z%W dQ R X Y n`X ed)d)d)e$d�d*d+� �Z&ed,d,d,e$d�d-d.� �Z'ed"e$d�d/d$� �Z#ed%d%d%d%e$d&�d0d(� �Z%ee��: d d1l(m)Z) ed2d�d3d4� �Z*ed5d5d5d6�d7d8� �Z+W dQ R X ed9ej,d�d:d;� �Z-ed<d<d<d<e$d=�d>d?� �Z.ed5e$d@�dAdB� �Z/ee��: d dCl0m1Z1 d dl0Z0dDdE� Z2edFe$e3fd@�dGdH� �Z4W dQ R X ee��D d dl5Z5edIdIdIdIe5j6d&�dJdK� �Z7edLdLdLe5j6d�dMdN� �Z8W dQ R X ee��& d dl9Z9edOdOdOdOdP�dQdR� �Z:W dQ R X ee��& d dl;Z;edSdSe;j<dT�dUdV� �Z=W dQ R X edWdWe$dT�dXdY� �Z>dS )Z� )�suppress)�UUIDN)�FormatErrorc @ sJ e Zd ZdZi Zd
dd�Zdd� Zf fdd�Zee�Z d d
� Z
dd� ZdS )�
FormatCheckera�
A ``format`` property checker.
JSON Schema does not mandate that the ``format`` property actually do any
validation. If validation is desired however, instances of this class can
be hooked into validators to enable format validation.
`FormatChecker` objects always return ``True`` when asked about
formats that they do not know how to validate.
To check a custom format using a function that takes an instance and
returns a ``bool``, use the `FormatChecker.checks` or
`FormatChecker.cls_checks` decorators.
Arguments:
formats (~collections.abc.Iterable):
The known formats to validate. This argument can be used to
limit which formats will be used during validation.
Nc s2 |d kr� j j� � _ nt� fdd�|D ��� _ d S )Nc 3 s | ]}|� j | fV qd S )N)�checkers)�.0�k)�self� �8/tmp/pip-build-8nxjc3nm/jsonschema/jsonschema/_format.py� <genexpr>'