HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/jsons/__pycache__/_transform_impl.cpython-311.pyc
�

)�;f�����dZddlmZmZmZmZmZddlmZddl	m
Z
ddlmZddddd�de
d	eed
eeeefgeeeffdedeed
eeeefdefd�ZdS)zt
PRIVATE MODULE: do not import (from) it directly.

This module contains functionality for loading stuff from json.
�)�Type�List�Any�Dict�Callable)�T)�dump)�loadN)�mapper�dump_cls�	dump_args�dump_kwargs�obj�clsrrr
r�returnc�p�|pg}|pi}t||g|�Ri|��}	|pd�}
|
|	��}t||fi|��S)a�
    Transform the given ``obj`` to an instance of ``cls``.

    :param obj: the object that is to be transformed into a type of ``cls``.
    :param cls: the type that ``obj`` is to be transformed into.
    :param mapper: a callable that takes the dumped dict and returns a mapped
    dict right before it is loaded into ``cls``.
    :param dump_cls: the ``cls`` parameter that is given to ``dump``.
    :param dump_args: the ``args`` parameter that is given to ``dump``.
    :param dump_kwargs: the ``kwargs`` parameter that is given to ``dump``.
    :param kwargs: any keyword arguments that are given to ``load``.
    :return: an instance of ``cls``.
    c��|S)N�)�xs �H/opt/alt/python311/lib/python3.11/site-packages/jsons/_transform_impl.py�<lambda>ztransform.<locals>.<lambda>&s��1��)r	r
)rrrrr
r�kwargs�
dump_args_�dump_kwargs_�dumped�mapper_�
dumped_mappeds            r�	transformr
sg��,��b�J��$�"�L�
�#�x�
=�*�
=�
=�
=��
=�
=�F��%���G��G�F�O�O�M��
�s�-�-�f�-�-�-r)�__doc__�typingrrrrr�jsons._common_implr�jsons._dump_implr	�jsons._load_implr
�object�str�typerrrr�<module>r(s����
3�2�2�2�2�2�2�2�2�2�2�2�2�2� � � � � � �!�!�!�!�!�!�!�!�!�!�!�!�>B��#�,0�.�.�.�
�.�
�!�W�.��$�s�C�x�.�)�4��S��>�9�:�	.�
�.���9�
.��$�s�C�x�.�)�.��.�.�.�.�.�.r