AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/__pycache__/schema.cpython-311.pyc |
� �܋f v � �T � d Z ddlZddlZ ddlmZ n# e$ r ddlmZ Y nw xY wdZg d�Z G d� de � � Z G d� d e � � Z G d � de � � Z G d� d e � � Z G d� de � � Z G d� de � � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z ed� � \ ZZZZZZd� Zd� Z G d� de� � Z G d� d e� � Z G d!� d"e� � Z G d#� d$e � � Z! G d%� d&e� � Z" G d'� d(e� � Z#d)� Z$d*� Z%dS )+z�schema is a library for validating Python data structures, such as those obtained from config-files, forms, external services or command-line parsing, converted from JSON/YAML (or something else) to Python data-types.� N)� ExitStackz0.7.5)�Schema�And�Or�Regex�Optional�Use� Forbidden�Const�Literal�SchemaError�SchemaWrongKeyError�SchemaMissingKeyError�SchemaForbiddenKeyError�SchemaUnexpectedTypeError�SchemaOnlyOneAllowedErrorc �0 � e Zd ZdZdd�Zed� � � ZdS )r zError during Schema validation.Nc �� � t |� � t u r|n|g| _ t |� � t u r|n|g| _ t � | | j � � d S �N)�type�list�autos�errors� Exception�__init__�code)�selfr r s �=/opt/cloudlinux/venv/lib64/python3.11/site-packages/schema.pyr zSchemaError.__init__% sZ � �"�5�k�k�T�1�1�U�U��w�� � $�V���� 4� 4�f�f�6�(������4���+�+�+�+�+� c �� � d� } |d� | j D � � � � } |d� | j D � � � � }|rd� |� � S d� |� � S )zW Removes duplicates values in auto and error list. parameters. c �N ��� t � � ��j ���fd�| D � � S )zB Utility function that removes duplicate. c �2 �� g | ]}|�v� �|� � �|��S � r# )�.0�x�seen�seen_adds ��r � <listcomp>z2SchemaError.code.<locals>.uniq.<locals>.<listcomp>8 s* �� �H�H�H�!�a�t�m�m�H�H�Q�K�K�m�A�m�m�mr )�set�add)�seqr&