Your IP : 18.191.14.104


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/_collections_abc.cpython-310.opt-2.pyc

o

6��f~�@s�	ddlmZmZddlZeee�Zed�Zdd�Z	ee	�Z
[	gd�ZdZee
d��Zee
e���Zee
i����Zee
i����Zee
i����Zee
g��Zee
eg���Zee
ed���Zee
ed	d
>���Zee
e���Zee
d��Zee
d��Z ee
e!���Z"ei���Z#ei���Z$ei���Z%eej&�Z'ed
d���Z(dd�Z)e)�Z)ee)�Z*e)�+�[)dd�Z,e,�Z,ee,�Z-[,dd�Z.Gdd�ded�Z/Gdd�ded�Z0Gdd�de0�Z1e1�2e*�Gdd�ded�Z3Gdd�de3�Z4Gd d!�d!e4�Z5e5�2e-�Gd"d#�d#ed�Z6Gd$d%�d%e6�Z7e7�2e�e7�2e�e7�2e�e7�2e�e7�2e�e7�2e�e7�2e�e7�2e�e7�2e�e7�2e�e7�2e�e7�2e �e7�2e"�Gd&d'�d'e6�Z8Gd(d)�d)e7�Z9e9�2e(�Gd*d+�d+ed�Z:Gd,d-�d-ed�Z;Gd.d/�d/e:e6e;�Z<Gd0d1�d1e�Z=d2d3�Z>d4d5�Z?d6d7�Z@Gd8d9�d9ed�ZAGd:d;�d;e<�ZBeB�2eC�Gd<d=�d=eB�ZDeD�2e�Gd>d?�d?e<�ZEeE�2e'�Gd@dA�dAe:�ZFGdBdC�dCeFeB�ZGeG�2e#�GdDdE�dEeFeB�ZHeH�2e%�GdFdG�dGeFe<�ZIeI�2e$�GdHdI�dIeE�ZJeJ�2eK�GdJdK�dKe8e<�ZLeL�2eM�eL�2eN�eL�2e�eL�2eO�GdLdM�dMeL�ZPeP�2eQ�eP�2e�GdNdO�dOeL�ZReR�2e�eR�2e�dS)P�)�ABCMeta�abstractmethodN.cCsdS�N�rrr�7/opt/alt/python310/lib64/python3.10/_collections_abc.py�_fsr)�	Awaitable�	Coroutine�
AsyncIterable�
AsyncIterator�AsyncGenerator�Hashable�Iterable�Iterator�	Generator�
Reversible�Sized�	Container�Callable�
Collection�Set�
MutableSet�Mapping�MutableMapping�MappingView�KeysView�	ItemsView�
ValuesView�Sequence�MutableSequence�
ByteStringzcollections.abc��i��rccs�dVSrrrrrr�<lambda>>s�r$c�s�dSrrrrrr�_coro@s�r%cCs�dVdSrrrrrr�_agFs�
r&cGsN|j}|D]}|D]}||jvr|j|durtSnq	tSqdS)NT)�__mro__�__dict__�NotImplemented)�C�methods�mro�method�Brrr�_check_methodsNs
��r/c@�(eZdZdZedd��Zedd��ZdS)r
rcC�dS�Nrr��selfrrr�__hash__^�zHashable.__hash__cC�|tur	t|d�StS)Nr5)r
r/r)��clsr*rrr�__subclasshook__b�
zHashable.__subclasshook__N)�__name__�
__module__�__qualname__�	__slots__rr5�classmethodr:rrrrr
Z�
r
)�	metaclassc@�0eZdZdZedd��Zedd��Zee�Z	dS)rrccs�dVdSrrr3rrr�	__await__ms�
zAwaitable.__await__cCr7)NrD)rr/r)r8rrrr:qr;zAwaitable.__subclasshook__N)
r<r=r>r?rrDr@r:�GenericAlias�__class_getitem__rrrrri�

