Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
errors.cpython-313.pyc51 linesDownload Raw Back to __pycache__
1�

2��j}��>�SrSSKJr SSKrSSKJrJrJr SSK	J3r4 SSKJr SSK
Jr SS	KJr SS5KJr SrS\"5S
3r\Sr"SS5r"SS\\5r"SS\\5r"SS\\5r"SS\5r"SS\5r"SS\5r\"\ 5r!g)zPydantic-specific errors.�)�annotationsN)�Any�ClassVar�Literal)�Self)�	Qualifier)�_repr�)�getattr_migration)�
version_short)�PydanticUserError�PydanticUndefinedAnnotation�PydanticImportError�PydanticSchemaGenerationError�PydanticInvalidForJsonSchema�PydanticForbiddenQualifier�PydanticErrorCodeszhttps://errors.pydantic.dev/z/u/)0zclass-not-fully-definedzcustom-json-schemazdecorator-invalid-fieldszdecorator-missing-argumentszdecorator-missing-fieldzdiscriminator-no-fieldzdiscriminator-alias-typezdiscriminator-needs-literalzdiscriminator-aliaszdiscriminator-validatorzcallable-discriminator-no-tagztyped-dict-versionzmodel-field-overriddenzmodel-field-missing-annotationzconfig-bothzremoved-kwargszcircular-reference-schema�invalid-for-json-schemazjson-schema-already-usedzbase-model-instantiated�undefined-annotation�schema-for-unknown-type�import-errorzcreate-model-field-definitionszvalidator-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-typez validate-by-alias-and-name-falsec�,�\rSrSrSrSSjrSSjrSrg)	�PydanticErrorMixin�Rz�A mixin class for common functionality shared by all Pydantic-specific errors.6 7Attributes:8    message: A message describing the error.9    code: An optional error code from PydanticErrorCodes enum.10c��XlX lg)N��message�code)�selfrrs   �UD:\code\apps\devtools\python\user_packages\Python313\site-packages\pydantic/errors.py�__init__�PydanticErrorMixin.__init__Zs�����	�c�v�URcUR$URS[UR3$)Nz 11 12For further information visit )rr�DEV_ERROR_DOCS_URL)rs r �__str__�PydanticErrorMixin.__str__^s:���9�9���<�<���l�l�^�#E�FX�EY�Z^�Zc�Zc�Yd�e�er#)rrN)r�strrzPydanticErrorCodes | None�return�None)r)r()�__name__�13__module__�__qualname__�__firstlineno__�__doc__r!r&�__static_attributes__�r#r rrRs����fr#rc��\rSrSrSrSrg)r
�ez1An error raised due to incorrect use of Pydantic.r1N)r+r,r-r.r/r0r1r#r r
r
es��;r#r
c�D^�\rSrSrSrSU4Sjjr\SSj5rSrU=r	$)r�iz�A subclass of `NameError` raised when handling undefined annotations during `CoreSchema` generation.14 15Attributes:16    name: Name of the error.17    message: Description of the error.18c�.>�Xl[TU]	USS9 g)Nrr)�name�superr!)rr7r�	__class__s   �r r!�$PydanticUndefinedAnnotation.__init__qs����	�
����/E��Fr#c��URnU"U[	U5S9$![a2 [R"S[	U55RS5nNKf=f)z�Convert a `NameError` to a `PydanticUndefinedAnnotation` error.19 20Args:21    name_error: `NameError` to be converted.22 23Returns:24    Converted `PydanticUndefinedAnnotation` error.25z	.*'(.+?)'r26)r7r)r7�AttributeError�re�searchr(�group)�cls�27name_errorr7s   r �from_name_error�+PydanticUndefinedAnnotation.from_name_errorusV��	E��?�?�D���c�*�o�6�6���	E��9�9�\�3�z�?�;�A�A�!�D�D�	E�s��9A�A)r7)r7r(rr(r)r*)rA�	NameErrorr)r)28r+r,r-r.r/r!�classmethodrBr0�
__classcell__�r9s@r rris"����G��
7��
7r#rc�0^�\rSrSrSrSU4SjjrSrU=r$)r�z�An error raised when an import fails due to module changes between V1 and V2.29 30Attributes:31    message: Description of the error.32c�">�[TU]USS9 g)Nr�r�r8r!�rrr9s  �r r!�PydanticImportError.__init__�s���
����~��6r#r1�rr(r)r*�r+r,r-r.r/r!r0rFrGs@r rr�s����7�7r#rc�0^�\rSrSrSrSU4SjjrSrU=r$)r�z~An error raised during failures to generate a `CoreSchema` for some type.33 34Attributes:35    message: Description of the error.36c�">�[TU]USS9 g)NrrKrLrMs  �r r!�&PydanticSchemaGenerationError.__init__�����
����'@��Ar#r1rOrPrGs@r rr������B�Br#rc�0^�\rSrSrSrSU4SjjrSrU=r$)r�z�An error raised during failures to generate a JSON schema for some `CoreSchema`.37 38Attributes:39    message: Description of the error.40c�">�[TU]USS9 g)NrrKrLrMs  �r r!�%PydanticInvalidForJsonSchema.__init__�rUr#r1rOrPrGs@r rr�rVr#rc�N^�\rSrSr%SrSSSSSSS	.rS41\S'SU4SjjrS
rU=r	$)r�zLAn error raised if a forbidden type qualifier is found in a type annotation.ztyping.Requiredztyping.NotRequiredztyping.ReadOnlyztyping.ClassVarzdataclasses.InitVarztyping.Final)�required�not_required�	read_only�	class_var�init_var�finalzClassVar[dict[Qualifier, str]]�_qualifier_repr_mapc�v>�[TU]S[R"U5<SURU<S3SS9 g)NzThe annotation z contains the z? type qualifier, which is invalid in the context it is defined.r)r8r!r	�display_as_typerc)r�	qualifier�42annotationr9s   �r r!�#PydanticForbiddenQualifier.__init__�sN���
���!�%�"7�"7�43�"C�!F�n�UY�Um�Um�nw�Ux�T{�|Q�R��	�	44r#r1)rfrrgrr)r*)45r+r,r-r.r/rc�__annotations__r!r0rFrGs@r rr�s4���V�&�,�&�&�)��
;��7��46�47r#r)"r/�48__future__r�_annotationsr=�typingrrr�typing_extensionsr�typing_inspection.introspectionr�pydantic._internalr	�49_migrationr�versionr�__all__r%rr�RuntimeErrorr
rDr�ImportErrorrrrrr+�__getattr__r1r#r �<module>rvs����2�	�)�)�"�5�$�)�"���4�M�O�3D�C�H���/(�1��hf�f�&<�*�L�<�7�"4�i�7�:7�,�k�7�B�$5�B�B�#4�B�50�!2�51�, ��)�r#
codekingpro/portable-devtools · Team Ai