OwlCyberSecurity - MANAGER
Edit File: tools.cpython-312.pyc
� ԓ�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<