Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pandas/core/indexes/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pandas/core/indexes/__pycache__/frozen.cpython-312.pyc

�

Mٜg�
��d�dZddlmZddlmZmZddlmZddlm	Z	erddl
mZGd�dee�Z
y	)
zj
frozen (immutable) data structures to support MultiIndexing

These are used for:

- .names (FrozenList)

�)�annotations)�
TYPE_CHECKING�NoReturn)�PandasObject��pprint_thing)�Selfc���eZdZdZd
�fd�Zd
d�ZexZZ�fd�Zdd�Z	d�fd�Z
e
Zd�fd�ZeZ
d�Zdd	�Zdd
�Zdd�Zdd�ZexZZexZZexZxZZexZxZZ�xZS)�
FrozenListz�
    Container that doesn't allow setting item *but*
    because it's technically hashable, will be used
    for lookups, appropriately, etc.
    c�v��t|t�rt|�}t|�t�|�|��S)aF
        Returns a FrozenList with other concatenated to the end of self.

        Parameters
        ----------
        other : array-like
            The array-like whose elements we are concatenating.

        Returns
        -------
        FrozenList
            The collection difference between self and other.
        )�
isinstance�tuple�list�type�super�__add__��self�other�	__class__s  ��E/usr/local/lib/python3.12/site-packages/pandas/core/indexes/frozen.py�unionzFrozenList.union"s2����e�U�#���K�E��t�D�z�%�'�/�%�0�1�1�c�l�t|�}|D�cgc]	}||vs�|��}}t|�|�Scc}w)aF
        Returns a FrozenList with elements from other removed from self.

        Parameters
        ----------
        other : array-like
            The array-like whose elements we are removing self.

        Returns
        -------
        FrozenList
            The collection difference between self and other.
        )�setr)rr�x�temps    r�
differencezFrozenList.difference4s=���E�
���2�4�a�1�E�>��4��2��t�D�z�$����3s�	1�1c�~��t|t�rt|�t�|�|��St�|�|�S�N)r
�slicerr�__getitem__)r�nrs  �rr"zFrozenList.__getitem__Ls8����a����4��:�e�g�1�!�4�5�5��w�"�1�%�%rc�r�t|t�rt|�}t|�|t|�z�Sr )r
rrr)rrs  r�__radd__zFrozenList.__radd__Qs/���e�U�#���K�E��t�D�z�%�$�t�*�,�-�-rc�d��t|ttf�rt|�}t�|�|�Sr )r
rrrr�__eq__rs  �rr'zFrozenList.__eq__Vs*����e�e�Z�0�1���K�E��w�~�e�$�$rc�@��t|�t�|�	|��Sr )rr�__mul__rs  �rr)zFrozenList.__mul__]s����t�D�z�%�'�/�%�0�1�1rc�0�t|�t|�ffSr )rr�rs r�
__reduce__zFrozenList.__reduce__bs���D�z�D��J�=�(�(rc�*�tt|��Sr )�hashrr+s r�__hash__zFrozenList.__hash__fs���E�$�K� � rc�F�tdt|�j�d���)zL
        This method will not function because object is immutable.
        �'z&' does not support mutable operations.)�	TypeErrorr�__name__)r�args�kwargss   r�	_disabledzFrozenList._disabledis$���!�D��J�/�/�0�0V�W�X�Xrc��t|dd��S)NT)�	�
�
)�
quote_strings�escape_charsrr+s r�__str__zFrozenList.__str__os���D��CU�V�Vrc�J�t|�j�dt|��d�S)N�(�))rr3�strr+s r�__repr__zFrozenList.__repr__rs$���t�*�%�%�&�a��D�	�{�!�4�4r)�returnr)rCr	)r�objectrC�bool)rC�int)rCr)rCrA)r3�
__module__�__qualname__�__doc__rrr�__iadd__r"r%r'�__req__r)�__imul__r,r/r6r=rB�__setitem__�__setslice__�__delitem__�__delslice__�pop�append�extend�remove�sort�insert�
__classcell__)rs@rrrs�����2�$ �,��G�h�&�
.�
%�
�G�2��H�)�!�Y�W�5�"+�*�K�,�!*�*�K�,�%�%�C�%�&�6�&�&�F�&�T�FrrN)rI�
__future__r�typingrr�pandas.core.baser�pandas.io.formats.printingr�pandas._typingr	rr�rr�<module>r^s2���#��
*�3��#�`'��t�`'r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists