File: //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/reprlib.cpython-311.pyc
�
    !A?h=  �                   �|   � d Z g d�ZddlZddlmZ ddlmZ dd�Z G d� d	�  �        Zd
� Z	 e�   �         Z
e
j        ZdS )zGRedo the builtin repr() (representation) but with limits on most sizes.)�Repr�repr�recursive_repr�    N)�islice)�	get_ident�...c                 �   � � � fd�}|S )zGDecorator to make a repr function return fillvalue for a recursive callc                 �
  �� �� t          �   �         ���� fd�}t          � d�  �        |_        t          � d�  �        |_        t          � d�  �        |_        t          � d�  �        |_        t          � di �  �        |_        |S )Nc                 ��   �� t          | �  �        t          �   �         f}|�v r�S ��                    |�  �         	  �| �  �        }��                    |�  �         n# ��                    |�  �         w xY w|S �N)�idr   �add�discard)�self�key�result�	fillvalue�repr_running�
user_functions      ����./opt/alt/python311/lib64/python3.11/reprlib.py�wrapperz<recursive_repr.<locals>.decorating_function.<locals>.wrapper   s�   �� ��T�(�(�I�K�K�'�C��l�"�"� � ����S�!�!�!�
*�&��t�,�,���$�$�S�)�)�)�)���$�$�S�)�)�)�)�����Ms   �A �A3�
__module__�__doc__�__name__�__qualname__�__annotations__)�set�getattrr   r   r   r   r   )r   r   r   r   s   ` @�r   �decorating_functionz+recursive_repr.<locals>.decorating_function   s�   ���� ��u�u��		� 		� 		� 		� 		� 		� 		� %�]�L�A�A���!�-��;�;���"�=�*�=�=���&�}�n�E�E���")�-�9J�B�"O�"O�����    � )r   r   s   ` r   r   r   	   s$   �� �� � � � �, �r    c                   �d   � e Zd Zd� Zd� Zd� Zdd�Zd� Zd� Zd� Z	d	� Z
d
� Zd� Zd� Z
d
� Zd� Zd� ZdS )r   c                 �   � d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d S )Nr   �   �   �   �   �(   )r   �maxlevel�maxtuple�maxlist�maxarray�maxdict�maxset�maxfrozenset�maxdeque�	maxstring�maxlong�maxother)r   s    r   �__init__z
Repr.__init__&