o
    tBh                     @   sR   d dl mZ d dlmZmZmZ ddlmZ dgZedZ	G dd dee	 Z
dS )	    deepcopy)DictListTypeVar   FrozenError
FrozenListTc                   @   s   e Zd ZdZdd Zdd Zdd Zdd	 Zd
d Zdd Z	de
fddZd)ddZdedd fddZdd Zdd Zdd Zdd Zd*dd Zd!d" Zdd#d$d%d&Zd'd( ZdS )+r
   zList that can only be read, but not changed.

    .. deprecated:: 3.2
       Use tuples or lists and the Collection type instead. Will be removed in v3.3.
    c                 C      t Nr   )selfkey r   r/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/graphql/pyutils/frozen_list.py__delitem__      zFrozenList.__delitem__c                 C   r   r   r   )r   r   valuer   r   r   __setitem__   r   zFrozenList.__setitem__c                 C   s   t |tr	t|}t| |S r   )
isinstancetuplelist__add__r   r   r   r   r   r      s   
zFrozenList.__add__c                 C   r   r   r   r   r   r   r   __iadd__   r   zFrozenList.__iadd__c                 C   s   t | |S r   )r   __mul__r   r   r   r   r   !      zFrozenList.__mul__c                 C   r   r   r   r   r   r   r   __imul__$   r   zFrozenList.__imul__returnc                 C   s   t t| S r   )hashr   r   r   r   r   __hash__'   r   zFrozenList.__hash__c                 C   s   t | S r   r
   r!   r   r   r   __copy__*   s   zFrozenList.__copy__memoc                    s   t  fdd| D S )Nc                 3   s    | ]}t | V  qd S r   r   ).0r   r%   r   r   	<genexpr>.   s    z*FrozenList.__deepcopy__.<locals>.<genexpr>r#   )r   r%   r   r'   r   __deepcopy__-   s   zFrozenList.__deepcopy__c                 C   r   r   r   r   xr   r   r   append0   r   zFrozenList.appendc                 C   r   r   r   )r   iterabler   r   r   extend3   r   zFrozenList.extendc                 C   r   r   r   )r   ir+   r   r   r   insert6   r   zFrozenList.insertc                 C   r   r   r   r*   r   r   r   remove9   r   zFrozenList.removeNc                 C   r   r   r   )r   r/   r   r   r   pop<   r   zFrozenList.popc                 C   r   r   r   r!   r   r   r   clear?   r   zFrozenList.clearF)r   reversec                C   r   r   r   )r   r   r4   r   r   r   sortB   r   zFrozenList.sortc                 C   r   r   r   r!   r   r   r   r4   E   r   zFrozenList.reverse)r   r
   r   )__name__
__module____qualname____doc__r   r   r   r   r   r   intr"   r$   r   r)   r,   r.   r0   r1   r2   r3   r5   r4   r   r   r   r   r
      s&    

N)copyr   typingr   r   r   frozen_errorr	   __all__r   r
   r   r   r   r   <module>   s    