rc@s>eZdZdZedd��Zeddd��Zdd�Zed	d
��Z	dS)r	rcC�	t�r��
StopIteration�r4�valuerrr�send~�zCoroutine.sendNcC�2	|dur|dur|�|�}|dur|�|�}|�r��with_traceback�r4�typ�val�tbrrr�throw��
zCoroutine.throwc	C�0	z
|�t�Wtd��ttfyYdSw)Nzcoroutine ignored GeneratorExit�rV�
GeneratorExitrJ�RuntimeErrorr3rrr�close����zCoroutine.closecCs|turt|dddd�StS)NrDrMrVr\)r	r/r)r8rrrr:�szCoroutine.__subclasshook__�NN)
r<r=r>r?rrMrVr\r@r:rrrrr	zs

r	c@rC)r
rcCst�Sr)rr3rrr�	__aiter__�szAsyncIterable.__aiter__cCr7)Nr_)r
r/r)r8rrrr:�r;zAsyncIterable.__subclasshook__N)
r<r=r>r?rr_r@r:rErFrrrrr
�rGr
c@�0eZdZdZedd��Zdd�Zedd��ZdS)	rrc���	t�r��StopAsyncIterationr3rrr�	__anext__�s�zAsyncIterator.__anext__cC�|Srrr3rrrr_��zAsyncIterator.__aiter__cC�|tur
t|dd�StS)Nrdr_)rr/r)r8rrrr:��zAsyncIterator.__subclasshook__N)	r<r=r>r?rrdr_r@r:rrrrr��
rc@�FeZdZdZdd�Zedd��Zed
dd��Zd	d
�Ze	dd��Z
dS)rrc�s�	|�d�IdHSr)�asendr3rrrrd�s�zAsyncGenerator.__anext__c�rarrbrKrrrrk�s�zAsyncGenerator.asendNc�s4�	|dur|dur|�|�}|dur|�|�}|�rrPrRrrr�athrow�s�
zAsyncGenerator.athrowc	�s8�	z
|�t�IdHWtd��ttfyYdSw)Nz,asynchronous generator ignored GeneratorExit)rlrZrcr[r3rrr�aclose�s���zAsyncGenerator.aclosecC�|tur
t|ddddd�StS)Nr_rdrkrlrm)rr/r)r8rrrr:��
�zAsyncGenerator.__subclasshook__r^)r<r=r>r?rdrrkrlrmr@r:rrrrr��

rc@rC)rrcc��dSrrr3rrr�__iter__��zIterable.__iter__cCr7)Nrr)rr/r)r8rrrr:r;zIterable.__subclasshook__N)
r<r=r>r?rrrr@r:rErFrrrrr�s

rc@r`)	rrcCrHrrIr3rrr�__next__�zIterator.__next__cCrerrr3rrrrrrfzIterator.__iter__cCrg)Nrrrt)rr/r)r8rrrr:rhzIterator.__subclasshook__N)	r<r=r>r?rrtrrr@r:rrrrrrirc@r0)rrccrqrrr3rrr�__reversed__6rszReversible.__reversed__cCrg)Nrvrr)rr/r)r8rrrr:;rhzReversible.__subclasshook__N)r<r=r>r?rrvr@r:rrrrr2s
rc@rj)rrcCs	|�d�Sr)rMr3rrrrtFs
zGenerator.__next__cCrHrrIrKrrrrMLrNzGenerator.sendNcCrOrrPrRrrrrVSrWzGenerator.throwc	CrX)Nzgenerator ignored GeneratorExitrYr3rrrr\`r]zGenerator.closecCrn)NrrrtrMrVr\)rr/r)r8rrrr:jrozGenerator.__subclasshook__r^)r<r=r>r?rtrrMrVr\r@r:rrrrrBrprc@r0)rrcCr1r2rr3rrr�__len__yr6z
Sized.__len__cCr7)Nrw)rr/r)r8rrrr:}r;zSized.__subclasshook__N)r<r=r>r?rrwr@r:rrrrrurArc@rC)rrcCr1�NFr)r4�xrrr�__contains__�r6zContainer.__contains__cCr7)Nrz)rr/r)r8rrrr:�r;zContainer.__subclasshook__N)
r<r=r>r?rrzr@r:rErFrrrrr�rGrc@seZdZdZedd��ZdS)rrcCs|turt|ddd�StS)Nrwrrrz)rr/r)r8rrrr:�szCollection.__subclasshook__N)r<r=r>r?r@r:rrrrr�srcsJeZdZ	dZ�fdd�Zedd��Z�fdd�Zdd	�Zd
d�Z	�Z
S)�_CallableGenericAliasrcsft|t�rt|�dkstd��|\}}t|t�r g|�|�R}nt|�s+td|����t��|||�S)N�z6Callable must be used as Callable[[arg, ...], result].�FExpected a list of types, an ellipsis, ParamSpec, or Concatenate. Got )�
isinstance�tuple�len�	TypeError�list�_is_param_expr�super�__new__)r9�origin�args�t_args�t_result��	__class__rrr��s�
�z_CallableGenericAlias.__new__cCsjg}|jD](}t|t�rt|t�sqt|d�r$t|jt�r$|�|j�qt|�r-|�	|�qtt
�|��S)N�__parameters__)�__args__r~�typerE�hasattrr�r�extend�_is_typevarlike�append�dict�fromkeys)r4�params�argrrrr��s

�z$_CallableGenericAlias.__parameters__cs\t|j�dkrt|jd�rt���Sdd�dd�|jdd�D���dt|jd��d	�S)
Nr|rzcollections.abc.Callable[[z, cSsg|]}t|��qSr)�
_type_repr)�.0�arrr�
<listcomp>�sz2_CallableGenericAlias.__repr__.<locals>.<listcomp>���z], �])r�r�r�r��__repr__�joinr�r3r�rrr��s
��z_CallableGenericAlias.__repr__cCsB|j}t|�dkrt|d�st|dd��|df}tt|ffS)Nr|rr�)r�r�r�r�r{r)r4r�rrr�
__reduce__�sz _CallableGenericAlias.__reduce__c
	s�t|j�}|dkrt|�d���t|t�s|f}|dkr0t|jd�r0|r0t|d�s0t|�f}t|�}||krNtd||kr@dnd�d|�d|�d	|����tt|j|���g}|j	D]^}t|t
�rmt|t�sm|�|�q[t
|�r�t|�r��|}t|�s�td
|����n$�|}nt|d�r�t|jt�r�|j}|r�t�fdd
�|D��}||}t|t�r�|�|�q[|�|�q[t|dt�s�|d}|dd�}	|	|f}ttt|��S)Nrz is not a generic classr"zToo �many�fewz arguments for z	; actual z, expected r}r�c3s�|]}�|VqdSrr)r�ry��substrr�	<genexpr>�s�z4_CallableGenericAlias.__getitem__.<locals>.<genexpr>r�)r�r�r�r~rr�r�r��zipr�r�rEr�r�r�r�r{r)
r4�item�	param_len�item_len�new_argsr��	subparams�subargsr�r�rr�r�__getitem__�s`

�
�
���

��

z!_CallableGenericAlias.__getitem__)r<r=r>r?r��propertyr�r�r�r��
__classcell__rrr�rr{�s	

r{cCst|�}|jdko
|jdvS)N�typing>�	ParamSpec�TypeVar)r�r=r<)r��objrrrr�	s
�r�csH	�turdSt�t�rdSt���d}�jdko#t�fdd�|D��S)NT)r��_ConcatenateGenericAliasr�c3s�|]}�j|kVqdSr)r<)r��name�r�rrr�s�z!_is_param_expr.<locals>.<genexpr>)�Ellipsisr~r�r�r=�any)r��namesrr�rr�s
 r�cCsd	t|t�r
t|�St|t�r |jdkr|jS|j�d|j��S|tur&dSt|t�r.|jSt|�S)N�builtins�.z...)	r~rE�reprr�r=r>r��FunctionTyper<r�rrrr�s



r�c@rC)rrcOr1rxr)r4r��kwdsrrr�__call__2r6zCallable.__call__cCr7)Nr�)rr/r)r8rrrr:6r;zCallable.__subclasshook__N)
r<r=r>r?rr�r@r:r{rFrrrrr.rGrc@s�eZdZ	dZdd�Zdd�Zdd�Zdd	�Zd
d�Ze	dd
��Z
dd�ZeZdd�Z
dd�ZeZdd�Zdd�Zdd�ZeZdd�ZdS)rrcCs>t|t�stSt|�t|�krdS|D]	}||vrdSqdS�NFT�r~rr)r��r4�other�elemrrr�__le__O�
�z
Set.__le__cCs(t|t�stSt|�t|�ko|�|�Sr�r~rr)r�r��r4r�rrr�__lt__Y�
z
Set.__lt__cCs(t|t�stSt|�t|�ko|�|�Sr)r~rr)r��__ge__r�rrr�__gt__^r�z
Set.__gt__cCs>t|t�stSt|�t|�krdS|D]	}||vrdSqdSr�r�r�rrrr�cr�z
Set.__ge__cCs(t|t�stSt|�t|�ko|�|�Srr�r�rrr�__eq__mr�z
Set.__eq__cCs
	||�Srr�r9�itrrr�_from_iterablerszSet._from_iterablecs&t|t�stS���fdd�|D��S)Nc3s�|]	}|�vr|VqdSrr�r�rLr3rrr�~s�zSet.__and__.<locals>.<genexpr>�r~rr)r�r�rr3r�__and__{�
zSet.__and__cCs	|D]	}||vrdSqdSr�r)r4r�rLrrr�
isdisjoint�s�zSet.isdisjointcCs*t|t�stSdd�||fD�}|�|�S)Ncss�|]
}|D]}|VqqdSrr)r��s�errrr��s�zSet.__or__.<locals>.<genexpr>r�)r4r��chainrrr�__or__�s

z
Set.__or__cs:t�t�st�t�stS|����|��fdd�|D��S)Nc3��|]	}|�vr|VqdSrrr��r�rrr������zSet.__sub__.<locals>.<genexpr>�r~rrr)r�r�rr�r�__sub__��



zSet.__sub__cs:t|t�st|t�stS��|�}���fdd�|D��S)Nc3r�rrr�r3rrr��r�zSet.__rsub__.<locals>.<genexpr>r�r�rr3r�__rsub__�r�zSet.__rsub__cCs2t|t�st|t�stS|�|�}||||BSrr�r�rrr�__xor__�s



zSet.__xor__cCs�	tj}d|d}t|�}d|d}||M}|D]}t|�}|||d>AdAdN}||M}q||d?|d?AN}|d	d
}||M}||krO||d8}|dkrUd}|S)
Nr|r"iM��r�i�M[l�4~2��i�
i��6r�i��8#)�sys�maxsizer��hash)r4�MAX�MASK�n�hry�hxrrr�_hash�s$
z	Set._hashN)r<r=r>r?r�r�r�r�r�r@r�r��__rand__r�r��__ror__r�r�r��__rxor__r�rrrrrBs(



rc@sbeZdZ	dZedd��Zedd��Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dS)rrcCrHr��NotImplementedErrorrKrrr�add�ruzMutableSet.addcCrHrr�rKrrr�discard�ruzMutableSet.discardcCs 	||vr	t|��|�|�dSr)�KeyErrorr�rKrrr�remove�szMutableSet.removecCs:	t|�}zt|�}Wn
tytd�w|�|�|Sr)�iter�nextrJr�r��r4r�rLrrr�pop�s�
zMutableSet.popcC�$	z	|��qtyYdSwr)r�r�r3rrr�clear����zMutableSet.clearcCs|D]}|�|�q|Sr)r�r�rrr�__ior__�szMutableSet.__ior__cCs||D]}|�|�q|Sr)r�r�rrr�__iand__szMutableSet.__iand__cCsT||ur
|��|St|t�s|�|�}|D]}||vr"|�|�q|�|�q|Sr)r�r~rr�r�r�r�rrr�__ixor__	s	
�
zMutableSet.__ixor__cCs,||ur
|��|S|D]}|�|�q|Sr)r�r�r�rrr�__isub__s�zMutableSet.__isub__N)r<r=r>r?rr�r�r�r�r�r�r�r�rrrrrr�s



