Your IP : 3.145.106.176


Current Path : /opt/alt/python39/lib64/python3.9/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/__pycache__/_collections_abc.cpython-39.opt-2.pyc

a

R�f�r�@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>Gd4d5�d5ed�Z?Gd6d7�d7e<�Z@e@�2eA�Gd8d9�d9e@�ZBeB�2e�Gd:d;�d;e<�ZCeC�2e'�Gd<d=�d=e:�ZDGd>d?�d?eDe@�ZEeE�2e#�Gd@dA�dAeDe@�ZFeF�2e%�GdBdC�dCeDe<�ZGeG�2e$�GdDdE�dEeC�ZHeH�2eI�GdFdG�dGe8e<�ZJeJ�2eK�eJ�2eL�eJ�2e�eJ�2eM�GdHdI�dIeJ�ZNeN�2eO�eN�2e�GdJdK�dKeJ�ZPeP�2e�eP�2e�dS)L�)�ABCMeta�abstractmethodN.cCsdS�N�rrr�5/opt/alt/python39/lib64/python3.9/_collections_abc.py�_f�r)�	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.abcr�i��rccsdVSrrrrrr�<lambda>>rr$c�sdSrrrrrr�_coro@rr%cCs
dVdSrrrrrr�_agFrr&cGsN|j}|D]>}|D],}||jvr|j|dur:tSq
qtSq
dS)NT)�__mro__�__dict__�NotImplemented)�C�methods�mro�method�Brrr�_check_methodsNs

r/c@s(eZdZdZedd��Zedd��ZdS)rrcCsdS�Nrr��selfrrr�__hash__^szHashable.__hash__cCs|turt|d�StS)Nr3)rr/r)��clsr*rrr�__subclasshook__bs
zHashable.__subclasshook__N)�__name__�
__module__�__qualname__�	__slots__rr3�classmethodr6rrrrrZs

r)�	metaclassc@s0eZdZdZedd��Zedd��Zee�Z	dS)r	rccs
dVdSrrr1rrr�	__await__mszAwaitable.__await__cCs|turt|d�StS)Nr=)r	r/r)r4rrrr6qs
zAwaitable.__subclasshook__N)
r7r8r9r:rr=r;r6�GenericAlias�__class_getitem__rrrrr	is

r	c@s>eZdZdZedd��Zeddd��Zdd�Zed	d
��Z	dS)r
rcCst�dSr��
StopIteration�r2�valuerrr�send~szCoroutine.sendNcCs4|dur|dur|�|�}|dur,|�|�}|�dSr��with_traceback�r2�typ�val�tbrrr�throw�s
zCoroutine.throwc	Cs2z|�t�Wnttfy$Yn
0td��dS)Nzcoroutine ignored GeneratorExit�rK�
GeneratorExitrA�RuntimeErrorr1rrr�close�s
zCoroutine.closecCs|turt|dddd�StS)Nr=rDrKrO)r
r/r)r4rrrr6�szCoroutine.__subclasshook__)NN)
r7r8r9r:rrDrKrOr;r6rrrrr
zs

r
c@s0eZdZdZedd��Zedd��Zee�Z	dS)rrcCst�Sr)rr1rrr�	__aiter__�szAsyncIterable.__aiter__cCs|turt|d�StS)NrP)rr/r)r4rrrr6�s
zAsyncIterable.__subclasshook__N)
r7r8r9r:rrPr;r6r>r?rrrrr�s

rc@s0eZdZdZedd��Zdd�Zedd��ZdS)	rrc�st�dSr��StopAsyncIterationr1rrr�	__anext__�szAsyncIterator.__anext__cCs|Srrr1rrrrP�szAsyncIterator.__aiter__cCs|turt|dd�StS)NrSrP)rr/r)r4rrrr6�szAsyncIterator.__subclasshook__N)	r7r8r9r:rrSrPr;r6rrrrr�s
rc@sFeZdZdZdd�Zedd��Zed
dd��Zd	d
�Ze	dd��Z
dS)r
rc�s|�d�IdHSr)�asendr1rrrrS�szAsyncGenerator.__anext__c�st�dSrrQrBrrrrT�szAsyncGenerator.asendNc�s4|dur|dur|�|�}|dur,|�|�}|�dSrrErGrrr�athrow�s
zAsyncGenerator.athrowc	�s8z|�t�IdHWnttfy*Yn
0td��dS)Nz,asynchronous generator ignored GeneratorExit)rUrMrRrNr1rrr�aclose�s
zAsyncGenerator.aclosecCs|turt|ddddd�StS)NrPrSrTrUrV)r
r/r)r4rrrr6�s
�zAsyncGenerator.__subclasshook__)NN)r7r8r9r:rSrrTrUrVr;r6rrrrr
�s

r
c@s0eZdZdZedd��Zedd��Zee�Z	dS)rrccsdSrrr1rrr�__iter__szIterable.__iter__cCs|turt|d�StS)NrW)rr/r)r4rrrr6s
zIterable.__subclasshook__N)
r7r8r9r:rrWr;r6r>r?rrrrr�s

rc@s0eZdZdZedd��Zdd�Zedd��ZdS)	rrcCst�dSrr@r1rrr�__next__szIterator.__next__cCs|Srrr1rrrrWszIterator.__iter__cCs|turt|dd�StS)NrWrX)rr/r)r4rrrr6szIterator.__subclasshook__N)	r7r8r9r:rrXrWr;r6rrrrrs
rc@s(eZdZdZedd��Zedd��ZdS)rrccsdSrrr1rrr�__reversed__6szReversible.__reversed__cCs|turt|dd�StS)NrYrW)rr/r)r4rrrr6;szReversible.__subclasshook__N)r7r8r9r:rrYr;r6rrrrr2s

rc@sFeZdZdZdd�Zedd��Zed
dd��Zd	d
�Ze	dd��Z
dS)rrcCs
|�d�Sr)rDr1rrrrXFszGenerator.__next__cCst�dSrr@rBrrrrDLszGenerator.sendNcCs4|dur|dur|�|�}|dur,|�|�}|�dSrrErGrrrrKSs
zGenerator.throwc	Cs2z|�t�Wnttfy$Yn
0td��dS)Nzgenerator ignored GeneratorExitrLr1rrrrO`s
zGenerator.closecCs|turt|ddddd�StS)NrWrXrDrKrO)rr/r)r4rrrr6js
�zGenerator.__subclasshook__)NN)r7r8r9r:rXrrDrKrOr;r6rrrrrBs

rc@s(eZdZdZedd��Zedd��ZdS)rrcCsdSr0rr1rrr�__len__ysz
Sized.__len__cCs|turt|d�StS)NrZ)rr/r)r4rrrr6}s
zSized.__subclasshook__N)r7r8r9r:rrZr;r6rrrrrus

rc@s0eZdZdZedd��Zedd��Zee�Z	dS)rrcCsdS�NFr)r2�xrrr�__contains__�szContainer.__contains__cCs|turt|d�StS)Nr])rr/r)r4rrrr6�s
zContainer.__subclasshook__N)
r7r8r9r:rr]r;r6r>r?rrrrr�s

rc@seZdZdZedd��ZdS)rrcCs|turt|ddd�StS)NrZrWr])rr/r)r4rrrr6�szCollection.__subclasshook__N)r7r8r9r:r;r6rrrrr�srcsLeZdZdZdd�Ze�fdd��Z�fdd�Zdd	�Z�fd
d�Z	�Z
S)�_CallableGenericAliasrc
Cs`z|�||�WStyZ}z4ddl}|�t|��d�t�t||�WYd}~Sd}~00dS)Nrz. (This will raise a TypeError in Python 3.10.))� _CallableGenericAlias__create_ga�	TypeError�warnings�warn�str�DeprecationWarningr>)r5�origin�args�excrarrr�__new__�s�z_CallableGenericAlias.__new__csXt|t�rt|�dkrtd��|\}}t|ttf�rDt|�|f}n|}t��|||�S)N�z6Callable must be used as Callable[[arg, ...], result].)�
isinstance�tuple�lenr`�list�superrh)r5rerf�t_args�t_result�ga_args��	__class__rr�__create_ga�s�z!_CallableGenericAlias.__create_gacs\t|j�dkr&|jdtur&t���Sdd�dd�|jdd�D���dt|jd��d	�S)
Nrirzcollections.abc.Callable[[z, cSsg|]}t|��qSr)�
_type_repr)�.0�arrr�
<listcomp>�rz2_CallableGenericAlias.__repr__.<locals>.<listcomp>���z], �])rl�__args__�Ellipsisrn�__repr__�joinrur1rrrrr}�s
��z_CallableGenericAlias.__repr__cCsB|j}t|�dkr|dtus6t|dd��|df}tt|ffS)Nrirry)r{rlr|rmr^r)r2rfrrr�
__reduce__�sz _CallableGenericAlias.__reduce__cs8t��|�}|j}|d}|dd�}||f}tt|�S)Nry)rn�__getitem__r{r^r)r2�item�garfrprorrrrr��sz!_CallableGenericAlias.__getitem__)r7r8r9r:rhr;r_r}rr��
__classcell__rrrrrr^�s

r^cCsbt|t�rt|�St|t�r>|jdkr,|jS|j�d|j��S|turJdSt|t�rZ|jSt|�S)N�builtins�.z...)	rjr>�repr�typer8r9r|�FunctionTyper7)�objrrrru�s



ruc@s0eZdZdZedd��Zedd��Zee�Z	dS)rrcOsdSr[r)r2rf�kwdsrrr�__call__�szCallable.__call__cCs|turt|d�StS)Nr�)rr/r)r4rrrr6�s
zCallable.__subclasshook__N)
r7r8r9r:rr�r;r6r^r?rrrrr�s

rc@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Ze	dd
��Z
dd�ZeZdd�Z
dd�ZeZdd�Zdd�Zdd�ZeZdd�ZdS)rrcCs>t|t�stSt|�t|�kr"dS|D]}||vr&dSq&dS�NFT�rjrr)rl�r2�other�elemrrr�__le__s
z
Set.__le__cCs(t|t�stSt|�t|�ko&|�|�Sr�rjrr)rlr��r2r�rrr�__lt__s
z
Set.__lt__cCs(t|t�stSt|�t|�ko&|�|�Sr)rjrr)rl�__ge__r�rrr�__gt__!s
z
Set.__gt__cCs>t|t�stSt|�t|�kr"dS|D]}||vr&dSq&dSr�r�r�rrrr�&s
z
Set.__ge__cCs(t|t�stSt|�t|�ko&|�|�Srr�r�rrr�__eq__0s
z
Set.__eq__cCs||�Srr�r5�itrrr�_from_iterable5szSet._from_iterablecs&t|t�stS���fdd�|D��S)Nc3s|]}|�vr|VqdSrr�rvrCr1rr�	<genexpr>ArzSet.__and__.<locals>.<genexpr>�rjrr)r�r�rr1r�__and__>s
zSet.__and__cCs|D]}||vrdSqdSr�r)r2r�rCrrr�
isdisjointEszSet.isdisjointcCs*t|t�stSdd�||fD�}|�|�S)Ncss|]}|D]
}|Vq
qdSrr)rv�s�errrr�OrzSet.__or__.<locals>.<genexpr>r�)r2r��chainrrr�__or__Ls
z
Set.__or__cs:t�t�s"t�t�stS|����|��fdd�|D��S)Nc3s|]}|�vr|VqdSrrr��r�rrr�Ys�zSet.__sub__.<locals>.<genexpr>�rjrrr)r�r�rr�r�__sub__Ts



zSet.__sub__cs:t|t�s"t|t�stS��|�}���fdd�|D��S)Nc3s|]}|�vr|VqdSrrr�r1rrr�as�zSet.__rsub__.<locals>.<genexpr>r�r�rr1r�__rsub__\s



zSet.__rsub__cCs2t|t�s"t|t�stS|�|�}||||BSrr�r�rrr�__xor__ds



zSet.__xor__cCs�tj}d|d}t|�}d|d}||M}|D],}t|�}|||d>AdAdN}||M}q2||d?|d?AN}|d	d
}||M}||kr�||d8}|dkr�d}|S)
Nrir"iM��r�i�M[l�4~2��i�
i��6ryi��8#)�sys�maxsizerl�hash)r2�MAX�MASK�n�hr\�hxrrr�_hashms"
z	Set._hashN)r7r8r9r:r�r�r�r�r�r;r�r��__rand__r�r��__ror__r�r�r��__rxor__r�rrrrrs$


rc@s`eZdZdZedd��Zedd��Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dS)rrcCst�dSr��NotImplementedErrorrBrrr�add�szMutableSet.addcCst�dSrr�rBrrr�discard�szMutableSet.discardcCs||vrt|��|�|�dSr)�KeyErrorr�rBrrr�remove�szMutableSet.removecCs<t|�}zt|�}Wnty,td�Yn0|�|�|Sr)�iter�nextrAr�r��r2r�rCrrr�pop�s
zMutableSet.popcCs&z|��qWnty Yn0dSr)r�r�r1rrr�clear�szMutableSet.clearcCs|D]}|�|�q|Sr)r�r�rrr�__ior__�szMutableSet.__ior__cCs||D]}|�|�q|Sr)r�r�rrr�__iand__�szMutableSet.__iand__cCsR||ur|��n<t|t�s&|�|�}|D]"}||vrB|�|�q*|�|�q*|Sr)r�rjrr�r�r�r�rrr�__ixor__�s


zMutableSet.__ixor__cCs*||ur|��n|D]}|�|�q|Sr)r�r�r�rrr�__isub__�s

zMutableSet.__isub__N)r7r8r9r:rr�r�r�r�r�r�r�r�r�rrrrr�s



rc@sReZdZdZedd��Zddd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�ZdZdS)rrcCst�dSr�r��r2�keyrrrr��szMapping.__getitem__NcCs&z
||WSty |YS0dSrr��r2r��defaultrrr�get�s
zMapping.getcCs*z||Wnty YdS0dSdSr�r�r�rrrr]�s
zMapping.__contains__cCst|�Sr)rr1rrr�keysszMapping.keyscCst|�Sr)rr1rrr�itemssz
Mapping.itemscCst|�Sr)rr1rrr�valuesszMapping.valuescCs&t|t�stSt|���t|���kSr)rjrr)�dictr�r�rrrr�s
zMapping.__eq__)N)
r7r8r9r:rr�r�r]r�r�r�r�rYrrrrr�s


rc@s0eZdZdZdd�Zdd�Zdd�Zee�Z	dS)	r��_mappingcCs
||_dSrr�)r2�mappingrrr�__init__"szMappingView.__init__cCs
t|j�Sr)rlr�r1rrrrZ%szMappingView.__len__cCs
d�|�S)Nz&{0.__class__.__name__}({0._mapping!r}))�formatr1rrrr}(szMappingView.__repr__N)
r7r8r9r:r�rZr}r;r>r?rrrrrs
rc@s,eZdZdZedd��Zdd�Zdd�ZdS)	rrcCst|�Sr��setr�rrrr�2szKeysView._from_iterablecCs
||jvSrr�r�rrrr]6szKeysView.__contains__ccs|jEdHdSrr�r1rrrrW9szKeysView.__iter__N�r7r8r9r:r;r�r]rWrrrrr.s

