관리-도구
편집 파일: errors.cpython-38.pyc
U /?�f� � @ s� d Z ddlmZ ddlZddlmZmZ ddlm Z ddl mZ dZd e� � d �Z ed ZG dd � d �ZG dd� dee�ZG dd� dee�ZG dd� dee�ZG dd� de�ZG dd� 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/)*zclass-not-fully-definedzcustom-json-schemazdecorator-missing-fieldzdiscriminator-no-fieldzdiscriminator-alias-typezdiscriminator-needs-literalzdiscriminator-aliaszdiscriminator-validatorzcallable-discriminator-no-tagztyped-dict-versionzmodel-field-overriddenzmodel-field-missing-annotationzconfig-bothzremoved-kwargs�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-methodzroot-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-modelc @ s0 e Zd ZdZdddd�dd�Zdd�d d �ZdS )�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. �strzPydanticErrorCodes | None�None)�message�code�returnc C s || _ || _d S )N�r r )�selfr r � r �=/opt/hc_python/lib/python3.8/site-packages/pydantic/errors.py�__init__O s zPydanticErrorMixin.__init__)r c C s* | j d kr| jS | j� dt� | j � �S d S )Nz For further information visit )r r �DEV_ERROR_DOCS_URL)r r r r �__str__S s zPydanticErrorMixin.__str__N)�__name__� __module__�__qualname__�__doc__r r r r r r r G s r c @ s e Zd ZdZdS )r z1An error raised due to incorrect use of Pydantic.N)r r r! r"