o
    Ú­j€/  ã                   @   s˜   d dl Z d dlmZmZ d dlmZ ddlmZ dddd	d
d
ddœZdddddddddddddœZ	dd„ dD ƒZ
h d£Zdedeegef fdd „ZdS )!é    N)ÚAnyÚCallable)ÚPydanticDeprecatedSince20é   )Úversion_shortzpydantic.version:version_infozpydantic:ValidationErrorz#pydantic.alias_generators:to_pascalz"pydantic.alias_generators:to_camelzpydantic.types:ImportStringzpydantic.BaseModel)zpydantic.utils:version_infoz'pydantic.error_wrappers:ValidationErrorzpydantic.utils:to_camelzpydantic.utils:to_lower_camelzpydantic:PyObjectzpydantic.types:PyObjectzpydantic.generics:GenericModelz#pydantic.deprecated.tools:schema_ofz&pydantic.deprecated.tools:parse_obj_asz(pydantic.deprecated.tools:schema_json_ofz)pydantic.deprecated.json:pydantic_encoderz0pydantic.deprecated.decorator:validate_argumentsz0pydantic.deprecated.json:custom_pydantic_encoderz,pydantic.deprecated.json:timedelta_isoformatz.pydantic.deprecated.class_validators:validatorz3pydantic.deprecated.class_validators:root_validatorz%pydantic.deprecated.config:BaseConfigz pydantic.deprecated.config:Extra)zpydantic.tools:schema_ofzpydantic.tools:parse_obj_aszpydantic.tools:schema_json_ofzpydantic.json:pydantic_encoderzpydantic:validate_argumentsz%pydantic.json:custom_pydantic_encoderz!pydantic.json:timedelta_isoformatz%pydantic.decorator:validate_argumentsz#pydantic.class_validators:validatorz(pydantic.class_validators:root_validatorzpydantic.config:BaseConfigzpydantic.config:Extrac                 C   s   i | ]}d |› �d|› �“qS )zpydantic.utils:zpydantic.v1.utils:© )Ú.0Úobjr   r   úP/var/www/html/CropPilot/venv/lib/python3.10/site-packages/pydantic/_migration.pyÚ
<dictcomp>!   s    ÿÿr   )Údeep_updateÚ
GetterDictÚlenient_issubclassÚlenient_isinstanceÚis_valid_fieldÚupdate_not_noneÚimport_stringÚRepresentationÚROOT_KEYÚsmart_deepcopyÚsequence_like>Ä   úpydantic:NoneStrúpydantic:Protocolúpydantic:Requiredúpydantic:StrBytesúpydantic:compiledúpydantic:NoneBytesúpydantic:stricturlúpydantic:JsonWrapperúpydantic:NoneStrBytesúpydantic:parse_raw_asúpydantic.types:NoneStrúpydantic.typing:IntStrúpydantic.typing:SetStrúpydantic:parse_file_asúpydantic.types:StrBytesúpydantic.typing:DictAnyúpydantic.typing:ListStrúpydantic.typing:StrPathúpydantic:ConstrainedIntúpydantic:ConstrainedSetúpydantic:ConstrainedStrúpydantic:validate_modelúpydantic.errors:SetErrorúpydantic.errors:StrErrorúpydantic.errors:UrlErrorúpydantic.types:NoneBytesúpydantic.typing:NoneTypeúpydantic.typing:ReprArgsúpydantic.typing:get_argsúpydantic.typing:is_unionúpydantic.utils:get_modelúpydantic.utils:path_typeúpydantic:ConstrainedDateúpydantic:ConstrainedListúpydantic.errors:BoolErrorúpydantic.errors:DateErrorúpydantic.errors:DictErrorúpydantic.errors:EnumErrorúpydantic.errors:JsonErrorúpydantic.errors:ListErrorúpydantic.errors:PathErrorúpydantic.errors:TimeErrorúpydantic.errors:UUIDErrorúpydantic.utils:ValueItemsúpydantic.utils:in_ipythonúpydantic:ConstrainedBytesúpydantic:ConstrainedFloatúpydantic.config:get_configúpydantic.errors:BytesErrorúpydantic.errors:ClassErrorúpydantic.errors:ColorErrorúpydantic.errors:EmailErrorúpydantic.errors:ExtraErrorúpydantic.errors:FloatErrorúpydantic.errors:TupleErrorúpydantic.types:JsonWrapperúpydantic.typing:DictStrAnyúpydantic.typing:get_originúpydantic.utils:PyObjectStrúpydantic.errors:ConfigErrorúpydantic.networks:stricturlúpydantic.tools:parse_raw_asúpydantic.types:NoneStrBytesúpydantic.typing:AnyCallableúpydantic.typing:is_classvarúpydantic.typing:is_finalvarúpydantic.typing:is_new_typeúpydantic.typing:typing_baseúpydantic:ConstrainedDecimalúpydantic.errors:DecimalErrorúpydantic.errors:IntEnumErrorúpydantic.errors:IntegerErrorúpydantic.errors:MissingErrorúpydantic.errors:NotNoneErrorúpydantic.errors:PatternErrorúpydantic.errors:UrlHostErrorúpydantic.errors:UrlPortErrorúpydantic.main:validate_modelúpydantic.tools:parse_file_asúpydantic.typing:is_none_typeúpydantic.typing:is_typeddictúpydantic.errors:CallableErrorúpydantic.errors:DateTimeErrorúpydantic.errors:DurationErrorúpydantic.errors:HashableErrorúpydantic.errors:JsonTypeErrorúpydantic.errors:NotDigitErrorúpydantic.errors:PyObjectErrorúpydantic.errors:SequenceErrorúpydantic.errors:StrRegexErrorúpydantic.errors:SubclassErrorúpydantic.errors:UrlExtraErrorúpydantic.types:ConstrainedIntúpydantic.types:ConstrainedSetúpydantic.types:ConstrainedStrúpydantic.typing:DictIntStrAnyúpydantic.typing:WithArgsTypesúpydantic.typing:get_sub_typesúpydantic.typing:is_namedtupleúpydantic.utils:ClassAttributeúpydantic:ConstrainedFrozenSetúpydantic.config:inherit_configúpydantic.config:prepare_configúpydantic.errors:FrozenSetErrorúpydantic.errors:UrlSchemeErrorúpydantic.types:ConstrainedDateúpydantic.types:ConstrainedListúpydantic.typing:AnyClassMethodúpydantic.typing:TupleGeneratorúpydantic.errors:EnumMemberErrorúpydantic.errors:InvalidByteSizeúpydantic.errors:StrictBoolErrorúpydantic.errors:UrlHostTldErrorúpydantic.types:ConstrainedBytesúpydantic.types:ConstrainedFloatúpydantic.typing:display_as_typeúpydantic.typing:is_literal_typeú pydantic.errors:IPv4AddressErrorú pydantic.errors:IPv4NetworkErrorú pydantic.errors:IPv6AddressErrorú pydantic.errors:IPv6NetworkErrorú pydantic.errors:NumberNotGeErrorú pydantic.errors:NumberNotGtErrorú pydantic.errors:NumberNotLeErrorú pydantic.errors:NumberNotLtErrorú pydantic.errors:TupleLengthErrorú pydantic.errors:UUIDVersionErrorú pydantic.errors:UrlUserInfoErrorú pydantic.typing:MappingIntStrAnyú pydantic.typing:NoArgAnyCallableú pydantic.typing:is_callable_typeú pydantic.utils:DUNDER_ATTRIBUTESú!pydantic.errors:PathNotAFileErrorú!pydantic.errors:PydanticTypeErrorú!pydantic.errors:SetMaxLengthErrorú!pydantic.errors:SetMinLengthErrorú!pydantic.types:ConstrainedDecimalú!pydantic.typing:AbstractSetIntStrú!pydantic.typing:CallableGeneratorú"pydantic.datetime_parse:parse_dateú"pydantic.datetime_parse:parse_timeú"pydantic.errors:ArbitraryTypeErrorú"pydantic.errors:DataclassTypeErrorú"pydantic.errors:IPv4InterfaceErrorú"pydantic.errors:IPv6InterfaceErrorú"pydantic.errors:IPvAnyAddressErrorú"pydantic.errors:IPvAnyNetworkErrorú"pydantic.errors:ListMaxLengthErrorú"pydantic.errors:ListMinLengthErrorú"pydantic.errors:NoneIsAllowedErrorú"pydantic.errors:PathNotExistsErrorú"pydantic.errors:PydanticValueErrorú"pydantic.errors:WrongConstantErrorú"pydantic.typing:all_literal_valuesú"pydantic.typing:get_all_type_hintsú"pydantic.typing:new_type_supertypeú"pydantic.utils:almost_equal_floatsú"pydantic.utils:is_valid_identifierú"pydantic.utils:validate_field_nameú#pydantic.dataclasses:set_validationú#pydantic.errors:InvalidByteSizeUnitú#pydantic.errors:LuhnValidationErrorú#pydantic.types:ConstrainedFrozenSetú#pydantic.typing:evaluate_forwardrefú#pydantic.typing:resolve_annotationsú$pydantic.error_wrappers:ErrorWrapperú$pydantic.errors:AnyStrMaxLengthErrorú$pydantic.errors:AnyStrMinLengthErrorú$pydantic.errors:IPvAnyInterfaceErrorú$pydantic.errors:InvalidDiscriminatorú$pydantic.errors:ListUniqueItemsErrorú$pydantic.errors:MissingDiscriminatorú$pydantic.typing:is_typeddict_specialú$pydantic:create_model_from_typeddictú%pydantic.errors:DateNotInThePastErrorú%pydantic.errors:DecimalMaxDigitsErrorú%pydantic.errors:DecimalMaxPlacesErrorú%pydantic.errors:InvalidLengthForBrandú%pydantic.errors:NoneIsNotAllowedErrorú%pydantic:create_model_from_namedtupleú&pydantic.datetime_parse:parse_datetimeú&pydantic.datetime_parse:parse_durationú&pydantic.errors:NumberNotMultipleErrorú&pydantic.errors:PathNotADirectoryErrorú'pydantic.errors:DateNotInTheFutureErrorú'pydantic.errors:DecimalIsNotFiniteErrorú'pydantic.errors:DecimalWholeDigitsErrorú'pydantic.errors:FrozenSetMaxLengthErrorú'pydantic.errors:FrozenSetMinLengthErrorú'pydantic.errors:UrlSchemePermittedErrorú)pydantic.typing:update_field_forward_refsú)pydantic.typing:update_model_forward_refsú-pydantic.dataclasses:make_dataclass_validatorú-pydantic.utils:get_unique_discriminator_aliasú1pydantic.utils:get_discriminator_alias_and_valuesú9pydantic.dataclasses:create_pydantic_model_from_dataclassÚmoduleÚreturnc                    s(   ddl m‰  dtdtf‡ ‡fdd„}|S )zâImplement PEP 562 for objects that were either moved or removed on the migration
    to V2.

    Args:
        module: The module name.

    Returns:
        A callable that will raise an error if the object is not found.
    r   )ÚPydanticImportErrorÚnamerÜ   c                    s,  | dkrt dˆ›d| ›�ƒ‚ddl}ddlm} ˆ› d| › �}|t ¡ v r>t| }|jd	|› d
|› d�tdd� |t| ƒS |tv rH|t| ƒS |t	v ret	| }|jd	|› d|› d�tdd� |t	| ƒS |dkrrˆ dt
ƒ › d�ƒ‚|tv r~ˆ d	|› d�ƒ‚tjˆ j}| |v rŒ||  S t dˆ›d| ›�ƒ‚)zäRaise an error if the object is not found, or warn if it was moved.

        In case it was moved, it still returns the object.

        Args:
            name: The object name.

        Returns:
            The object.
        Ú__path__zmodule z has no attribute r   Nr   )r   ú:ú`z` has been moved to `z`.é   )ÚcategoryÚ
stacklevelz+` has been removed. We are importing from `z_` instead.See the migration guide for more details: https://docs.pydantic.dev/latest/migration/zpydantic:BaseSettingsz``BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/zI/migration/#basesettings-has-moved-to-pydantic-settings for more details.z` has been removed in V2.)ÚAttributeErrorÚwarningsÚ_internal._validatorsr   ÚMOVED_IN_V2ÚkeysÚwarnr   ÚDEPRECATED_MOVED_IN_V2ÚREDIRECT_TO_V1r   ÚREMOVED_IN_V2ÚsysÚmodulesÚ__dict__)rÞ   ræ   r   Úimport_pathÚnew_locationÚglobals©rÝ   rÛ   r   r
   Úwrapper  sF   ýüÿÿz"getattr_migration.<locals>.wrapper)ÚerrorsrÝ   ÚstrÚobject)rÛ   rõ   r   rô   r
   Úgetattr_migrationû   s   4rù   )rî   Útypingr   r   Úpydantic.warningsr   Úversionr   rè   rë   rì   rí   r÷   rù   r   r   r   r
   Ú<module>   s>    ùôþ  I