관리-도구
편집 파일: _migration.cpython-311.pyc
� ���e{. � � � d dl Z d dlZd dlmZmZmZ ddlmZ ddlm Z dddd d d dd�Z d dddddddddddd�Zd� dD � � Zh d�Z dedeegef fd�ZdS )� N)�Any�Callable�Dict� )� import_string)� version_shortzpydantic.version:version_infozpydantic:ValidationErrorz#pydantic.alias_generators:to_pascalz"pydantic.alias_generators:to_camelzpydantic.types:ImportStringzpydantic.BaseModel)zpydantic.utils:version_infoz'pydantic.error_wrappers:ValidationErrorzpydantic.utils:to_camelzpydantic.utils:to_lower_camelzpydantic:PyObjectzpydantic.types:PyObjectzpydantic.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)zpydantic.tools:schema_ofzpydantic.tools:parse_obj_aszpydantic.tools:schema_json_ofzpydantic.json:pydantic_encoderzpydantic:validate_argumentsz%pydantic.json:custom_pydantic_encoderz!pydantic.json:timedelta_isoformatz%pydantic.decorator:validate_argumentsz#pydantic.class_validators:validatorz(pydantic.class_validators:root_validatorzpydantic.config:BaseConfigzpydantic.config:Extrac � � i | ]}d |� �d|� ���S )zpydantic.utils:zpydantic.v1.utils:� )�.0�objs �H/opt/cloudlinux/venv/lib/python3.11/site-packages/pydantic/_migration.py� <dictcomp>r ! s; � � � � �� �c���7�#�7�7�� � � )�deep_update� GetterDict�lenient_issubclass�lenient_isinstance�is_valid_field�update_not_noner �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 �@ � �� ddl m� dt dt f�� fd�}|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 �� �� | dk rt dt �d| ��� � ��� d| � �}|t � � � v rBt | }t j d|� d|� d�� � t t | � � S |t v rt t | � � S |t v rBt | }t j d|� d|� d �� � t t | � � S |d k r �dt � � � d�� � �|t v r �d|� d �� � �t j � j }| |v r|| S t dt �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__zmodule z has no attribute �:�`z` has been moved to `z`.z+` has been removed. We are importing from `z_` instead.See the migration guide for more details: https://docs.pydantic.dev/latest/migration/zpydantic: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�__name__�MOVED_IN_V2�keys�warnings�warnr �DEPRECATED_MOVED_IN_V2�REDIRECT_TO_V1r � REMOVED_IN_V2�sys�modules�__dict__)r� �import_path�new_location�globalsr� r� s ��r �wrapperz"getattr_migration.<locals>.wrapper s� �� � �:��� �!Q�8�!Q�!Q��!Q�!Q�R�R�R��(�(�$�(�(���+�*�*�,�,�,�,�&�{�3�L��M�P�k�P�P��P�P�P�Q�Q�Q� ��[�!9�:�:�:��0�0�0� �!7��!D�E�E�E��.�(�(�)�+�6�L��M�h�K� h� h�L� h� h� h� � � � !���!<�=�=�=��1�1�1�%�%�$�1>���$� $� $�� � � �-�'�'�%�%�&P�+�&P�&P�&P�Q�Q�Q�"%�+�f�"5�">���7�?�?��4�=� ��M�x�M�M�T�M�M�N�N�Nr )�errorsr� �str�object)r� r� r� s ` @r �getattr_migrationr� � sZ ��� � ,�+�+�+�+�+�(O�c� (O�f� (O� (O� (O� (O� (O� (O� (O�T �Nr )r� r� �typingr r r �_internal._validatorsr �versionr r� r� r� r� r� r� r r r �<module>r� s �� � � � � ���� &� &� &� &� &� &� &� &� &� &� 0� 0� 0� 0� 0� 0� "� "� "� "� "� "� $C�/I�D�%I�6�<�&:�� �� !F�#K�%O�&Q�#U�-_�)W�-_�+[�0e�"I�?� � � �� ��� � ��$E� E� E� �P7�c� 7�h��u�c�z�&:� 7� 7� 7� 7� 7� 7r