Ë
    &V.j‘  ã                  ó   — d Z ddlmZ ddlZddlmZmZ ddlm	Z	 ddl
mZ dZd	 e«       › d
�Zed   Z G d„ d«      Z G d„ dee«      Z G d„ dee«      Z G d„ dee«      Z G d„ de«      Z G d„ de«      Z e	e«      Zy)zPydantic-specific errors.é    )ÚannotationsN)ÚLiteralÚSelfé   )Úgetattr_migration)Úversion_short)ÚPydanticUserErrorÚPydanticUndefinedAnnotationÚPydanticImportErrorÚPydanticSchemaGenerationErrorÚPydanticInvalidForJsonSchemaÚPydanticErrorCodeszhttps://errors.pydantic.dev/z/u/)0zclass-not-fully-definedzcustom-json-schemazdecorator-missing-fieldzdiscriminator-no-fieldzdiscriminator-alias-typezdiscriminator-needs-literalzdiscriminator-aliaszdiscriminator-validatorzcallable-discriminator-no-tagztyped-dict-versionzmodel-field-overriddenzmodel-field-missing-annotationzconfig-bothzremoved-kwargszcircular-reference-schemaúinvalid-for-json-schemazjson-schema-already-usedzbase-model-instantiatedúundefined-annotationúschema-for-unknown-typeúimport-errorzcreate-model-field-definitionszcreate-model-config-basezvalidator-no-fieldszvalidator-invalid-fieldszvalidator-instance-methodzvalidator-input-typezroot-validator-pre-skipz model-serializer-instance-methodzvalidator-field-config-infozvalidator-v1-signaturezvalidator-signaturezfield-serializer-signaturezmodel-serializer-signaturezmultiple-field-serializerszinvalid-annotated-typeztype-adapter-config-unusedzroot-model-extrazunevaluable-type-annotationz dataclass-init-false-extra-allowzclashing-init-and-init-varzmodel-config-invalid-field-namezwith-config-on-modelzdataclass-on-modelzvalidate-call-typezunpack-typed-dictzoverlapping-unpack-typed-dictzinvalid-self-typec                  ó    — e Zd ZdZdd„Zdd„Zy)Ú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)Úselfr   r   s      úQC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\pydantic/errors.pyÚ__init__zPydanticErrorMixin.__init__U   s   € ØˆŒØˆ�	ó    c                ót   — | j                   €| j                  S | j                  › dt        › | j                   › �S )Nz 

For further information visit )r   r   ÚDEV_ERROR_DOCS_URL)r   s    r   Ú__str__zPydanticErrorMixin.__str__Y   s:   € Ø�9‰9ÐØ—<‘<Ðà—l‘l�^Ð#EÔFXÐEYÐZ^×ZcÑZcÐYdÐeÐer   N)r   Ústrr   zPydanticErrorCodes | NoneÚreturnÚNone)r!   r    )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   © r   r   r   r   M   s   „ ñóôfr   r   c                  ó   — e Zd ZdZy)r	   z1An error raised due to incorrect use of Pydantic.N)r#   r$   r%   r&   r'   r   r   r	   r	   `   s   „ Ú;r   r	   c                  ó6   ‡ — e Zd ZdZdˆ fd„Zedd„«       Zˆ xZS )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 )Nr   r   )ÚnameÚsuperr   )r   r+   r   Ú	__class__s      €r   r   z$PydanticUndefinedAnnotation.__init__l   s   ø€ ØˆŒ	Ü‰Ñ Ð/EÐÕFr   c                ó¼   — 	 |j                   } | |t	        |«      ¬«      S # t        $ r1 t        j                  dt	        |«      «      j                  d«      }Y ŒLw xY w)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_errorp   sV   € ð	EØ—?‘?ˆDñ ˜¤c¨*£oÔ6Ð6øô ò 	EÜ—9‘9˜\¬3¨z«?Ó;×AÑAÀ!ÓDŠDð	Eús   ‚! ¡7AÁA)r+   r    r   r    r!   r"   )r4   Ú	NameErrorr!   r   )r#   r$   r%   r&   r   Úclassmethodr5   Ú__classcell__©r-   s   @r   r
   r
   d   s"   ø„ ñõGð ò7ó ô7r   r
   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )r   zŽ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   ©r   r   r-   s     €r   r   zPydanticImportError.__init__ˆ   s   ø€ Ü‰Ñ˜ ~ÐÕ6r   ©r   r    r!   r"   ©r#   r$   r%   r&   r   r8   r9   s   @r   r   r   �   s   ø„ ñ÷7ñ 7r   r   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )r   zŠAn error raised during failures to generate a `CoreSchema` for some type.

    Attributes:
        message: Description of the error.
    c                ó(   •— t         ‰| �  |d¬«       y )Nr   r<   r=   r>   s     €r   r   z&PydanticSchemaGenerationError.__init__“   ó   ø€ Ü‰Ñ˜Ð'@ÐÕAr   r?   r@   r9   s   @r   r   r   Œ   ó   ø„ ñ÷Bñ Br   r   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )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 )Nr   r<   r=   r>   s     €r   r   z%PydanticInvalidForJsonSchema.__init__ž   rC   r   r?   r@   r9   s   @r   r   r   —   rD   r   r   )r&   Ú
__future__r   Ú_annotationsr0   Útyping_extensionsr   r   Ú
_migrationr   Úversionr   Ú__all__r   r   r   Ú	TypeErrorr	   r6   r
   ÚImportErrorr   r   r   r#   Ú__getattr__r'   r   r   Ú<module>rP      s¦   ðÙ å 2ã 	ç +å )Ý "ð€ð 4±M³OÐ3DÀCÐHÐ Øð/ñ1Ð ÷hfñ fô&<Ð*¨Iô <ô7Ð"4°iô 7ô:7Ð,¨kô 7ôBÐ$5ô BôBÐ#4ô Bñ   Ó)�r   