a
    “˜ë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eeegef dœ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   úR/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/pydantic/_migration.pyÚ
<dictcomp>!   s   ÿr   )Zdeep_updateZ
GetterDictZlenient_issubclassZlenient_isinstanceZis_valid_fieldZupdate_not_noneÚimport_stringZRepresentationZROOT_KEYZsmart_deepcopyZsequence_like>Ä   zpydantic:StrBytesz"pydantic.errors:ListMaxLengthErrorzpydantic.errors:UrlPortErrorzpydantic.errors:ListErrorzpydantic.typing:is_literal_typez"pydantic.errors:ArbitraryTypeErrorz"pydantic.datetime_parse:parse_timezpydantic.errors:EnumMemberErrorzpydantic:ConstrainedFloatzpydantic.errors:NotDigitErrorz&pydantic.errors:PathNotADirectoryErrorzpydantic.types:JsonWrapperz'pydantic.errors:UrlSchemePermittedErrorzpydantic.utils:ClassAttributezpydantic.types:NoneByteszpydantic.errors:BytesErrorzpydantic.errors:EmailErrorzpydantic.errors:StrictBoolErrorz!pydantic.typing:CallableGeneratorzpydantic.errors:ClassErrorz pydantic.errors:IPv6NetworkErrorzpydantic.typing:AnyClassMethodzpydantic:NoneStrBytesz$pydantic:create_model_from_typeddictzpydantic.errors:TimeErrorz#pydantic.typing:resolve_annotationszpydantic.types:NoneStrz"pydantic.utils:almost_equal_floatszpydantic.utils:get_modelzpydantic.config:prepare_configzpydantic.config:inherit_configz pydantic.errors:TupleLengthErrorzpydantic.typing:ListStrz pydantic.errors:IPv4NetworkErrorz&pydantic.errors:NumberNotMultipleErrorzpydantic:NoneStrzpydantic.typing:WithArgsTypeszpydantic.typing:get_originzpydantic.errors:UrlHostTldErrorzpydantic:NoneByteszpydantic:Protocolz%pydantic.errors:DecimalMaxDigitsErrorzpydantic.typing:StrPathzpydantic.typing:is_none_typez'pydantic.errors:FrozenSetMinLengthErrorz)pydantic.typing:update_field_forward_refsz pydantic.errors:NumberNotGeErrorzpydantic.typing:DictAnyzpydantic.types:ConstrainedStrzpydantic:ConstrainedListzpydantic.errors:UrlSchemeErrorz!pydantic.typing:AbstractSetIntStrzpydantic.errors:UrlExtraErrorz!pydantic.types:ConstrainedDecimalz pydantic.utils:DUNDER_ATTRIBUTESzpydantic.typing:DictIntStrAnyzpydantic.tools:parse_raw_asz#pydantic.types:ConstrainedFrozenSetzpydantic.typing:is_classvarzpydantic.typing:is_unionzpydantic.typing:get_sub_typeszpydantic.typing:is_typeddictzpydantic.typing:DictStrAnyzpydantic.errors:SequenceErrorz$pydantic.errors:AnyStrMaxLengthErrorzpydantic.errors:DecimalErrorz$pydantic.errors:IPvAnyInterfaceErrorzpydantic:Requiredzpydantic.typing:is_new_typezpydantic.utils:PyObjectStrz"pydantic.typing:get_all_type_hintsz pydantic.errors:NumberNotGtErrorzpydantic.errors:UUIDErrorzpydantic.errors:HashableErrorz#pydantic.errors:InvalidByteSizeUnitz'pydantic.errors:DecimalIsNotFiniteErrorzpydantic.types:NoneStrByteszpydantic.errors:DateErrorzpydantic:parse_file_asz"pydantic.typing:all_literal_valuesz"pydantic.utils:validate_field_namez pydantic.errors:NumberNotLtErrorzpydantic.errors:ColorErrorz$pydantic.errors:MissingDiscriminatorz%pydantic.errors:DateNotInThePastErrorz"pydantic.errors:WrongConstantErrorzpydantic.networks:stricturlzpydantic.typing:is_finalvarzpydantic:JsonWrapperzpydantic:ConstrainedByteszpydantic.types:ConstrainedFloatz"pydantic.errors:NoneIsAllowedErrorz'pydantic.errors:DateNotInTheFutureErrorzpydantic:ConstrainedDatezpydantic.errors:UrlErrorz pydantic.errors:IPv4AddressErrorz$pydantic.errors:InvalidDiscriminatorz pydantic.typing:NoArgAnyCallablezpydantic.errors:ConfigErrorzpydantic.errors:InvalidByteSizez&pydantic.datetime_parse:parse_durationz"pydantic.errors:PydanticValueErrorzpydantic.tools:parse_file_aszpydantic.errors:ExtraErrorz!pydantic.errors:PydanticTypeErrorzpydantic.errors:NotNoneErrorz)pydantic.typing:update_model_forward_refszpydantic.utils:in_ipythonzpydantic:ConstrainedSetz'pydantic.errors:DecimalWholeDigitsErrorz&pydantic.datetime_parse:parse_datetimez pydantic.errors:UrlUserInfoErrorzpydantic:stricturlzpydantic.errors:BoolErrorzpydantic.errors:CallableErrorz"pydantic.typing:new_type_supertypezpydantic.errors:PathErrorz"pydantic.errors:IPvAnyAddressErrorzpydantic.types:ConstrainedSetz"pydantic.errors:ListMinLengthErrorzpydantic:ConstrainedStrz%pydantic:create_model_from_namedtuplez%pydantic.errors:InvalidLengthForBrandzpydantic:ConstrainedDecimalz"pydantic.errors:DataclassTypeErrorzpydantic.errors:DateTimeErrorzpydantic.typing:ReprArgszpydantic.main:validate_modelz$pydantic.error_wrappers:ErrorWrapperzpydantic.errors:JsonErrorz"pydantic.errors:IPvAnyNetworkErrorzpydantic.errors:SubclassErrorz"pydantic.datetime_parse:parse_datezpydantic.config:get_configzpydantic.errors:IntegerErrorzpydantic.utils:path_typezpydantic.errors:SetErrorzpydantic.typing:SetStrz-pydantic.utils:get_unique_discriminator_aliaszpydantic.types:StrByteszpydantic.types:ConstrainedByteszpydantic.errors:UrlHostErrorz pydantic.typing:MappingIntStrAnyzpydantic.errors:PatternErrorzpydantic.types:ConstrainedListzpydantic:parse_raw_asz%pydantic.errors:NoneIsNotAllowedErrorzpydantic.errors:FrozenSetErrorz"pydantic.errors:IPv4InterfaceErrorz$pydantic.errors:AnyStrMinLengthErrorz pydantic.errors:UUIDVersionErrorzpydantic.errors:TupleErrorz#pydantic.errors:LuhnValidationErrorz$pydantic.errors:ListUniqueItemsErrorzpydantic.types:ConstrainedDatez!pydantic.errors:SetMinLengthErrorz9pydantic.dataclasses:create_pydantic_model_from_dataclasszpydantic.typing:typing_basezpydantic:ConstrainedIntz#pydantic.typing:evaluate_forwardrefz!pydantic.errors:PathNotAFileErrorz%pydantic.errors:DecimalMaxPlacesErrorzpydantic.errors:FloatErrorzpydantic:compiledz pydantic.typing:is_callable_typez"pydantic.errors:IPv6InterfaceErrorzpydantic.errors:IntEnumErrorzpydantic.errors:DictErrorzpydantic.typing:is_namedtuplezpydantic:ConstrainedFrozenSetzpydantic.typing:TupleGeneratorzpydantic.typing:get_argszpydantic.errors:StrErrorzpydantic.typing:display_as_typezpydantic:validate_modelzpydantic.errors:DurationErrorzpydantic.errors:EnumErrorzpydantic.errors:StrRegexErrorz$pydantic.typing:is_typeddict_specialz"pydantic.utils:is_valid_identifierzpydantic.typing:NoneTypez pydantic.errors:NumberNotLeErrorz!pydantic.errors:SetMaxLengthErrorzpydantic.errors:MissingErrorz1pydantic.utils:get_discriminator_alias_and_valuesz"pydantic.errors:PathNotExistsErrorzpydantic.typing:AnyCallablezpydantic.typing:IntStrzpydantic.errors:JsonTypeErrorzpydantic.types:ConstrainedIntz-pydantic.dataclasses:make_dataclass_validatorzpydantic.utils:ValueItemsz pydantic.errors:IPv6AddressErrorz#pydantic.dataclasses:set_validationz'pydantic.errors:FrozenSetMaxLengthErrorzpydantic.errors:PyObjectError)ÚmoduleÚreturnc                    s&   ddl m‰  ttdœ‡ ‡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                    s2  | 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 r�|t| ƒS |t	v rÊt	| }|jd	|› d|› d�tdd� |t	| ƒS |dkräˆ dt
ƒ › d�ƒ‚|tv rüˆ d	|› d�ƒ‚tjˆ j}| |v �r||  S t dˆ›d| ›�ƒ‚dS )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ÚwarningsZ_internal._validatorsr   ÚMOVED_IN_V2ÚkeysÚwarnr   ÚDEPRECATED_MOVED_IN_V2ÚREDIRECT_TO_V1r   ÚREMOVED_IN_V2ÚsysÚmodulesÚ__dict__)r   r   r   Zimport_pathZ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   Zpydantic.warningsr   Úversionr   r   r   r   r   r&   r(   r   r   r   r
   Ú<module>   s<   ùôþ I