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/python37/lib/python3.7/site-packages/jsons/__pycache__/_fork_impl.cpython-37.pyc
B

�P�e��@sPdZddlmZmZddlmZmZmZedfeeeeeed�dd�Z	dS)zk
PRIVATE MODULE: do not import (from) it directly.

This module contains the implementation of ``fork()``.
�)�Type�Optional)�StateHolder�get_class_name�TN)�	fork_inst�name�returncCs�|jd7_|r|}nd�t|�|j�}t||fi�}|j��|_|j��|_|j��|_|j��|_d|_|j	|_	|j
��|_
|S)ah
    Fork from the given ``StateHolder`` to create a separate "branch" of
    serializers and deserializers.
    :param fork_inst: The ``StateHolder`` on which the new fork is based.
    :param name: The ``__name__`` of the new ``type``.
    :return: A "fork inst" that can be used to separately store
    (de)serializers from the regular ``StateHolder``.
    �z	{}_fork{}r)Z
_fork_counter�formatr�typeZ_classes_serializers�copyZ_classes_deserializersZ_serializersZ_deserializersZ_suppress_warningsZ_suppressed_warnings)rr�
class_name�result�r�A/opt/alt/python37/lib/python3.7/site-packages/jsons/_fork_impl.py�forksr)
�__doc__�typingrrZjsons._common_implrrr�strrrrrr�<module>s