rc@sXeZdZ	dZdZedd��Zddd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�ZdZ
dS)rr�@cC�t�r�r��r4�keyrrrr�1r6zMapping.__getitem__NcCs$	z||WSty|YSwrr�r4r�defaultrrr�get5s
�zMapping.getcCs$z||WdStyYdSwr�rrrrrrz<s
��zMapping.__contains__cC�
	t|�Sr)rr3rrr�keysD�zMapping.keyscCr	r)rr3rrr�itemsHrz
Mapping.itemscCr	r)rr3rrr�valuesLrzMapping.valuescCs&t|t�stSt|���t|���kSr)r~rr)r�rr�rrrr�Pr�zMapping.__eq__r)r<r=r>r?�__abc_tpflags__rr�rrzr
rr
r�rvrrrrr$s

rc@s0eZdZdZdd�Zdd�Zdd�Zee�Z	dS)	r��_mappingcCs
||_dSrr)r4�mappingrrr�__init__^�
zMappingView.__init__cCs
t|j�Sr)r�rr3rrrrwarzMappingView.__len__cCs
d�|�S)Nz&{0.__class__.__name__}({0._mapping!r}))�formatr3rrrr�drzMappingView.__repr__N)
r<r=r>r?rrwr�r@rErFrrrrrZsrc@�,eZdZdZedd��Zdd�Zdd�ZdS)	rrcC�t|�Sr��setr�rrrr�n�zKeysView._from_iterablecCs
||jvSrrrrrrrzrrzKeysView.__contains__ccs�|jEdHdSrrr3rrrrrus�zKeysView.__iter__N�r<r=r>r?r@r�rzrrrrrrrjs
rc@r)	rrcCrrrr�rrrr��rzItemsView._from_iterablecCs<|\}}z|j|}Wn
tyYdSw||up||kSrx)rr�)r4r�rrL�vrrrrz�s�zItemsView.__contains__ccs"�|jD]
}||j|fVqdSrrrrrrrr�s�
�zItemsView.__iter__Nrrrrrr|s
	rc@s eZdZdZdd�Zdd�ZdS)rrcCs0|jD]}|j|}||us||krdSqdS�NTFr)r4rLrrrrrrz�s

