File: //usr/local/lib/python3.10/dist-packages/pydantic/v1/__pycache__/errors.cpython-310.pyc
o
|��g>E � @ s� d dl mZ d dlmZ d dlmZmZmZmZm Z m
Z
mZmZ d dl
mZ er.d dl
mZ dZded d d
ddfdd
�ZG dd� d�ZG dd� dee�ZG dd� dee�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d!d"� d"e�ZG d#d$� d$e�Z G d%d&� d&e�Z!G d'd(� d(e�Z"G d)d*� d*e�Z#G d+d,� d,e#�Z$G d-d.� d.e#�Z%G d/d0� d0e#�Z&G d1d2� d2e#�Z'G d3d4� d4e#�Z(G d5d6� d6e#�Z)G d7d8� d8e#�Z*G d9d:� d:e�Z+G d;d<� d<e�Z,G d=d>� d>e�Z-G d?d@� d@e�Z.G dAdB� dBe�Z/G dCdD� dDe/�Z0G dEdF� dFe/�Z1G dGdH� dHe/�Z2G dIdJ� dJe�Z3G dKdL� dLe�Z4G dMdN� dNe�Z5G dOdP� dPe�Z6G dQdR� dRe�Z7G dSdT� dTe�Z8G dUdV� dVe�Z9G dWdX� dXe�Z:G dYdZ� dZe�Z;G d[d\� d\e�Z<G d]d^� d^e�Z=G d_d`� d`e�Z>G dadb� dbe�Z?G dcdd� dde�Z@G dedf� dfe�ZAG dgdh� dhe�ZBG didj� dje�ZCG dkdl� dle�ZDG dmdn� dne�ZEG dodp� dpe�ZFG dqdr� dre�ZGG dsdt� dteG�ZHG dudv� dveG�ZIG dwdx� dxeG�ZJG dydz� dzeG�ZKG d{d|� d|e�ZLG d}d~� d~e�ZMG dd�� d�e�ZNG d�d�� d�e�ZOG d�d�� d�e�ZPG d�d�� d�e�ZQG d�d�� d�e�ZRG d�d�� d�e�ZSG d�d�� d�e�ZTG d�d�� d�e�ZUG d�d�� d�e�ZVG d�d�� d�e�ZWG d�d�� d�e�ZXG d�d�� d�e�ZYG d�d�� d�e�ZZG d�d�� d�e�Z[G d�d�� d�e�Z\G d�d�� d�e�Z]G d�d�� d�e�Z^G d�d�� d�e�Z_G d�d�� d�e�Z`G d�d�� d�e�ZaG d�d�� d�e�ZbG d�d�� d�e�ZcG d�d�� d�e�ZdG d�d�� d�e�ZeG d�d�� d�e�ZfG d�d�� d�e�ZgG d�d�� d�e�ZhG d�d�� d�e�ZiG d�d�� d�e�ZjG d�d�� d�e�ZkG d�d�� d�e�ZlG d�d�� d�e�ZmG d�d�� d�e�ZnG d�d d�e�ZoG d�dĄ d�e�ZpG d�dƄ d�e�ZqG d�dȄ d�e�ZrG d�dʄ d�e�ZsG d�d̄ d�e�ZtG d�d΄ d�e�ZuG d�dЄ d�e�ZvG d�d҄ d�e�Zwd�S )�� )�Decimal)�Path)�
TYPE_CHECKING�Any�Callable�Sequence�Set�Tuple�Type�Union)�display_as_type)�
DictStrAny)]�PydanticTypeError�PydanticValueError�ConfigError�MissingError�
ExtraError�NoneIsNotAllowedError�NoneIsAllowedError�WrongConstantError�NotNoneError� BoolError�
BytesError� DictError�
EmailError�UrlError�UrlSchemeError�UrlSchemePermittedError�UrlUserInfoError�UrlHostError�UrlHostTldError�UrlPortError�
UrlExtraError� EnumError�IntEnumError�EnumMemberError�IntegerError�
FloatError� PathError�PathNotExistsError�PathNotAFileError�PathNotADirectoryError�
PyObjectError�
SequenceError� ListError�SetError�FrozenSetError�
TupleError�TupleLengthError�ListMinLengthError�ListMaxLengthError�ListUniqueItemsError�SetMinLengthError�SetMaxLengthError�FrozenSetMinLengthError�FrozenSetMaxLengthError�AnyStrMinLengthError�AnyStrMaxLengthError�StrError�
StrRegexError�NumberNotGtError�NumberNotGeError�NumberNotLtError�NumberNotLeError�NumberNotMultipleError�DecimalError�DecimalIsNotFiniteError�DecimalMaxDigitsError�DecimalMaxPlacesError�DecimalWholeDigitsError�
DateTimeError� DateError�DateNotInThePastError�DateNotInTheFutureError� TimeError�
DurationError�
HashableError� UUIDError�UUIDVersionError�ArbitraryTypeError�
ClassError�
SubclassError� JsonError�
JsonTypeError�PatternError�DataclassTypeError�
CallableError�IPvAnyAddressError�IPvAnyInterfaceError�IPvAnyNetworkError�IPv4AddressError�IPv6AddressError�IPv4NetworkError�IPv6NetworkError�IPv4InterfaceError�IPv6InterfaceError�
ColorError�StrictBoolError�
NotDigitError�LuhnValidationError�InvalidLengthForBrand�InvalidByteSize�InvalidByteSizeUnit�MissingDiscriminator�InvalidDiscriminator�cls�PydanticErrorMixin�ctxr
�returnc C s | di |��S )a�
For built-in exceptions like ValueError or TypeError, we need to implement
__reduce__ to override the default behaviour (instead of __getstate__/__setstate__)
By default pickle protocol 2 calls `cls.__new__(cls, *args)`.
Since we only use kwargs, we need a little constructor to change that.
Note: the callable can't be a lambda as pickle looks in the namespace to find it
N� ro )rk rm ro ro �=/usr/local/lib/python3.10/dist-packages/pydantic/v1/errors.py�
cls_kwargsl s rq c @ sd e Zd ZU eed<