관리-도구
편집 파일: tools.cpython-38.pyc
U /?�f � @ s& d dl mZ d dlZd dlZd dlmZmZmZmZm Z m Z d dlmZ ddl mZmZ ddlmZ ddlmZ esxeZd Ze eeee gef f Ze d �Zeddd�d!d ddd d�dd��Zeddd�ddeed�ddddddd�dd��Zeddd�ddeed�dddddddd�dd ��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�Q`parse_obj_as` is deprecated. Use `pydantic.TypeAdapter.validate_python` instead.)�categoryztype[T]r zNameFactory | None)�type_�obj� type_name�returnc C s6 t jdtdd� |d k r(t jdtdd� t| ��|�S )Nr r �r � stacklevelzVThe type_name parameter is deprecated. parse_obj_as no longer creates temporary models�r )�warnings�warnr �DeprecationWarningr Zvalidate_python)r r r � r �G/opt/hc_python/lib/python3.8/site-packages/pydantic/deprecated/tools.pyr s ��r �J`schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead.T��title�by_alias�ref_template�schema_generator�bool�strztype[GenerateJsonSchema]zdict[str, Any])r r# r$ r% r&