�zValuesView.__contains__ccs�|jD]}|j|VqdSrrrrrrrr�s�
�zValuesView.__iter__N)r<r=r>r?rzrrrrrrr�src@s`eZdZ	dZedd��Zedd��Ze�Zefdd�Z	dd	�Z
d
d�Zddd
�Zddd�Z
dS)rrcCrrr�r4rrLrrr�__setitem__�r6zMutableMapping.__setitem__cCrrrrrrr�__delitem__�r6zMutableMapping.__delitem__cCs<	z||}Wnty||jur�|YSw||=|Sr)r��_MutableMapping__marker)r4rrrLrrrr��s
�zMutableMapping.popcCs>	ztt|��}Wn
tytd�w||}||=||fSr)r�r�rJr�rrrr�popitem�s�zMutableMapping.popitemcCr�r)r!r�r3rrrr��r�zMutableMapping.clearcKs~	t|t�r|D]}||||<qnt|d�r%|��D]}||||<qn|D]\}}|||<q'|��D]\}}|||<q4dS)Nr
)r~rr�r
r)r4r�r�rrLrrr�update�s
�
�

�zMutableMapping.updateNcCs*	z||WSty|||<Y|Swrrrrrr�
setdefault�s

�zMutableMapping.setdefault)rr)r<r=r>r?rrr�objectr r�r!r�r"r#rrrrr�s


rc@sLeZdZ	dZdZedd��Zdd�Zdd�Zd	d
�Z	dd
d�Z
dd�ZdS)rr� cCrr��
IndexError�r4�indexrrrr�r6zSequence.__getitem__ccs6�d}z
	||}|V|d7}qtyYdSw)NrTr"r&)r4�irrrrrrs���zSequence.__iter__cCs$|D]
}||us||krdSqdSrr)r4rLrrrrrzs
�zSequence.__contains__ccs&�ttt|���D]}||Vq	dSr)�reversed�ranger�)r4r*rrrrvs��zSequence.__reversed__rNcCs�	|dur|dkrtt|�|d�}|dur |dkr |t|�7}|}|dus*||krRz||}||us7||kr:|WSWn
tyEYt�w|d7}|dus*||ks*t�)Nrr")�maxr�r'�
ValueError)r4rL�start�stopr*rrrrr)#s&���zSequence.indexcs	t�fdd�|D��S)Nc3s$�|]
}|�us|�krdVqdS)r"Nr)r�r�rLrrr�<s�"z!Sequence.count.<locals>.<genexpr>)�sumrKrr1r�count:szSequence.count)rN)r<r=r>r?rrr�rrrzrvr)r3rrrrr�s


rc@seZdZ	dZdS)r rN)r<r=r>r?rrrrr Dsr c@speZdZ	dZedd��Zedd��Zedd��Zdd	�Zd
d�Z	dd
�Z
dd�Zddd�Zdd�Z
dd�ZdS)rrcCrrr&�r4r)rLrrrrYr6zMutableSequence.__setitem__cCrrr&r(rrrr]r6zMutableSequence.__delitem__cCrHrr&r4rrr�insertaruzMutableSequence.insertcCs	|�t|�|�dSr)r5r�rKrrrr�fszMutableSequence.appendcCr�r)r�r'r3rrrr�jr�zMutableSequence.clearcCsJ	t|�}t|d�D]}|||d||||<|||d<qdS)Nr|r")r�r,)r4r�r*rrr�reversers
,�zMutableSequence.reversecCs*	||ur	t|�}|D]}|�|�qdSr)r�r�)r4r
rrrrr�xs�zMutableSequence.extendr�cCs	||}||=|Srr)r4r)rrrrr�szMutableSequence.popcCs	||�|�=dSr)r)rKrrrr��szMutableSequence.removecCs|�|�|Sr)r�)r4r
rrr�__iadd__�s
zMutableSequence.__iadd__N)r�)r<r=r>r?rrrr5r�r�r6r�r�r�r7rrrrrPs 



r)S�abcrrr�r�r��intrE�EllipsisTyperr��__all__r<r��bytes_iterator�	bytearray�bytearray_iteratorr
�dict_keyiteratorr
�dict_valueiteratorr�dict_itemiterator�
list_iteratorr+�list_reverseiteratorr,�range_iterator�longrange_iteratorr�set_iterator�str_iterator�tuple_iteratorr��zip_iterator�	dict_keys�dict_values�
dict_itemsr(�mappingproxy�	generatorr%�	coroutiner\r&�async_generatorr/r
rr	�registerr
rrrrrrrrrr{r�r�r�rr�	frozensetrrrrrrrr�rr�str�
memoryviewr �bytesrrrrr�<module>s�	

)
0













0i

P
3



R
?





B

?>