o
    ¡ØÆhKP  ã                   @   sò  d Z ddlZddlZddlZddlZddlmZ ddlmZm	Z	m
Z
mZmZ ddlZi Ze�d:i ddd„ g“d	d
d„ g“ddd„ dd„ g“ddd„ g“ddd„ dd„ dd„ g“ddd„ g“ddd„ g“d�d;dd„g“ddd„ dd„ dd„ g“dd d„ d!d„ �d<d$d„g“d%d&d„ g“d'd(d„ g“d)d*d„ g“d+d,d„ g“d-d.d„ g“d/�d=d0d„g“d1d2d„ g“d3d4d„ d5d„ g“d6d7d„ d8d„ g“d9d:d„ g“d;d�d>d<d„fg“d=d>d„ d?d„ d@d„ g“dAdBd„ dCd„ dDd„ g“dEd�d?dHd„fg“dIdJd„ g“dK�d@dMd„g“dNdOd„ dPd„ g“dQdRd„ dSd„ g“dTdUd„ dVd„ g“dWdXd„ g“dYdZd„ g“d[d\d„ g“d]d^d„ g“d_d`d„ g“dadbd„ dcd„ g“dd�d>ded„d�dAdgd„fg“dhdid„ g“djdkd„ g“dldmd„ g“dndod„ dpd„ g“dqdrd„ g“dsdtd„ dud„ g“dvdwd„ g“dx�d>dyd„d�dAdzd„fg“d{d|d„ g“d}dd~d„ fg“dd€d„ d�d„ g“d‚dƒd„ g“d„d…d„ g“d†d‡d„ g“dˆd‰d„ dŠd„ g“d‹�dBdŒd„g“d�dŽd„ d�d„ d�d„ g“d‘d’d„ d“d„ g“d”d•d„ d–d„ g“d—d˜d„ g“d™dšd„ g“d›dœd„ g“d�d�d>džd„fg“dŸd d„ d¡d„ g“d¢d£d„ g“d¤d¥d„ d¦d„ d§d„ g“d¨d©d„ g“dªd«d„ d¬d„ g“d­d®d„ d¯d„ g“d°d±d„ d²d„ g“d³d´d„ dµd„ g“d¶d·d„ g“d¸d¹d„ �dCd»d„g“d¼d½d„ d¾d„ g“d¿dÀd„ dÁd„ dÂd„ g“dÃdÄd„ g“dÅdÆdÇd„ dÈfg“dÉd	�dBdÊd„fg“Žee< dËd„ dÌd„ dÍd„ gee dÎ< ee jdÏd„ gdÐd„ dÑd„ �d<dÒd„gd	G�dDdÓd„fgddÔd„ dÕfddÖd„ d×fgddØd„ dÕfddÙd„ d×fgd	�dEdÛd„fgddÜd„ dÝfg�dFdßd„gdà� ddád„ dâfgee dã< eddäd„ fgdåd„ gdæd„ gdçd„ dèd„ gdé�ee< e�d:i dêd�dGdëd„fg“dìdíd„ g“dîddïd„ fg“dðddñd„ fg“dòddód„ fg“dô�dHdõd„g“död÷d„ g“dødùd„ g“dúdûd„ g“düd�dGdýd„fg“dþdÿd„ g“�d �dd„ g“�d�dd„ g“�d�dd„ �dd„ �dd„ g“�d�d	d„ g“�d
d�dd„ �dfg“�d�dd„ g“�dd�d>�dd„fg“�dd�dd„ �dfg“�dd�d>�dd„fg“�d�dd„ g“�d�dd„ g“�d�dd„ �dd„ g“�dd�dd„ �dfg“Žee< e�d:i �d�d d„ g“�d!�d"d„ g“�d#�d$d„ g“�d%�d&d„ g“�d'�d(d„ g“�d)�d*d„ g“�d+�d,d„ g“�d-�d.d„ g“�d/�d0d„ g“�d1�d2d„ g“�d3�d4d„ g“�d5�d6d„ g“�d7�d8d„ g“�d9�d:d„ g“�d;�d<d„ g“�d=�d>d„ g“�d?�d@d„ g“�dA�dBd„ g“�dC�dDd„ g“�dE�dFd„ g“�dG�dHd„ g“�dI�dJd„ g“�dK�dLd„ g“�dM�dNd„ g“�dO�dPd„ g“�dQ�dRd„ g“�dS�dTd„ g“�dU�dVd„ g“�dW�dXd„ g“�dY�dZd„ g“�d[�d\d„ g“�d]�d^d„ g“�d_�d`d„ g“�da�dbd„ g“�dc�ddd„ g“�de�dfd„ g“�dg�dhd„ g“�di�djd„ g“�dk�dld„ g“�dm�dnd„ g“�do�dpd„ g“�dq�drd„ g“�ds�dtd„ g“�du�dvd„ g“�dw�dxd„ g“�dy�dzd„ g“�d{�d|d„ g“�d}�d~d„ g“�d�d€d„ g“�d��d‚d„ g“�dƒ�d„d„ g“�d…�d†d„ g“�d‡�dˆd„ g“�d‰�dŠd„ g“d�d‹d„ g“�dŒ�d�d„ g“�dŽ�d�d„ g“�d��d‘d„ g“�d’�d“d„ g“�d”�d•d„ g“�d–�d—d„ g“�d˜�d™d„ g“�dš�d›d„ g“�dœ�d�d„ g“�dž�dŸd„ g“�d �d¡d„ g“�d¢�d£d„ g“�d¤�d¥d„ g“�d¦�d§d„ g“�d¨�d©d„ g“�dª�d«d„ g“�d¬�d­d„ g“�d®�d¯d„ g“�d°�d±d„ g“�d²�d³d„ g“�d´�dµd„ g“�d¶�d·d„ g“�d¸�d¹d„ g“�dº�d»d„ g“�d¼�d½d„ g“�d¾�d¿d„ g“�dÀ�dÁd„ g“�dÂ�dÃd„ g“�dÄ�dÅd„ g“�dÆ�dÇd„ g“�dÈ�dÉd„ g“�dÊ�dËd„ g“�dÌ�dÍd„ g“�dÎ�dÏd„ g“�dÐ�dÑd„ g“�dÒ�dÓd„ g“�dÔ�dÕd„ g“�dÖ�d×d„ g“�dØ�dÙd„ g“�dÚ�dÛd„ g“�dÜ�dÝd„ g“�dÞ�dßd„ g“�dà�dád„ g“�dâ�dãd„ �däd„ g“�då�dæd„ g“�dç�dèd„ g“�dé�dêd„ g“�dë�dìd„ g“�dí�dîd„ g“�dï�dðd„ g“�dñ�dòd„ g“�dó�dôd„ g“�dõ�död„ g“�d÷�død„ g“�dù�dúd„ g“dˆ�dûd„ g“�d�düd„ g“�dý�dþd„ g“�dÿ�d d„ g“�d�dd„ g“�d�dd„ g“�d�dd„ g“�d�dd„ g“�d	�d
d„ g“�d�dd„ g“Žee< ed�dd„ fgd�dG�dd„fgd�dI�dd„fgd�dd„ fgd�dI�dd„fg�d�e�d< ed�dd„ fgd	�dJ�dd„fg�d�e�d< �d�d„ Z�d�d„ Z�d�d„ Z�d�d„ Zi Zeef�d �d!„Z�d"�d#„ Z�d$�d%„ Z�d&�d'„ Z�d(�d)„ Z�d*�d+„ Z�d,�d-„ Z�d.�d/„ Z�d0�d1„ Z�d2�d3„ Z�d4�d5„ Z �d6�d7„ Z!�d8�d9„ Z"dS (K  a½  Internal module for better introspection of builtins.

The main functions are ``is_builtin_valid_args``, ``is_builtin_partial_args``,
and ``has_unknown_args``.  Other functions in this module support these three.

Notably, we create a ``signatures`` registry to enable introspection of
builtin functions in any Python version.  This includes builtins that
have more than one valid signature.  Currently, the registry includes
builtins from ``builtins``, ``functools``, ``itertools``, and ``operator``
modules.  More can be added as requested.  We don't guarantee full coverage.

Everything in this module should be regarded as implementation details.
Users should try to not use this module directly.
é    N)Úimport_moduleé   )Úis_partial_argsÚis_arityÚhas_varargsÚhas_keywordsÚnum_required_argsÚabsc                 C   ó   d S ©N© ©Úxr   r   ú^/var/www/html/HyperOracle/crypto_trader/venv/lib/python3.10/site-packages/toolz/_signatures.pyÚ<lambda>-   ó    r   Úallc                 C   r
   r   r   ©Úiterabler   r   r   r   /   r   Úanextc                 C   r
   r   r   )Ú	aiteratorr   r   r   r   1   r   c                 C   r
   r   r   )r   Údefaultr   r   r   r   2   r   Úanyc                 C   r
   r   r   r   r   r   r   r   4   r   Úapplyc                 C   r
   r   r   ©Úobjectr   r   r   r   6   r   c                 C   r
   r   r   )r   Úargsr   r   r   r   7   r   c                 C   r
   r   r   )r   r   Úkwargsr   r   r   r   8   r   Úasciic                 C   r
   r   r   ©Úobjr   r   r   r   :   r   Úbinc                 C   r
   r   r   ©Únumberr   r   r   r   <   r   ÚboolFc                 C   r
   r   r   r   r   r   r   r   >   r   Úbufferc                 C   r
   r   r   r   r   r   r   r   @   r   c                 C   r
   r   r   )r   Úoffsetr   r   r   r   A   r   c                 C   r
   r   r   )r   r&   Úsizer   r   r   r   B   r   Ú	bytearrayc                   C   r
   r   r   r   r   r   r   r   D   r   c                 C   r
   r   r   ©Úintr   r   r   r   E   r   Úutf8Ústrictc                 C   r
   r   r   ©ÚstringÚencodingÚerrorsr   r   r   r   F   r   Úcallablec                 C   r
   r   r   r   r   r   r   r   H   r   Úchrc                 C   r
   r   r   ©Úir   r   r   r   J   r   Úclassmethodc                 C   r
   r   r   ©Úfunctionr   r   r   r   L   r   Úcmpc                 C   r
   r   r   ©r   Úyr   r   r   r   N   r   Úcoercec                 C   r
   r   r   r9   r   r   r   r   P   r   Úcomplexc                 C   r
   r   r   )ÚrealÚimagr   r   r   r   R   r   Údelattrc                 C   r
   r   r   ©r    Únamer   r   r   r   T   r   Údictc                  K   r
   r   r   )r   r   r   r   r   V   r   c                 K   r
   r   r   )Úmappingr   r   r   r   r   W   r   Údirc                   C   r
   r   r   r   r   r   r   r   Y   r   c                 C   r
   r   r   r   r   r   r   r   Z   r   Údivmodc                 C   r
   r   r   r9   r   r   r   r   \   r   Ú	enumeratec                 C   r
   r   r   ©r   Ústartr   r   r   r   ^   r   Úevalc                 C   r
   r   r   ©Úsourcer   r   r   r   `   r   c                 C   r
   r   r   ©rK   Úglobalsr   r   r   r   a   r   c                 C   r
   r   r   ©rK   rM   Úlocalsr   r   r   r   b   r   Úexecfilec                 C   r
   r   r   )Úfilenamer   r   r   r   d   r   c                 C   r
   r   r   )rQ   rM   r   r   r   r   e   r   c                 C   r
   r   r   )rQ   rM   rO   r   r   r   r   f   r   ÚfileÚréÿÿÿÿc                 C   r
   r   r   )rA   ÚmodeÚ	bufferingr   r   r   r   h   r   Úfilterc                 C   r
   r   r   )r7   r   r   r   r   r   j   r   Úfloatç        c                 C   r
   r   r   r   r   r   r   r   l   r   Úformatc                 C   r
   r   r   )Úvaluer   r   r   r   n   r   c                 C   r
   r   r   )r[   Úformat_specr   r   r   r   o   r   Ú	frozensetc                   C   r
   r   r   r   r   r   r   r   q   r   c                 C   r
   r   r   r   r   r   r   r   r   r   Úgetattrc                 C   r
   r   r   )r   rA   r   r   r   r   t   r   c                 C   r
   r   r   )r   rA   r   r   r   r   r   u   r   rM   c                   C   r
   r   r   r   r   r   r   r   w   r   Úhasattrc                 C   r
   r   r   r@   r   r   r   r   y   r   Úhashc                 C   r
   r   r   r   r   r   r   r   {   r   Úhexc                 C   r
   r   r   r"   r   r   r   r   }   r   Úidc                 C   r
   r   r   r   r   r   r   r      r   Úinputc                   C   r
   r   r   r   r   r   r   r   �   r   c                 C   r
   r   r   ©Úpromptr   r   r   r   ‚   r   r*   c                 C   r
   r   r   r   r   r   r   r   „   r   é
   c                 C   r
   r   r   ©r   Úbaser   r   r   r   …   r   Úinternc                 C   r
   r   r   )r.   r   r   r   r   ‡   r   Ú
isinstancec                 C   r
   r   r   )r    Úclass_or_tupler   r   r   r   ‰   r   Ú
issubclassc                 C   r
   r   r   )Úclsrk   r   r   r   r   ‹   r   Úiterc                 C   r
   r   r   r   r   r   r   r   �   r   c                 C   r
   r   r   )r1   Úsentinelr   r   r   r   Ž   r   Úlenc                 C   r
   r   r   r   r   r   r   r   �   r   Úlistc                   C   r
   r   r   r   r   r   r   r   ’   r   c                 C   r
   r   r   r   r   r   r   r   “   r   rO   c                   C   r
   r   r   r   r   r   r   r   •   r   Úlongc                 C   r
   r   r   r   r   r   r   r   —   r   c                 C   r
   r   r   rg   r   r   r   r   ˜   r   Úmapc                 G   r
   r   r   ©ÚfuncÚsequenceÚ	iterablesr   r   r   r   š   r   Ú
memoryviewc                 C   r
   r   r   r   r   r   r   r   œ   r   Únextc                 C   r
   r   r   )Úiteratorr   r   r   r   ž   r   c                 C   r
   r   r   )rz   r   r   r   r   r   Ÿ   r   r   c                   C   r
   r   r   r   r   r   r   r   ¡   r   Úoctc                 C   r
   r   r   r"   r   r   r   r   £   r   Úordc                 C   r
   r   r   )Úcr   r   r   r   ¥   r   Úpowc                 C   r
   r   r   r9   r   r   r   r   §   r   c                 C   r
   r   r   )r   r:   Úzr   r   r   r   ¨   r   Úpropertyc                 C   r
   r   r   )ÚfgetÚfsetÚfdelÚdocr   r   r   r   ª   r   Úrangec                 C   r
   r   r   ©Ústopr   r   r   r   ¬   r   c                 C   r
   r   r   ©rH   r‡   r   r   r   r   ­   r   c                 C   r
   r   r   ©rH   r‡   Ústepr   r   r   r   ®   r   Ú	raw_inputc                   C   r
   r   r   r   r   r   r   r   °   r   c                 C   r
   r   r   rd   r   r   r   r   ±   r   Úreducec                 C   r
   r   r   ©r7   rv   r   r   r   r   ³   r   c                 C   r
   r   r   ©r7   rv   Úinitialr   r   r   r   ´   r   Úreloadc                 C   r
   r   r   )Úmoduler   r   r   r   ¶   r   Úreprc                 C   r
   r   r   r   r   r   r   r   ¸   r   Úreversedc                 C   r
   r   r   )rv   r   r   r   r   º   r   Úroundc                 C   r
   r   r   )r#   Úndigitsr   r   r   r   ¼   r   Úsetc                   C   r
   r   r   r   r   r   r   r   ¾   r   c                 C   r
   r   r   r   r   r   r   r   ¿   r   Úsetattrc                 C   r
   r   r   )r    rA   r[   r   r   r   r   Á   r   Úslicec                 C   r
   r   r   r†   r   r   r   r   Ã   r   c                 C   r
   r   r   rˆ   r   r   r   r   Ä   r   c                 C   r
   r   r   r‰   r   r   r   r   Å   r   Ústaticmethodc                 C   r
   r   r   r6   r   r   r   r   Ç   r   Úsumc                 C   r
   r   r   r   r   r   r   r   É   r   c                 C   r
   r   r   rG   r   r   r   r   Ê   r   Úsuperc                 C   r
   r   r   )Útyper   r   r   r   Ì   r   c                 C   r
   r   r   )rœ   r    r   r   r   r   Í   r   Útuplec                   C   r
   r   r   r   r   r   r   r   Ï   r   c                 C   r
   r   r   r   r   r   r   r   Ð   r   rœ   c                 C   r
   r   r   r   r   r   r   r   Ò   r   c                 C   r
   r   r   )rA   ÚbasesrB   r   r   r   r   Ó   r   Úunichrc                 C   r
   r   r   r3   r   r   r   r   Õ   r   Úunicodec                 C   r
   r   r   r   r   r   r   r   ×   r   Ú c                 C   r
   r   r   r-   r   r   r   r   Ø   r   Úvarsc                   C   r
   r   r   r   r   r   r   r   Ú   r   c                 C   r
   r   r   r   r   r   r   r   Û   r   Úxrangec                 C   r
   r   r   r†   r   r   r   r   Ý   r   c                 C   r
   r   r   rˆ   r   r   r   r   Þ   r   c                 C   r
   r   r   r‰   r   r   r   r   ß   r   Úzipc                  G   r
   r   r   ©rw   r   r   r   r   á   r   Ú__build_class__é   c                 O   r
   r   r   )ru   rA   rž   Úkwdsr   r   r   r   ã   r   )Ú	metaclassÚ
__import__c                 C   r
   r   r   )rA   rM   rO   ÚfromlistÚlevelr   r   r   r   å   ó   c                 C   r
   r   r   rJ   r   r   r   r   é   r   c                 C   r
   r   r   rL   r   r   r   r   ê   r   c                 C   r
   r   r   rN   r   r   r   r   ë   r   Úexecc                  O   r
   r   r   )r   Úkwsr   r   r   r   ï   r   c                   C   r
   r   r   r   r   r   r   r   ñ   r   c                 C   r
   r   r   r)   r   r   r   r   ò   r   c                 C   r
   r   r   r-   r   r   r   r   ó   r   c                 C   r
   r   r   )rK   rQ   rU   ÚflagsÚdont_inheritÚoptimizer   r   r   r   õ   r­   c                 C   r
   r   r   r   r   r   r   r   ø   r   )r   Úkeyc                 G   r
   r   r   ©Úarg1Úarg2r   r   r   r   r   ù   r   )r³   c                 C   r
   r   r   r   r   r   r   r   û   r   c                 G   r
   r   r   r´   r   r   r   r   ü   r   Tc                 C   r
   r   r   )rR   rU   rV   r/   r0   ÚnewlineÚclosefdÚopenerr   r   r   r   þ   r­   c                 C   r
   r   r   r   r   r   r   r     r   )r³   ÚreverseÚutfc                 C   r
   r   r   )r   r/   r0   r   r   r   r     r   )Ú
breakpointÚbytesÚcompileÚmaxÚminÚopenÚsortedÚstrc                  G   r
   r   r   )r   r   r   r   r     r   )ÚsepÚendrR   ÚflushÚprintc                 C   r
   r   r   )Úmycmpr   r   r   r     r   c                 O   r
   r   r   ©ru   r   r   r   r   r   r     r   c                 O   r
   r   r   rÉ   r   r   r   r     r   c                 C   r
   r   r   r�   r   r   r   r     r   c                 C   r
   r   r   rŽ   r   r   r   r     r   )Ú
cmp_to_keyÚpartialÚpartialmethodrŒ   Ú
accumulatec                 C   r
   r   r   )r   ru   r   r   r   r     r   Úchainc                  G   r
   r   r   r¥   r   r   r   r     r   Úcombinationsc                 C   r
   r   r   ©r   rS   r   r   r   r     r   Úcombinations_with_replacementc                 C   r
   r   r   rÐ   r   r   r   r     r   Úcompressc                 C   r
   r   r   )ÚdataÚ	selectorsr   r   r   r     r   Úcountc                 C   r
   r   r   )rH   rŠ   r   r   r   r   !  r   Úcyclec                 C   r
   r   r   r   r   r   r   r   #  r   Ú	dropwhilec                 C   r
   r   r   ©Ú	predicater   r   r   r   r   %  r   Úfilterfalsec                 C   r
   r   r   r�   r   r   r   r   '  r   Úgroupbyc                 C   r
   r   r   )r   r³   r   r   r   r   )  r   Úifilterc                 C   r
   r   r   r�   r   r   r   r   +  r   Úifilterfalsec                 C   r
   r   r   r�   r   r   r   r   -  r   Úimapc                 G   r
   r   r   rt   r   r   r   r   /  r   Úislicec                 C   r
   r   r   )r   r‡   r   r   r   r   1  r   c                 C   r
   r   r   )r   rH   r‡   r   r   r   r   2  r   c                 C   r
   r   r   )r   rH   r‡   rŠ   r   r   r   r   3  r   Úizipc                  G   r
   r   r   r¥   r   r   r   r   5  r   Úizip_longestc                  G   r
   r   r   r¥   r   r   r   r   7  r   )Ú	fillvalueÚpairwisec                 C   r
   r   r   r   r   r   r   r   9  r   Úpermutationsc                 C   r
   r   r   rÐ   r   r   r   r   ;  r   Úproductc                  G   r
   r   r   r¥   r   r   r   r   =  r   )Úrepeatræ   c                 C   r
   r   r   )r   Útimesr   r   r   r   ?  r   Ústarmapc                 C   r
   r   r   r�   r   r   r   r   A  r   Ú	takewhilec                 C   r
   r   r   rØ   r   r   r   r   C  r   Úteec                 C   r
   r   r   r   r   r   r   r   E  r   c                 C   r
   r   r   )r   Únr   r   r   r   F  r   Úzip_longestc                  G   r
   r   r   r¥   r   r   r   r   H  r   Ú__abs__c                 C   r
   r   r   ©Úar   r   r   r   N  r   Ú__add__c                 C   r
   r   r   ©rï   Úbr   r   r   r   P  r   Ú__and__c                 C   r
   r   r   rñ   r   r   r   r   R  r   Ú
__concat__c                 C   r
   r   r   rñ   r   r   r   r   T  r   Ú__contains__c                 C   r
   r   r   rñ   r   r   r   r   V  r   Ú__delitem__c                 C   r
   r   r   rñ   r   r   r   r   X  r   Ú__delslice__c                 C   r
   r   r   ©rï   rò   r}   r   r   r   r   Z  r   Ú__div__c                 C   r
   r   r   rñ   r   r   r   r   \  r   Ú__eq__c                 C   r
   r   r   rñ   r   r   r   r   ^  r   Ú__floordiv__c                 C   r
   r   r   rñ   r   r   r   r   `  r   Ú__ge__c                 C   r
   r   r   rñ   r   r   r   r   b  r   Ú__getitem__c                 C   r
   r   r   rñ   r   r   r   r   d  r   Ú__getslice__c                 C   r
   r   r   rø   r   r   r   r   f  r   Ú__gt__c                 C   r
   r   r   rñ   r   r   r   r   h  r   Ú__iadd__c                 C   r
   r   r   rñ   r   r   r   r   j  r   Ú__iand__c                 C   r
   r   r   rñ   r   r   r   r   l  r   Ú__iconcat__c                 C   r
   r   r   rñ   r   r   r   r   n  r   Ú__idiv__c                 C   r
   r   r   rñ   r   r   r   r   p  r   Ú__ifloordiv__c                 C   r
   r   r   rñ   r   r   r   r   r  r   Ú__ilshift__c                 C   r
   r   r   rñ   r   r   r   r   t  r   Ú__imatmul__c                 C   r
   r   r   rñ   r   r   r   r   v  r   Ú__imod__c                 C   r
   r   r   rñ   r   r   r   r   x  r   Ú__imul__c                 C   r
   r   r   rñ   r   r   r   r   z  r   Ú	__index__c                 C   r
   r   r   rî   r   r   r   r   |  r   Ú__inv__c                 C   r
   r   r   rî   r   r   r   r   ~  r   Ú
__invert__c                 C   r
   r   r   rî   r   r   r   r   €  r   Ú__ior__c                 C   r
   r   r   rñ   r   r   r   r   ‚  r   Ú__ipow__c                 C   r
   r   r   rñ   r   r   r   r   „  r   Ú__irepeat__c                 C   r
   r   r   rñ   r   r   r   r   †  r   Ú__irshift__c                 C   r
   r   r   rñ   r   r   r   r   ˆ  r   Ú__isub__c                 C   r
   r   r   rñ   r   r   r   r   Š  r   Ú__itruediv__c                 C   r
   r   r   rñ   r   r   r   r   Œ  r   Ú__ixor__c                 C   r
   r   r   rñ   r   r   r   r   Ž  r   Ú__le__c                 C   r
   r   r   rñ   r   r   r   r   �  r   Ú
__lshift__c                 C   r
   r   r   rñ   r   r   r   r   ’  r   Ú__lt__c                 C   r
   r   r   rñ   r   r   r   r   ”  r   Ú
__matmul__c                 C   r
   r   r   rñ   r   r   r   r   –  r   Ú__mod__c                 C   r
   r   r   rñ   r   r   r   r   ˜  r   Ú__mul__c                 C   r
   r   r   rñ   r   r   r   r   š  r   Ú__ne__c                 C   r
   r   r   rñ   r   r   r   r   œ  r   Ú__neg__c                 C   r
   r   r   rî   r   r   r   r   ž  r   Ú__not__c                 C   r
   r   r   rî   r   r   r   r      r   Ú__or__c                 C   r
   r   r   rñ   r   r   r   r   ¢  r   Ú__pos__c                 C   r
   r   r   rî   r   r   r   r   ¤  r   Ú__pow__c                 C   r
   r   r   rñ   r   r   r   r   ¦  r   Ú
__repeat__c                 C   r
   r   r   rñ   r   r   r   r   ¨  r   Ú
__rshift__c                 C   r
   r   r   rñ   r   r   r   r   ª  r   Ú__setitem__c                 C   r
   r   r   rø   r   r   r   r   ¬  r   Ú__setslice__c                 C   r
   r   r   ©rï   rò   r}   Údr   r   r   r   ®  r   Ú__sub__c                 C   r
   r   r   rñ   r   r   r   r   °  r   Ú__truediv__c                 C   r
   r   r   rñ   r   r   r   r   ²  r   Ú__xor__c                 C   r
   r   r   rñ   r   r   r   r   ´  r   Ú_absc                 C   r
   r   r   r   r   r   r   r   ¶  r   Ú_compare_digestc                 C   r
   r   r   rñ   r   r   r   r   ¸  r   c                 C   r
   r   r   rî   r   r   r   r   º  r   Úaddc                 C   r
   r   r   rñ   r   r   r   r   ¼  r   Úand_c                 C   r
   r   r   rñ   r   r   r   r   ¾  r   Ú
attrgetterc                 G   r
   r   r   )Úattrr   r   r   r   r   À  r   Úconcatc                 C   r
   r   r   rñ   r   r   r   r   Â  r   Úcontainsc                 C   r
   r   r   rñ   r   r   r   r   Ä  r   ÚcountOfc                 C   r
   r   r   rñ   r   r   r   r   Æ  r   Údelitemc                 C   r
   r   r   rñ   r   r   r   r   È  r   Údelslicec                 C   r
   r   r   rø   r   r   r   r   Ê  r   Údivc                 C   r
   r   r   rñ   r   r   r   r   Ì  r   Úeqc                 C   r
   r   r   rñ   r   r   r   r   Î  r   Úfloordivc                 C   r
   r   r   rñ   r   r   r   r   Ð  r   Úgec                 C   r
   r   r   rñ   r   r   r   r   Ò  r   Úgetitemc                 C   r
   r   r   rñ   r   r   r   r   Ô  r   Úgetslicec                 C   r
   r   r   rø   r   r   r   r   Ö  r   Úgtc                 C   r
   r   r   rñ   r   r   r   r   Ø  r   Úiaddc                 C   r
   r   r   rñ   r   r   r   r   Ú  r   Úiandc                 C   r
   r   r   rñ   r   r   r   r   Ü  r   Úiconcatc                 C   r
   r   r   rñ   r   r   r   r   Þ  r   Úidivc                 C   r
   r   r   rñ   r   r   r   r   à  r   Ú	ifloordivc                 C   r
   r   r   rñ   r   r   r   r   â  r   Úilshiftc                 C   r
   r   r   rñ   r   r   r   r   ä  r   Úimatmulc                 C   r
   r   r   rñ   r   r   r   r   æ  r   Úimodc                 C   r
   r   r   rñ   r   r   r   r   è  r   Úimulc                 C   r
   r   r   rñ   r   r   r   r   ê  r   Úindexc                 C   r
   r   r   rî   r   r   r   r   ì  r   ÚindexOfc                 C   r
   r   r   rñ   r   r   r   r   î  r   Úinvc                 C   r
   r   r   rî   r   r   r   r   ð  r   Úinvertc                 C   r
   r   r   rî   r   r   r   r   ò  r   Úiorc                 C   r
   r   r   rñ   r   r   r   r   ô  r   Úipowc                 C   r
   r   r   rñ   r   r   r   r   ö  r   Úirepeatc                 C   r
   r   r   rñ   r   r   r   r   ø  r   Úirshiftc                 C   r
   r   r   rñ   r   r   r   r   ú  r   Úis_c                 C   r
   r   r   rñ   r   r   r   r   ü  r   Úis_notc                 C   r
   r   r   rñ   r   r   r   r   þ  r   Ú
isCallablec                 C   r
   r   r   rî   r   r   r   r      r   ÚisMappingTypec                 C   r
   r   r   rî   r   r   r   r     r   ÚisNumberTypec                 C   r
   r   r   rî   r   r   r   r     r   ÚisSequenceTypec                 C   r
   r   r   rî   r   r   r   r     r   Úisubc                 C   r
   r   r   rñ   r   r   r   r     r   Ú
itemgetterc                 G   r
   r   r   )Úitemr   r   r   r   r   
  r   Úitruedivc                 C   r
   r   r   rñ   r   r   r   r     r   Úixorc                 C   r
   r   r   rñ   r   r   r   r     r   Úlec                 C   r
   r   r   rñ   r   r   r   r     r   Úlength_hintc                 C   r
   r   r   r   r   r   r   r     r   c                 C   r
   r   r   )r    r   r   r   r   r     r   Úlshiftc                 C   r
   r   r   rñ   r   r   r   r     r   Últc                 C   r
   r   r   rñ   r   r   r   r     r   Úmatmulc                 C   r
   r   r   rñ   r   r   r   r     r   Úmethodcallerc                 O   r
   r   r   )rA   r   r   r   r   r   r     r   Úmodc                 C   r
   r   r   rñ   r   r   r   r     r   Úmulc                 C   r
   r   r   rñ   r   r   r   r     r   Únec                 C   r
   r   r   rñ   r   r   r   r   !  r   Únegc                 C   r
   r   r   rî   r   r   r   r   #  r   Únot_c                 C   r
   r   r   rî   r   r   r   r   %  r   Úor_c                 C   r
   r   r   rñ   r   r   r   r   '  r   Úposc                 C   r
   r   r   rî   r   r   r   r   )  r   c                 C   r
   r   r   rñ   r   r   r   r   +  r   c                 C   r
   r   r   rñ   r   r   r   r   -  r   Úrshiftc                 C   r
   r   r   rñ   r   r   r   r   /  r   ÚsequenceIncludesc                 C   r
   r   r   rñ   r   r   r   r   1  r   Úsetitemc                 C   r
   r   r   rø   r   r   r   r   3  r   Úsetslicec                 C   r
   r   r   r#  r   r   r   r   5  r   Úsubc                 C   r
   r   r   rñ   r   r   r   r   7  r   Útruedivc                 C   r
   r   r   rñ   r   r   r   r   9  r   Útruthc                 C   r
   r   r   rî   r   r   r   r   ;  r   Úxorc                 C   r
   r   r   rñ   r   r   r   r   =  r   c                  O   r
   r   r   ©r   r   r   r   r   r   B  r   c                 C   r
   r   r   )Úexcru   Úhandlerr   r   r   r   D  r   c                 C   r
   r   r   )ru   rï   rò   r   r   r   r   F  r   c                  G   r
   r   r   ©Úfuncsr   r   r   r   H  r   c                 C   r
   r   r   )ru   Úcacher³   r   r   r   r   J  r   )ÚcurryÚexceptsÚflipÚjuxtÚmemoizeÚtoolzc                 C   r
   r   r   rn  r   r   r   r   O  r   c                 C   r
   r   r   )r�   r‚   rƒ   r„   Úclassvalr   r   r   r   Q  r­   )ÚComposeÚInstancePropertyztoolz.functoolzc                 C   s   t dd„ | j ¡ D ƒƒS )z@ Return the number of positional arguments.  ``f(x, y=1)`` has 1c                 s   s,   � | ]}|j |jkr|j|ju rd V  qdS )r   N)ÚkindÚPOSITIONAL_OR_KEYWORDr   Úempty©Ú.0r   r   r   r   Ú	<genexpr>X  s   € þþznum_pos_args.<locals>.<genexpr>)rš   Ú
parametersÚvalues)Úsigspecr   r   r   Únum_pos_argsV  s   rƒ  c                 C   sT   | dkrdS t dd„ |j ¡ D ƒƒ}|sdS t|j ¡ ƒd| … }tdd„ |D ƒƒS )zA Return the names of position-only arguments if func has **kwargsr   r   c                 s   s   � | ]	}|j |jkV  qd S r   )rz  ÚVAR_KEYWORDr}  r   r   r   r  a  s   € ÿz'get_exclude_keywords.<locals>.<genexpr>Nc                 s   s   � | ]}|j V  qd S r   )rA   r}  r   r   r   r  f  s   € )r   r€  r�  rq   r�   )Únum_pos_onlyr‚  Ú
has_kwargsÚpos_argsr   r   r   Úget_exclude_keywords]  s   ÿrˆ  c              	   C   s&   zt  | ¡W S  ttfy   Y d S w r   )ÚinspectÚ	signatureÚ
ValueErrorÚ	TypeError)ru   r   r   r   Úsignature_or_speci  s
   ÿr�  c                 C   s|   t | tƒr%t| ƒdkr| \}}}t | d tƒsJ ‚n| \}}d}t|ƒ}n| }t|ƒ}t|ƒ}d}t||ƒ}|||| |fS )a¿   Convert the signature spec in ``module_info`` to add to ``signatures``

    The input signature spec is one of:
        - ``lambda_func``
        - ``(num_position_args, lambda_func)``
        - ``(num_position_args, lambda_func, keyword_only_args)``

    The output signature spec is:
        ``(num_position_args, lambda_func, keyword_exclude, sigspec)``

    where ``keyword_exclude`` includes keyword only arguments and, if variadic
    keywords is present, the names of position-only argument.  The latter is
    included to support builtins such as ``partial(func, *args, **kwargs)``,
    which allows ``func=`` to be used as a keyword even though it's the name
    of a positional argument.
    é   rT   r   )rj   r�   rp   r�  rƒ  rˆ  )Úsigr…  ru   Úkeyword_onlyr‚  Úkeyword_excluder   r   r   Ú
