AlkantarClanX12

Your IP : 18.116.43.109


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/pydantic/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/pydantic/__pycache__/errors.cpython-311.pyc

�

X��e���8�dZddlmZddlZddlmZmZddlm	Z	ddl
mZdZd	e���d
�Z
edZGd�d
��ZGd�dee��ZGd�dee��ZGd�dee��ZGd�de��ZGd�de��Ze	e��ZdS)zPydantic-specific errors.�)�annotationsN)�Literal�Self�)�getattr_migration)�
version_short)�PydanticUserError�PydanticUndefinedAnnotation�PydanticImportError�PydanticSchemaGenerationError�PydanticInvalidForJsonSchema�PydanticErrorCodeszhttps://errors.pydantic.dev/z/u/)#zclass-not-fully-definedzcustom-json-schemazdecorator-missing-fieldzdiscriminator-no-fieldzdiscriminator-alias-typezdiscriminator-needs-literalzdiscriminator-aliaszdiscriminator-validatorztyped-dict-versionzmodel-field-overriddenzmodel-field-missing-annotationzconfig-bothzremoved-kwargs�invalid-for-json-schemazjson-schema-already-usedzbase-model-instantiated�undefined-annotation�schema-for-unknown-type�import-errorzcreate-model-field-definitionszcreate-model-config-basezvalidator-no-fieldszvalidator-invalid-fieldszvalidator-instance-methodzroot-validator-pre-skipz model-serializer-instance-methodzvalidator-field-config-infozvalidator-v1-signaturezvalidator-signaturezfield-serializer-signaturezmodel-serializer-signaturezmultiple-field-serializers�invalid_annotated_typeztype-adapter-config-unusedzroot-model-extrac�"�eZdZdZdd�Zdd	�Zd
S)
�PydanticErrorMixinz�A mixin class for common functionality shared by all Pydantic-specific errors.

    Attributes:
        message: A message describing the error.
        code: An optional error code from PydanticErrorCodes enum.
    �message�str�code�PydanticErrorCodes | None�return�Nonec�"�||_||_dS)N�rr)�selfrrs   �D/opt/cloudlinux/venv/lib/python3.11/site-packages/pydantic/errors.py�__init__zPydanticErrorMixin.__init__Gs�������	�	�	�c�N�|j�|jS|j�dt�|j��S)Nz 

For further information visit )rr�DEV_ERROR_DOCS_URL)rs r�__str__zPydanticErrorMixin.__str__Ks2���9���<���l�e�e�FX�e�Z^�Zc�e�e�er!N)rrrrrr)rr)�__name__�
__module__�__qualname__�__doc__r r$�r!rrr?sL������������f�f�f�f�f�fr!rc��eZdZdZdS)r	z1An error raised due to incorrect use of Pydantic.N)r%r&r'r(r)r!rr	r	Rs������;�;�;�;r!r	c�<��eZdZdZd�fd�Zed
d���Z�xZS)r
z�A subclass of `NameError` raised when handling undefined annotations during `CoreSchema` generation.

    Attributes:
        name: Name of the error.
        message: Description of the error.
    �namerrrrc�\��||_t���|d���dS)Nrr)r,�superr )rr,r�	__class__s   �rr z$PydanticUndefinedAnnotation.__init__^s.�����	�
������/E��F�F�F�F�Fr!�
name_error�	NameErrorrc���	|j}nE#t$r8tjdt	|�����d��}YnwxYw||t	|�����S)z�Convert a `NameError` to a `PydanticUndefinedAnnotation` error.

        Args:
            name_error: `NameError` to be converted.

        Returns:
            Converted `PydanticUndefinedAnnotation` error.
        z	.*'(.+?)'r)r,r)r,�AttributeError�re�searchr�group)�clsr0r,s   r�from_name_errorz+PydanticUndefinedAnnotation.from_name_errorbst��	E��?�D�D���	E�	E�	E��9�\�3�z�?�?�;�;�A�A�!�D�D�D�D�D�	E�����s��c�*�o�o�6�6�6�6s�
�?A�A)r,rrrrr)r0r1rr)r%r&r'r(r �classmethodr8�
__classcell__�r/s@rr
r
Vsm���������G�G�G�G�G�G��
7�
7�
7��[�
7�
7�
7�
7�
7r!r
c�$��eZdZdZd�fd�Z�xZS)rz�An error raised when an import fails due to module changes between V1 and V2.

    Attributes:
        message: Description of the error.
    rrrrc�N��t���|d���dS)Nr�r�r.r �rrr/s  �rr zPydanticImportError.__init__zs&���
������~��6�6�6�6�6r!�rrrr�r%r&r'r(r r:r;s@rrrssG���������7�7�7�7�7�7�7�7�7�7r!rc�$��eZdZdZd�fd�Z�xZS)rz�An error raised during failures to generate a `CoreSchema` for some type.

    Attributes:
        message: Description of the error.
    rrrrc�N��t���|d���dS)Nrr>r?r@s  �rr z&PydanticSchemaGenerationError.__init__��'���
������'@��A�A�A�A�Ar!rArBr;s@rrr~�Q���������B�B�B�B�B�B�B�B�B�Br!rc�$��eZdZdZd�fd�Z�xZS)r
z�An error raised during failures to generate a JSON schema for some `CoreSchema`.

    Attributes:
        message: Description of the error.
    rrrrc�N��t���|d���dS)Nrr>r?r@s  �rr z%PydanticInvalidForJsonSchema.__init__�rEr!rArBr;s@rr
r
�rFr!r
)r(�
__future__r�_annotationsr4�typing_extensionsrr�
_migrationr�versionr�__all__r#rr�	TypeErrorr	r1r
�ImportErrorrrr
r%�__getattr__r)r!r�<module>rRs�����2�2�2�2�2�2�	�	�	�	�+�+�+�+�+�+�+�+�)�)�)�)�)�)�"�"�"�"�"�"���I�M�M�O�O�H�H�H���"�$��Nf�f�f�f�f�f�f�f�&<�<�<�<�<�*�I�<�<�<�7�7�7�7�7�"4�i�7�7�7�:7�7�7�7�7�,�k�7�7�7�B�B�B�B�B�$5�B�B�B�B�B�B�B�B�#4�B�B�B� ���)�)���r!