rc@s,eZdZdZedd��Zdd�Zdd�ZdS)	rrcCst|�Srr�r�rrrr�DszItemsView._from_iterablecCs@|\}}z|j|}Wnty*YdS0||up:||kSdSr[)r�r�)r2r�r�rC�vrrrr]HszItemsView.__contains__ccs |jD]}||j|fVqdSrr�r�rrrrWQs
zItemsView.__iter__Nr�rrrrr@s

	rc@s eZdZdZdd�Zdd�ZdS)rrcCs0|jD]$}|j|}||us$||krdSqdS�NTFr�)r2rCr�r�rrrr]]s


zValuesView.__contains__ccs|jD]}|j|VqdSrr�r�rrrrWds
zValuesView.__iter__N)r7r8r9r:r]rWrrrrrYsrc@s^eZdZdZedd��Zedd��Ze�Zefdd�Z	dd	�Z
d
d�Zddd
�Zddd�Z
dS)rrcCst�dSrr��r2r�rCrrr�__setitem__yszMutableMapping.__setitem__cCst�dSrr�r�rrr�__delitem__}szMutableMapping.__delitem__cCs>z||}Wn"ty.||jur&�|YS0||=|SdSr)r��_MutableMapping__marker)r2r�r�rCrrrr��s

zMutableMapping.popcCs@ztt|��}Wnty(td�Yn0||}||=||fSr)r�r�rAr�r�rrr�popitem�szMutableMapping.popitemcCs&z|��qWnty Yn0dSr)r�r�r1rrrr��szMutableMapping.clearcKs|t|t�r"|D]}||||<qn<t|d�rH|��D]}||||<q4n|D]\}}|||<qL|��D]\}}|||<qfdS)Nr�)rjr�hasattrr�r�)r2r�r�r�rCrrr�update�s


zMutableMapping.updateNcCs*z
||WSty$|||<Yn0|Srr�r�rrr�
setdefault�s

zMutableMapping.setdefault)r)N)r7r8r9r:rr�r��objectr�r�r�r�r�r�rrrrrls


rc@sFeZdZdZedd��Zdd�Zdd�Zdd	�Zddd
�Z	dd�Z
dS)rrcCst�dSr��
IndexError�r2�indexrrrr��szSequence.__getitem__ccs:d}z||}|V|d7}qWnty4YdS0dS�Nrr"r�)r2�ir�rrrrW�szSequence.__iter__cCs$|D]}||us||krdSqdSr�r)r2rCr�rrrr]�szSequence.__contains__ccs$ttt|���D]}||VqdSr)�reversed�rangerl)r2r�rrrrY�szSequence.__reversed__rNcCs�|dur"|dkr"tt|�|d�}|dur>|dkr>|t|�7}|}|dusR||kr�z"||}||usl||krr|WSWnty�Yq�Yn0|d7}qBt�dSr�)�maxrlr��
ValueError)r2rC�start�stopr�r�rrrr��s


zSequence.indexcst�fdd�|D��S)Nc3s"|]}|�us|�krdVqdS)r"Nr)rvr��rCrrr�rz!Sequence.count.<locals>.<genexpr>)�sumrBrr�r�count�szSequence.count)rN)r7r8r9r:rr�rWr]rYr�r�rrrrr�s


rc@seZdZdZdS)r!rN)r7r8r9r:rrrrr!
sr!c@sneZdZdZedd��Zedd��Zedd��Zdd	�Zd
d�Z	dd
�Z
dd�Zddd�Zdd�Z
dd�ZdS)r rcCst�dSrr��r2r�rCrrrr�"szMutableSequence.__setitem__cCst�dSrr�r�rrrr�&szMutableSequence.__delitem__cCst�dSrr�r�rrr�insert*szMutableSequence.insertcCs|�t|�|�dSr)r�rlrBrrr�append/szMutableSequence.appendcCs&z|��qWnty Yn0dSr)r�r�r1rrrr�3szMutableSequence.clearcCsHt|�}t|d�D].}|||d||||<|||d<qdS)Nrir")rlr�)r2r�r�rrr�reverse;szMutableSequence.reversecCs(||urt|�}|D]}|�|�qdSr)rmr�)r2r�r�rrr�extendAszMutableSequence.extendrycCs||}||=|Srr)r2r�r�rrrr�HszMutableSequence.popcCs||�|�=dSr)r�rBrrrr�PszMutableSequence.removecCs|�|�|Sr)r�)r2r�rrr�__iadd__Vs
zMutableSequence.__iadd__N)ry)r7r8r9r:rr�r�r�r�r�r�r�r�r�r�rrrrr s	



r )Q�abcrrr�r�rm�intr>�EllipsisTyperr��__all__r7r��bytes_iterator�	bytearray�bytearray_iteratorr��dict_keyiteratorr��dict_valueiteratorr��dict_itemiterator�
list_iteratorr��list_reverseiteratorr��range_iterator�longrange_iteratorr��set_iterator�str_iterator�tuple_iterator�zip�zip_iterator�	dict_keys�dict_values�
dict_itemsr(�mappingproxy�	generatorr%�	coroutinerOr&�async_generatorr/rr	r
�registerrrr
rrrrrrrr^rurr�	frozensetrrrrrrrr�rrkrc�
memoryviewr!�bytesr rrrr�<module>	s�	
)
0













0
=
P
3



T
>



	

D


?>