§ <ˆjãó’—dZddlZddgZd„Zd„Zd„Zd\ZZZZ d „Z d „Z d „Z d „Z e fd „Zddded„d„d„e fd„Zed„d„d„e fd„ZdS)zÝSubset of inspect module from upstream python We use this instead of upstream because upstream inspect is slow to import, and significantly contributes to numpy import times. Importing this copy has almost no overhead. éNÚ getargspecÚ formatargspeccó6—t|tj¦«S)a°Return true if the object is an instance method. Instance method objects provide these attributes: __doc__ documentation string __name__ name with which this method was defined im_class class object in which this method belongs im_func function object containing implementation of method im_self instance to which this method is bound, or None )Ú isinstanceÚtypesÚ MethodType©Úobjects úL/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/_utils/_inspect.pyÚismethodr s€õ �f�eÔ.Ñ /Ô /Ð/ócó6—t|tj¦«S)aReturn true if the object is a user-defined function. Function objects provide these attributes: __doc__ documentation string __name__ name with which this function was defined func_code code object containing compiled function bytecode func_defaults tuple of any default values for arguments func_doc (same as __doc__) func_globals global namespace in which this function was defined func_name (same as __name__) )rrÚ FunctionTyper s r Ú isfunctionrs€õ �f�eÔ0Ñ 1Ô 1Ð1r có6—t|tj¦«S)aƒReturn true if the object is a code object. Code objects provide these attributes: co_argcount number of arguments (not including * or ** args) co_code string of raw compiled bytecode co_consts tuple of constants used in the bytecode co_filename name of file in which this code object was created co_firstlineno number of first line in Python source code co_flags bitmap: 1=optimized | 2=newlocals | 4=*arg | 8=**arg co_lnotab encoded mapping of line numbers to bytecode indices co_name name with which this code object was defined co_names tuple of names of local variables co_nlocals number of local variables co_stacksize virtual machine stack space required co_varnames tuple of names of arguments and local variables )rrÚCodeTyper s r Úiscoder)s€õ$ �f�eœnÑ -Ô -Ð-r )éééécóz—t|¦«std¦«‚|j}|j}t |d|…¦«}t |¦«D]#}||dd…dvrtd¦«‚Œ$d}|jtzr|j|}|dz}d}|jtzr |j|}|||fS)aGet information about the arguments accepted by a code object. Three things are returned: (args, varargs, varkw), where 'args' is a list of argument names (possibly containing nested lists), and 'varargs' and 'varkw' are the names of the * and ** arguments or None. zarg is not a code objectNr)Úú.z*tuple function arguments are not supported) rÚ TypeErrorÚ co_argcountÚ co_varnamesÚlistÚrangeÚco_flagsÚ CO_VARARGSÚCO_VARKEYWORDS)ÚcoÚnargsÚnamesÚargsÚiÚvarargsÚvarkws r Úgetargsr*AsÞ€õ �"‰:Œ:ð4ÝÐ2Ñ3Ô3Ð3à ŒN€EØ ŒN€EÝ ��f�u�f” Ñ Ô €Dõ �5‰\Œ\ðJðJˆØ �Œ7�2�A�2Œ;˜)Ð #Ð #ÝÐHÑIÔIÐ Ið $à€GØ „{•ZÑðØ”. Ô'ˆØ˜‘ ˆØ €EØ „{•^Ñ#ð&Ø”˜uÔ%ˆØ �˜%Ð Ðr có°—t|¦«r|j}t|¦«std¦«‚t |j¦«\}}}||||jfS)amGet the names and default values of a function's arguments. A tuple of four things is returned: (args, varargs, varkw, defaults). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'defaults' is an n-tuple of the default values of the last n arguments. zarg is not a Python function)r Ú__func__rrr*Ú__code__Ú __defaults__)Úfuncr&r(r)s r rr`s`€õ��~„~ðØŒ}ˆÝ �dÑ Ô ð8ÝÐ6Ñ7Ô7Ð7Ý" 4¤=Ñ1Ô1Ñ€Dˆ'�5Ø �˜% Ô!2Ð 2Ð2r cóH—t|j¦«\}}}||||jfS)aaGet information about arguments passed into a particular frame. A tuple of four things is returned: (args, varargs, varkw, locals). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'locals' is the locals dictionary of the given frame. )r*Úf_codeÚf_locals)Úframer&r(r)s r Ú getargvaluesr4qs+€õ# 5¤<Ñ0Ô0Ñ€Dˆ'�5Ø �˜% ¤Ð /Ð/r cóz—t|¦«dkrd|dzdzSdd |¦«zdzS)Nrú(rz,)ú, ú))ÚlenÚjoin)Úseqs r Újoinseqr<}s>€Ý ˆ3�x„x�1‚}€}Ø�S˜”V‰|˜dÑ"Ð"à�T—Y’Y˜s‘^”^Ñ# cÑ)Ð)r c󆇇—t|¦«ttfvr‰ˆˆfd„|D¦«¦«S‰|¦«S)z=Recursively walk a sequence, stringifying each element. có2•—g|]}t|‰‰¦«‘ŒS©©Ústrseq)Ú.0Ú_oÚconvertr:s €€r ú zstrseq..ˆs%ø€Ð@Ð@Ð@°2•V˜B ¨Ñ.Ô.Ð@Ð@Ð@r )ÚtyperÚtuple)r rDr:s ``r rArAƒsQøø€õ ˆF�|„|��e�}Ð$Ð$؈tÐ@Ð@Ð@Ð@Ð@¸Ð@Ñ@Ô@ÑAÔAÐAàˆw�v‰ŒÐr có —d|zS©NÚ*r?©Únames r úrMŽs €¨S°4©Z€r có —d|zS©Nz**r?rKs r rMrM�s €¨4°$©;€r có&—dt|¦«zS©Nú=©Úrepr©Úvalues r rMrM�s€¨Cµ$°u±+´+Ñ,=€r c óÒ—g} |rt|¦«t|¦«z } tt|¦«¦«D]M} t|| ||¦«} |r| | kr| ||| | z ¦«z} |  | ¦«ŒN|�|  ||¦«¦«|�|  ||¦«¦«dd | ¦«zdzS)amFormat an argument spec from the 4 values returned by getargspec. The first four arguments are (args, varargs, varkw, defaults). The other four arguments are the corresponding optional formatting functions that are called to turn names and values into strings. The ninth argument is an optional function to format the sequence of arguments. Nr6r7r8)r9rrAÚappendr:) r&r(r)ÚdefaultsÚ formatargÚ formatvarargsÚ formatvarkwÚ formatvaluer:ÚspecsÚ firstdefaultr'Úspecs r rrŒsÿ€ð €EØð1ݘ4‘y”y¥3 x¡=¤=Ñ0ˆ Ý •3�t‘9”9Ñ Ô ððˆÝ�d˜1”g˜y¨$Ñ/Ô/ˆØ ð B˜˜\Ò)Ð)ؘ+˜+ h¨q°<Ñ/?Ô&@ÑAÔAÑAˆDØ � Š �TÑÔÐÐØÐØ � Š �]�] 7Ñ+Ô+Ñ,Ô,Ð,Ø ÐØ � Š �[�[ Ñ'Ô'Ñ(Ô(Ð(Ø �—’˜5Ñ!Ô!Ñ ! CÑ 'Ð'r có —d|zSrIr?rKs r rMrMªs €¨s°T©z€r có —d|zSrOr?rKs r rMrM«s €¨T°D©[€r có&—dt|¦«zSrQrSrUs r rMrM¬s€¨cµD¸±K´KÑ.?€r c ó0‡‡ —|||fd„Š ˆ ˆfd„|D¦«} |r0|  ||¦«|||¦«z¦«|r0|  ||¦«|||¦«z¦«dd | ¦«zdzS)alFormat an argument spec from the 4 values returned by getargvalues. The first four arguments are (args, varargs, varkw, locals). The next four arguments are the corresponding optional formatting functions that are called to turn names and values into strings. The ninth argument is an optional function to format the sequence of arguments. có<—||¦«|||¦«zS)Nr?)rLÚlocalsrZr]s r rDz formatargvalues..convert¶s#€àˆy˜‰Œ  ¨V°D¬\Ñ!:Ô!:Ñ:Ð:r có2•—g|]}t|‰‰¦«‘ŒSr?r@)rBÚargrDr:s €€r rEz#formatargvalues..¹s%ø€Ð 8Ð 8Ð 8¨C�V�C˜ $Ñ 'Ô 'Ð 8Ð 8Ð 8r r6r7r8)rXr:) r&r(r)rfrZr[r\r]r:r^rDs ` @r Úformatargvaluesri¨sÌøø€ð$Ø#°ð;ð;ð;ð;ð 9Ð 8Ð 8Ð 8Ð 8°4Ð 8Ñ 8Ô 8€EàðLØ � Š �]�] 7Ñ+Ô+¨k¨k¸&À¼/Ñ.JÔ.JÑJÑKÔKÐKØ ðFØ � Š �[�[ Ñ'Ô'¨+¨+°f¸U´mÑ*DÔ*DÑDÑEÔEÐEØ �—’˜5Ñ!Ô!Ñ ! CÑ 'Ð'r )Ú__doc__rÚ__all__r rrÚ CO_OPTIMIZEDÚ CO_NEWLOCALSr!r"r*rr4r<rAÚstrrrir?r r úros$ðððð € € € à ˜Ð )€ð 0ð 0ð 0ð 2ð 2ð 2ð.ð.ð.ð,:DÑ6€ ˆl˜J¨ð ð ð ð>3ð3ð3ð" 0ð 0ð 0ð*ð*ð*ð ")ððððð!%¨D¸4ØØ 7Ð 7Ø6Ð6Ø=Ð=Øð (ð(ð(ð(ð:"Ø"9Ð"9Ø 8Ð 8Ø ?Ð ?Ø ð (ð(ð(ð(ð(ð(r