expand_sigp  s   



r’  c                 C   sd   |   ¡ D ]+\}}t|tƒrt|ƒ}|  ¡ D ]\}}t||ƒr.tdd„ |D ƒƒ}||t||ƒ< qqd S )Nc                 s   s   � | ]}t |ƒV  qd S r   )r’  ©r~  r�  r   r   r   r  ›  ó   € z,create_signature_registry.<locals>.<genexpr>)Úitemsrj   rÃ   r   r_   r�   r^   )Úmodule_infoÚ
signaturesr‘   ÚinforA   ÚsigsÚnew_sigsr   r   r   Úcreate_signature_registry•  s   

€ýýr›  c                 C   sh   | \}}}}t |ƒ|k rdS |rt|ƒ}|D ]}| |d¡ qz
||i |¤Ž W dS  ty3   Y dS w )z4 Like ``is_valid_args`` for the given signature specFNT)rp   rB   ÚpoprŒ  )r�  r   r   r…  ru   r‘  r‚  rS  r   r   r   Úcheck_validŸ  s   ÿr�  c                    ó,   | t vrdS t |  }t‡ ‡fdd„|D ƒƒS )zC Like ``is_valid_args`` for builtins in our ``signatures`` registryNc                 3   ó   � | ]	}t |ˆ ˆƒV  qd S r   )r�  r“  rk  r   r   r  ´  ó   € z!_is_valid_args.<locals>.<genexpr>©r—  r   ©ru   r   r   r™  r   rk  r   Ú_is_valid_args¯  ó   r£  c           	      C   s`   | \}}}}t |ƒ|k rd|t |ƒ  }|| }|r)t|ƒ}|D ]}| |d¡ q t||||ƒS )z6 Like ``is_partial_args`` for the given signature specr   N)rp   rB   rœ  r   )	r�  r   r   r…  ru   r‘  r‚  ÚpadrS  r   r   r   Úcheck_partial·  s   r¦  c                    rž  )zE Like ``is_partial_args`` for builtins in our ``signatures`` registryNc                 3   rŸ  r   )r¦  r“  rk  r   r   r  É  r   z#_is_partial_args.<locals>.<genexpr>r¡  r¢  r   rk  r   Ú_is_partial_argsÄ  r¤  r§  c                 C   s(   |\}}}}|s|| krdS t | ||ƒS )NF)r   )rë   r�  r…  ru   r‘  r‚  r   r   r   Úcheck_arityÌ  s   r¨  c                    sB   |t vrd S t | }‡ fdd„|D ƒ}t|ƒrdS t|ƒrd S dS )Nc                    s   g | ]}t ˆ |ƒ‘qS r   )r¨  r“  ©rë   r   r   Ú
<listcomp>×  s    z_is_arity.<locals>.<listcomp>TF©r—  r   r   )rë   ru   r™  Úchecksr   r©  r   Ú	_is_arityÓ  s   r­  c                 C   ó   | \}}}}t ||ƒS r   )r   ©r�  r…  ru   r‘  r‚  r   r   r   Úcheck_varargsß  ó   
r°  c                 C   ó>   | t vrd S t |  }dd„ |D ƒ}t|ƒrdS t|ƒrd S dS )Nc                 S   ó   g | ]}t |ƒ‘qS r   )r°  r“  r   r   r   rª  è  ó    z _has_varargs.<locals>.<listcomp>TFr«  ©ru   r™  r¬  r   r   r   Ú_has_varargsä  ó   r¶  c                 C   s   | \}}}}|r
dS t ||ƒS )NT)r   r¯  r   r   r   Úcheck_keywordsð  s   
r¸  c                 C   r²  )Nc                 S   r³  r   )r¸  r“  r   r   r   rª  û  r´  z!_has_keywords.<locals>.<listcomp>TFr«  rµ  r   r   r   Ú_has_keywords÷  r·  r¹  c                 C   r®  r   )r   r¯  r   r   r   Úcheck_required_args  r±  rº  c                    sH   | t vrd S t |  }dd„ |D ƒ}|d ‰ t‡ fdd„|D ƒƒr"ˆ S d S )Nc                 S   r³  r   )rº  r“  r   r   r   rª    r´  z&_num_required_args.<locals>.<listcomp>r   c                 3   s   � | ]}|ˆ kV  qd S r   r   r}  ©Úvalr   r   r    r”  z%_num_required_args.<locals>.<genexpr>)r—  r   )ru   r™  Úvalsr   r»  r   Ú_num_required_args  s   r¾  r   )F)r+   r,   )r   r   )r   )rS   rT   )rY   )rf   )NNNN)r¡   r+   r,   )r   FrT   )rS   rT   NNNTN)r¡   r»   r,   r   )r   r   )NNN)NNNNN)#Ú__doc__Ú	functoolsr‰  Ú	itertoolsÚoperatorÚ	importlibr   Ú	functoolzr   r   r   r   r   Úbuiltinsr–  rB   Úupdaterƒ  rˆ  r�  r’  r—  r›  r�  r£  r¦  r§  r¨  r­  r°  r¶  r¸  r¹  rº  r¾  r   r   r   r   Ú<module>   sl   
ÿÿÿýþû	ÿøýöÿòÿð
ÿîýì
ýèÿäÿâ!ÿà#ÿÞ%ÿÜ
'ÿÚ)ÿØ+þÖ.þÓ1ÿÐ3ÿÎ5ýÌ9ýÈ=ÿÄ?ÿÂ
AÿÀCþ¾Fþ»Iþ¸LÿµNÿ³Pÿ±Rÿ¯Tÿ­Vþ«
Yþ¨\ÿ¥^ÿ£`ÿ¡bþŸeÿœgþšjÿ—
lþ•oÿ’
qÿ�sþŽvÿ‹xÿ‰zÿ‡|þ…
ÿ‚ ý �ÿ þ �û 	þ �ø ÿ �õ ÿ �ó ÿ �ñ ÿ �ï þ �í ÿ �ê ý �è ÿ �ä þ �â "þ �ß %þ �Ü (þ �Ù +ÿ �Ö -
þ �Ô 0þ �Ñ 3ý �Î 7ÿ �Ê 9ÿ �È ;ÿÿ �Æ ?ýÿ
ýÿÿþþÿÿÿ
ÿëÿ
ÿÿÿþ
ù
ÿÿÿý
ÿû
ÿù

ÿ÷
ÿõÿóÿñÿïÿíÿëÿéÿçýå ÿá"ÿß$ÿÝ&ÿÛ(ÿÙ*ÿ×,ÿÕ.ÿÓ0þÑ3ÿÎ7ÿÿÿýÿûÿù
ÿ÷ÿõÿóÿñÿïÿíÿëÿéÿçÿåÿã ÿá"ÿß$ÿÝ&ÿÛ(ÿÙ*ÿ×,ÿÕ.ÿÓ0ÿÑ2ÿÏ4ÿÍ6ÿË8ÿÉ:ÿÇ<ÿÅ>ÿÃ@ÿÁBÿ¿Dÿ½Fÿ»Hÿ¹Jÿ·LÿµNÿ³Pÿ±Rÿ¯Tÿ­Vÿ«Xÿ©Zÿ§\ÿ¥^ÿ£`ÿ¡bÿŸdÿ�fÿ›hÿ™jÿ—lÿ•nÿ“pÿ‘rÿ�tÿ�vÿ‹xÿ‰zÿ‡|ÿ…~ÿƒ ÿ� ÿ �þ ÿ �ü ÿ �ú 	ÿ �ø ÿ �ö ÿ �ô ÿ �ò ÿ �ð ÿ �î ÿ �ì ÿ �ê ÿ �è ÿ �æ ÿ �ä ÿ �â !ÿ �à #ÿ �Þ %ÿ �Ü 'ÿ �Ú )ÿ �Ø +ÿ �Ö -ÿ �Ô /ÿ �Ò 1ÿ �Ð 3ÿ �Î 5ÿ �Ì 7ÿ �Ê 9ÿ �È ;ÿ �Æ =ÿ �Ä ?ÿ �Â Aÿ �À Cÿ �¾ Eÿ �¼ Gþ �º Jÿ �· Lÿ �µ Nÿ �³ Pÿ �± Rÿ �¯ Tÿ �­ Vÿ �« Xÿ �© Zÿ �§ \ÿ �¥ ^ÿ �£ `ÿ �¡ bÿ �Ÿ dÿ �� fÿ �› hÿ �™ jÿ �— lÿ �• nÿ �“ pÿ �‘ rÿ �� uÿÿÿÿÿ÷ÿÿÿý	"
