§
    ©	Êjî  ã                  ót  — d Z ddlmZ ddlmZmZmZ ddlm	Z	 ddl
mZ ddl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 G d„ de¦  «        Z ee¦  «        Z dS )zPydantic-specific errors.é    )Úannotations)ÚAnyÚClassVarÚLiteral)ÚSelf)Ú	Qualifier)Ú_repré   )Úgetattr_migration)Úversion_short)ÚPydanticUserErrorÚPydanticUndefinedAnnotationÚPydanticImportErrorÚPydanticSchemaGenerationErrorÚPydanticInvalidForJsonSchemaÚPydanticForbiddenQualifierÚPydanticErrorCodeszhttps://errors.pydantic.dev/z/u/)1zclass-not-fully-definedzcustom-json-schemazdecorator-invalid-fieldszdecorator-missing-argumentsz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-namespacez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-typez validate-by-alias-and-name-falsec                  ó"   — e Zd ZdZdd„Zdd	„Zd
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               ó"   — || _         || _        d S )N©r   r   )Úselfr   r   s      ú?C:\Projects\Muse2API\.venv\Lib\site-packages\pydantic/errors.pyÚ__init__zPydanticErrorMixin.__init__Z   s   € ØˆŒØˆŒ	ˆ	ˆ	ó    c                óN   — | 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__^   s2   € ØŒ9ÐØ”<Ðà”lÐeÐeÕFXÐeÐZ^ÔZcÐeÐeÐer%   N)r   r   r   r   r   r   )r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r$   r(   © r%   r#   r   r   R   sL   € € € € € ðð ðð ð ð ðfð fð fð fð fð fr%   r   c                  ó   — e Zd ZdZdS )r   z1An error raised due to incorrect use of Pydantic.N)r)   r*   r+   r,   r-   r%   r#   r   r   e   s   € € € € € Ø;Ð;Ð;Ð;r%   r   c                  ó<   ‡ — 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, of `None` if not available.
        message: Description of the error.
    Únameú
str | Noner   r   r   r   c                ó\   •— || _         t          ¦   «                              |d¬¦  «         d S )Nr   r!   )r0   Úsuperr$   )r"   r0   r   Ú	__class__s      €r#   r$   z$PydanticUndefinedAnnotation.__init__q   s.   ø€ ØˆŒ	Ý‰Œ×Ò Ð/EÐÑFÔFÐFÐFÐFr%   Ú
name_errorÚ	NameErrorr   c                ó@   —  | |j         t          |¦  «        ¬¦  «        S )zÙConvert a `NameError` to a `PydanticUndefinedAnnotation` error.

        Args:
            name_error: `NameError` to be converted.

        Returns:
            Converted `PydanticUndefinedAnnotation` error.
        )r0   r   )r0   r   )Úclsr5   s     r#   Úfrom_name_errorz+PydanticUndefinedAnnotation.from_name_erroru   s!   € ð ˆs˜
œµ°Z±´ÐAÑAÔAÐAr%   )r0   r1   r   r   r   r   )r5   r6   r   r   )r)   r*   r+   r,   r$   Úclassmethodr9   Ú__classcell__©r4   s   @r#   r   r   i   su   ø€ € € € € ðð ðGð Gð Gð Gð Gð Gð ð	Bð 	Bð 	Bñ „[ð	Bð 	Bð 	Bð 	Bð 	Br%   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.
    r   r   r   r   c                óN   •— t          ¦   «                              |d¬¦  «         d S )Nr   ©r   ©r3   r$   ©r"   r   r4   s     €r#   r$   zPydanticImportError.__init__‰   s&   ø€ Ý‰Œ×Ò˜ ~ÐÑ6Ô6Ð6Ð6Ð6r%   ©r   r   r   r   ©r)   r*   r+   r,   r$   r;   r<   s   @r#   r   r   ‚   sG   ø€ € € € € ðð ð7ð 7ð 7ð 7ð 7ð 7ð 7ð 7ð 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.
    r   r   r   r   c                óN   •— t          ¦   «                              |d¬¦  «         d S )Nr   r?   r@   rA   s     €r#   r$   z&PydanticSchemaGenerationError.__init__”   ó'   ø€ Ý‰Œ×Ò˜Ð'@ÐÑAÔAÐAÐAÐAr%   rB   rC   r<   s   @r#   r   r   �   óQ   ø€ € € € € ðð ðBð Bð Bð Bð Bð Bð Bð Bð 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.
    r   r   r   r   c                óN   •— t          ¦   «                              |d¬¦  «         d S )Nr   r?   r@   rA   s     €r#   r$   z%PydanticInvalidForJsonSchema.__init__Ÿ   rF   r%   rB   rC   r<   s   @r#   r   r   ˜   rG   r%   r   c                  óB   ‡ — e Zd ZU dZdddddddœZd	ed
<   dˆ fd„Zˆ xZS )r   zLAn error raised if a forbidden type qualifier is found in a type annotation.ztyping.Requiredztyping.NotRequiredztyping.ReadOnlyztyping.ClassVarzdataclasses.InitVarztyping.Final)ÚrequiredÚnot_requiredÚ	read_onlyÚ	class_varÚinit_varÚfinalzClassVar[dict[Qualifier, str]]Ú_qualifier_repr_mapÚ	qualifierr   Ú
annotationr   r   r   c                ó–   •— t          ¦   «                              dt          j        |¦  «        ›d| j        |         ›d�d ¬¦  «         d S )NzThe annotation z contains the z? type qualifier, which is invalid in the context it is defined.r!   )r3   r$   r	   Údisplay_as_typerQ   )r"   rR   rS   r4   s      €r#   r$   z#PydanticForbiddenQualifier.__init__¯   sp   ø€ Ý‰Œ×ÒðR¥%Ô"7¸
Ñ"CÔ"Cð Rð RÐUYÔUmÐnwÔUxð Rð Rð Rð ð 	ñ 	
ô 	
ð 	
ð 	
ð 	
r%   )rR   r   rS   r   r   r   )r)   r*   r+   r,   rQ   Ú__annotations__r$   r;   r<   s   @r#   r   r   £   sz   ø€ € € € € € ØVÐVð &Ø,Ø&Ø&Ø)Øð;ð ;Ðð ð ð ñ ð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r%   r   N)!r,   Ú
__future__r   Ú_annotationsÚtypingr   r   r   Útyping_extensionsr   Útyping_inspection.introspectionr   Úpydantic._internalr	   Ú
_migrationr   Úversionr   Ú__all__r'   r   r   ÚRuntimeErrorr   r6   r   ÚImportErrorr   r   r   r   r)   Ú__getattr__r-   r%   r#   ú<module>rc      s-  ðØ Ð à 2Ð 2Ð 2Ð 2Ð 2Ð 2à )Ð )Ð )Ð )Ð )Ð )Ð )Ð )Ð )Ð )à "Ð "Ð "Ð "Ð "Ð "Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5à $Ð $Ð $Ð $Ð $Ð $à )Ð )Ð )Ð )Ð )Ð )Ø "Ð "Ð "Ð "Ð "Ð "ð€ð I°M°M±O´OÐHÐHÐHÐ Øð0(ô2Ð ðjfð fð fð fð fñ fô fð fð&<ð <ð <ð <ð <Ð*¨Lñ <ô <ð <ðBð Bð Bð Bð BÐ"4°iñ Bô Bð Bð2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ð
ð 
ð 
ð 
ð 
Ð!2ñ 
ô 
ð 
ð,  Ð Ñ)Ô)€€€r%   