File: //opt/alt/python311/lib/python3.11/site-packages/jsons/__pycache__/_extra_impl.cpython-311.pyc
�
)�;f� � � � d Z ddlmZ ddlmZ ddlmZmZ defdee dee fd�Z
efd edee fd
�Zedefde d
ee de fd�� � Z
dS )z�
PRIVATE MODULE: do not import (from) it directly.
This module contains implementations that do not directly touch the core of
jsons.
� )�Optional)�cached)�StateHolder�get_class_nameT�do_suppress� fork_instc � � | |_ dS )z�
Suppress (or stop suppressing) warnings altogether.
:param do_suppress: if ``True``, warnings will be suppressed from now on.
:param fork_inst: if given, it uses this fork of ``JsonSerializable``.
:return: None.
N)�_suppress_warnings)r r s �D/opt/alt/python311/lib/python3.11/site-packages/jsons/_extra_impl.py�suppress_warningsr
s � � $/�I� � � � �codec �( � |xj | hz c_ dS )a
Suppress a specific warning that corresponds to the given code (see the
warning).
:param code: the code of the warning that is to be suppressed.
:param fork_inst: if given, it uses this fork of ``JsonSerializable``.
:return: None.
N)�_suppressed_warnings)r r s r �suppress_warningr s � � �"�"�t�f�,�"�"�"�"r
N�cls�cls_namec �T � |pt | d�� � }||j | <