PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/hc_python/lib/python3.12/site-packages/pydantic/__pycache__/
Upload File :
Current File : //opt/hc_python/lib/python3.12/site-packages/pydantic/__pycache__/errors.cpython-312.pyc

�

���g����dZddlmZddlZddlmZmZddlm	Z	ddl
mZdZd	e��d
�Z
edZGd�d
�ZGd�dee�ZGd�dee�ZGd�dee�ZGd�de�ZGd�de�Ze	e�Zy)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-validatorzcallable-discriminator-no-tagztyped-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-extrazunevaluable-type-annotationz dataclass-init-false-extra-allowzclashing-init-and-init-varzmodel-config-invalid-field-namezwith-config-on-modelzdataclass-on-modelc� �eZdZdZdd�Zdd�Zy)�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.
    c� �||_||_y)N��message�code)�selfrrs   �>/opt/hc_python/lib/python3.12/site-packages/pydantic/errors.py�__init__zPydanticErrorMixin.__init__Os�������	�c�t�|j�|jS|j�dt�|j��S)Nz 

For further information visit )rr�DEV_ERROR_DOCS_URL)rs r�__str__zPydanticErrorMixin.__str__Ss:���9�9���<�<���l�l�^�#E�FX�EY�Z^�Zc�Zc�Yd�e�erN)r�strrzPydanticErrorCodes | None�return�None)r"r!)�__name__�
__module__�__qualname__�__doc__rr �rrrrGs����frrc��eZdZdZy)r	z1An error raised due to incorrect use of Pydantic.N)r$r%r&r'r(rrr	r	Zs��;rr	c�6��eZdZdZd�fd�Zedd��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.
    c�6��||_t�|�	|d��y)Nrr)�name�superr)rr,r�	__class__s   �rrz$PydanticUndefinedAnnotation.__init__fs�����	�
����/E��Frc��	|j}||t	|���S#t$r1tjdt	|��jd�}Y�LwxYw)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)�cls�
name_errorr,s   r�from_name_errorz+PydanticUndefinedAnnotation.from_name_errorjsV��	E��?�?�D���c�*�o�6�6���	E��9�9�\�3�z�?�;�A�A�!�D�D�	E�s�!�7A�A)r,r!rr!r"r#)r5�	NameErrorr"r)r$r%r&r'r�classmethodr6�
__classcell__�r.s@rr
r
^s"����G��
7��
7rr
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.
    c�(��t�|�|d��y)Nr�r�r-r�rrr.s  �rrzPydanticImportError.__init__�s���
����~��6r�rr!r"r#�r$r%r&r'rr9r:s@rrr{s����7�7rrc�$��eZdZdZd�fd�Z�xZS)rz�An error raised during failures to generate a `CoreSchema` for some type.

    Attributes:
        message: Description of the error.
    c�(��t�|�|d��y)Nrr=r>r?s  �rrz&PydanticSchemaGenerationError.__init__�����
����'@��Arr@rAr:s@rrr������B�Brr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.
    c�(��t�|�|d��y)Nrr=r>r?s  �rrz%PydanticInvalidForJsonSchema.__init__�rDrr@rAr:s@rr
r
�rErr
)r'�
__future__r�_annotationsr1�typing_extensionsrr�
_migrationr�versionr�__all__rrr�	TypeErrorr	r7r
�ImportErrorrrr
r$�__getattr__r(rr�<module>rQs����2�	�+�)�"���4�M�O�3D�C�H���)�+��\f�f�&<�*�I�<�7�"4�i�7�:7�,�k�7�B�$5�B�B�#4�B� ��)�r

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic