관리-도구
편집 파일: tools.cpython-311.pyc
� ���e� � �n � d dl mZ d dlZd dlZd dlmZmZmZmZm Z m Z d dlmZ ddl mZmZ ddlmZ ddlmZ eseZd Ze eeee gef f Z e d � � Z ede�� � d$d%d�� � Z ede�� � ddeed�d&d �� � Z ed!e�� � ddeed�d'd#�� � ZdS )(� )�annotationsN)� TYPE_CHECKING�Any�Callable�Type�TypeVar�Union)� deprecated� )�DEFAULT_REF_TEMPLATE�GenerateJsonSchema)�TypeAdapter)�PydanticDeprecatedSince20)�parse_obj_as� schema_of�schema_json_of�T�Mparse_obj_as is deprecated. Use pydantic.TypeAdapter.validate_python instead.)�category�type_�type[T]�objr � type_name�NameFactory | None�returnc � � t j dt d�� � |�t j dt d�� � t | � � � |� � S )Nr r �� stacklevelzVThe type_name parameter is deprecated. parse_obj_as no longer creates temporary models)�warnings�warn�DeprecationWarningr �validate_python)r r r s �N/opt/cloudlinux/venv/lib/python3.11/site-packages/pydantic/deprecated/tools.pyr r sn � � �M�W���� � � � ��� �d��� � � � � �u���-�-�c�2�2�2� �Fschema_of is deprecated. Use pydantic.TypeAdapter.json_schema instead.T��title�by_alias�ref_template�schema_generatorr'