PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/hc_python/lib/python3.12/site-packages/pydantic/deprecated/__pycache__/
Upload File :
Current File : //opt/hc_python/lib/python3.12/site-packages/pydantic/deprecated/__pycache__/tools.cpython-312.pyc

�

���g
��`�ddlmZddlZddlZddlmZmZmZmZm	Z	m
Z
ddlmZddl
mZmZddlmZddlmZeseZd	Ze
eeeegeffZe	d
�Zedd��ddd
��Zedd��ddeed�											dd��Zedd��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��tjdtd��|�tjdtd��t	|�j|�S)Nrr�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.pyrrsN��

�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��tjdtd��t|�j	|||��}|�>t|t�r||d<|Stjdtd��||�|d<|S)zSGenerate a JSON schema (as dict) for the passed model or dynamically generated one.r#rr)r&r(r'r%zRPassing a callable for the `title` parameter is deprecated and no longer supportedr)rrrr�json_schema�
isinstance�strr)rr%r&r'r(�ress      r!rr-s���
�M�M�T�*���
�e�
�
(�
(��)�!�)��C�

���e�S�!� �C��L��J�

�M�M�d�"��
�
!��<�C��L��Jr"�O`schema_json_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead.c	��tjdtd��tjt|||||��fi|��S)zSGenerate a JSON schema (as JSON) for the passed model or dynamically generated one.r.rrr$)rrr�json�dumpsr)rr%r&r'r(�dumps_kwargss      r!rrQsE��
�M�M�Y�*���
�:�:��%�u�x�l�eu�v��
��r")N)rztype[T]rrr �NameFactory | None�returnr)rrr%r3r&�boolr'r,r(�type[GenerateJsonSchema]r4zdict[str, Any])rrr%r3r&r5r'r,r(r6r2rr4r,)�
__future__rr0r�typingrrrrrr	�typing_extensionsr
r*rr
�type_adapterrrr�__all__r,�NameFactoryrrrr�r"r!�<module>r>sR��"���E�E�(�B�&�0��3��
7���C��4��9�+�s�"2�3�3�4���C�L���W�
��3�	�3��P�
��!%��,�1C�
������	�
��/�
���	��@�U�
��!%��,�1C�
������	�
��/�
���	��	�r"

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic