ó
    pyüi}  ã                  ó>  • S r SSKJr  SSKrSSKJrJrJr  SSK	J
r
  SSKJr  SSKJr  SS	KJr  SS
KJr  SrS\" 5        S3r\S   r " S S5      r " S S\\5      r " S S\\5      r " S S\\5      r " S S\5      r " S S\5      r " S S\5      r\" \ 5      r!g)zPydantic-specific errors.é    )ÚannotationsN)ÚAnyÚClassVarÚLiteral)ÚSelf)Ú	Qualifier)Ú_repré   )Úgetattr_migration)Úversion_short)ÚPydanticUserErrorÚPydanticUndefinedAnnotationÚPydanticImportErrorÚPydanticSchemaGenerationErrorÚPydanticInvalidForJsonSchemaÚPydanticForbiddenQualifierÚPydanticErrorCodeszhttps://errors.pydantic.dev/z/u/)0z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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                  ó,   • \ rS rSrSrSS jrSS jrSrg)	ÚPydanticErrorMixinéR   zÈ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               ó   • Xl         X l        g )N©ÚmessageÚcode)Úselfr   r   s      ÚL/home/mande/repo/quber/.venv/lib/python3.13/site-packages/pydantic/errors.pyÚ__init__ÚPydanticErrorMixin.__init__Z   s   € ØŒØ�	ó    c                óv   • U R                   c  U R                  $ U R                   S[         U R                    3$ )Nz 

For further information visit )r   r   ÚDEV_ERROR_DOCS_URL)r   s    r    Ú__str__ÚPydanticErrorMixin.__str__^   s:   € Ø�9‰9ÑØ—<‘<Ðà—l‘l�^Ð#EÔFXÐEYÐZ^×ZcÑZcÐYdÐeÐer#   )r   r   N)r   Ústrr   zPydanticErrorCodes | NoneÚreturnÚNone)r)   r(   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r!   r&   Ú__static_attributes__© r#   r    r   r   R   s   † ñô÷fr#   r   c                  ó   • \ rS rSrSrSrg)r   ée   z1An error raised due to incorrect use of Pydantic.r1   N)r+   r,   r-   r.   r/   r0   r1   r#   r    r   r   e   s   † Ü;r#   r   c                  óD   ^ • \ rS rSrSrSU 4S jjr\SS j5       rSrU =r	$ )r   éi   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                ó.   >• Xl         [        TU ]	  USS9  g )Nr   r   )ÚnameÚsuperr!   )r   r7   r   Ú	__class__s      €r    r!   Ú$PydanticUndefinedAnnotation.__init__q   s   ø€ ØŒ	Ü‰Ñ Ð/EÐÒFr#   c                óº   •  UR                   nU " U[	        U5      S9$ ! [         a2    [        R                  " S[	        U5      5      R                  S5      n NKf = f)z±Convert a `NameError` to a `PydanticUndefinedAnnotation` error.

Args:
    name_error: `NameError` to be converted.

Returns:
    Converted `PydanticUndefinedAnnotation` error.
z	.*'(.+?)'r
   )r7   r   )r7   ÚAttributeErrorÚreÚsearchr(   Úgroup)ÚclsÚ
name_errorr7   s      r    Úfrom_name_errorÚ+PydanticUndefinedAnnotation.from_name_erroru   sV   € ð	EØ—?‘?ˆDñ ˜¤c¨*£oÑ6Ð6øô ó 	EÜ—9’9˜\¬3¨z«?Ó;×AÑAÀ!ÓDŠDð	Eús   ‚ ž9AÁA)r7   )r7   r(   r   r(   r)   r*   )rA   Ú	NameErrorr)   r   )
r+   r,   r-   r.   r/   r!   ÚclassmethodrB   r0   Ú__classcell__©r9   s   @r    r   r   i   s"   ø† ñ÷Gð ó7ó ö7r#   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )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U ]  USS9  g )Nr   ©r   ©r8   r!   ©r   r   r9   s     €r    r!   ÚPydanticImportError.__init__�   s   ø€ Ü‰Ñ˜ ~ÐÒ6r#   r1   ©r   r(   r)   r*   ©r+   r,   r-   r.   r/   r!   r0   rF   rG   s   @r    r   r   †   s   ø† ñ÷7õ 7r#   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   é‘   z~An error raised during failures to generate a `CoreSchema` for some type.

Attributes:
    message: Description of the error.
c                ó"   >• [         TU ]  USS9  g )Nr   rK   rL   rM   s     €r    r!   Ú&PydanticSchemaGenerationError.__init__˜   ó   ø€ Ü‰Ñ˜Ð'@ÐÒAr#   r1   rO   rP   rG   s   @r    r   r   ‘   ó   ø† ñ÷Bõ Br#   r   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )r   éœ   z…An error raised during failures to generate a JSON schema for some `CoreSchema`.

Attributes:
    message: Description of the error.
c                ó"   >• [         TU ]  USS9  g )Nr   rK   rL   rM   s     €r    r!   Ú%PydanticInvalidForJsonSchema.__init__£   rU   r#   r1   rO   rP   rG   s   @r    r   r   œ   rV   r#   r   c                  óN   ^ • \ rS rSr% SrSSSSSSS	.rS
\S'   SU 4S jjrSrU =r	$ )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_mapc                óv   >• [         TU ]  S[        R                  " U5      < SU R                  U   < S3S S9  g )NzThe annotation z contains the z? type qualifier, which is invalid in the context it is defined.r   )r8   r!   r	   Údisplay_as_typerc   )r   Ú	qualifierÚ
annotationr9   s      €r    r!   Ú#PydanticForbiddenQualifier.__init__³   sN   ø€ Ü‰Ñà!¤%×"7Ò"7¸
Ó"CÑ!FÀnÐUY×UmÑUmÐnwÑUxÑT{ð |Qð Rð ð 	ò 	
r#   r1   )rf   r   rg   r   r)   r*   )
r+   r,   r-   r.   r/   rc   Ú__annotations__r!   r0   rF   rG   s   @r    r   r   §   s4   ø‡ ÙVð &Ø,Ø&Ø&Ø)Øñ;ÐÐ7ó ÷
õ 
r#   r   )"r/   Ú
__future__r   Ú_annotationsr=   Útypingr   r   r   Útyping_extensionsr   Útyping_inspection.introspectionr   Úpydantic._internalr	   Ú
_migrationr   Úversionr   Ú__all__r%   r   r   ÚRuntimeErrorr   rD   r   ÚImportErrorr   r   r   r   r+   Ú__getattr__r1   r#   r    Ú<module>rv      s¿   ðÙ å 2ã 	ß )Ñ )å "Ý 5å $å )Ý "ð€ð 4±M³OÐ3DÀCÐHÐ Øð/(ñ1Ð ÷hfñ fô&<Ð*¨Lô <ô7Ð"4°iô 7ô:7Ð,¨kô 7ôBÐ$5ô BôBÐ#4ô Bô
Ð!2ô 
ñ,   Ó)�r#   