� g\�g���8�dZddlmZddlZddlmZmZddlm Z ddl m Z dZ d e ���d �Z ed ZGd �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/)0zclass-not-fully-definedzcustom-json-schemazdecorator-missing-fieldzdiscriminator-no-fieldzdiscriminator-alias-typezdiscriminator-needs-literalzdiscriminator-aliaszdiscriminator-validatorzcallable-discriminator-no-tagztyped-dict-versionzmodel-field-overriddenzmodel-field-missing-annotationz config-bothzremoved-kwargszcircular-reference-schema�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-methodzvalidator-input-typezroot-validator-pre-skipz model-serializer-instance-methodzvalidator-field-config-infozvalidator-v1-signaturezvalidator-signaturezfield-serializer-signaturezmodel-serializer-signaturezmultiple-field-serializerszinvalid-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-modelzvalidate-call-typezunpack-typed-dictzoverlapping-unpack-typed-dictzinvalid-self-typec�"�eZdZdZd d�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 �_/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/pydantic/errors.py�__init__zPydanticErrorMixin.__init__Us���� ��� � � �c�N�|j�|jS|j�dt�|j��S)Nz For further information visit )rr�DEV_ERROR_DOCS_URL)rs r�__str__zPydanticErrorMixin.__str__Ys2�� �9� ��<� ��l�e�e�FX�e�Z^�Zc�e�e� er N)rrrrrr)rr)�__name__� __module__� __qualname__�__doc__rr#�r rrrMsL������������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 `s������;�;�;�;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 �rrz$PydanticUndefinedAnnotation.__init__ls.����� � ������/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)�clsr/r+s r�from_name_errorz+PydanticUndefinedAnnotation.from_name_errorpst�� 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)r/r0rr)r$r%r&r'r� classmethodr7� __classcell__�r.s@rr r dsm���������G�G�G�G�G�G�� 7� 7� 7��[� 7� 7� 7� 7� 7r r c�$��eZdZdZd�fd� Z�xZS)r z�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 �rrzPydanticImportError.__init__�s&��� ������~��6�6�6�6�6r �rrrr�r$r%r&r'rr9r:s@rr r �sG��������� 7�7�7�7�7�7�7�7�7�7r r c�$��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 �rrz&PydanticSchemaGenerationError.__init__��'��� ������'@��A�A�A�A�Ar r@rAr: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 �rrz%PydanticInvalidForJsonSchema.__init__�rDr r@rAr:s@rr r �rEr r )r'� __future__r� _annotationsr3�typing_extensionsrr� _migrationr�versionr�__all__r"rr� TypeErrorr r0r � ImportErrorr r r r$� __getattr__r(r r�<module>rQs�����2�2�2�2�2�2� � � � �+�+�+�+�+�+�+�+�)�)�)�)�)�)�"�"�"�"�"�"� ��I�M�M�O�O�H�H�H���/�1��hf�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
Memory