grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026o ®û|jÚåã @sØdZdZddlZddlZddlZddlZddlZddlZ ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlmZddlmZmZeƒZej ¡D] \ZZeede<q^dZdddd œd d „Z d d „Z!dd„Z"dd„Z#dd„Z$dd„Z%e&edƒr’dd„Z'ndd„Z'e&edƒr dd„Z(ndd„Z(dd„Z)d d!„Z*d"d#„Z+d$d%„Z,d&d'„Z-d(d)„Z.d*d+„Z/d,d-„Z0d.d/„Z1d0d1„Z2d2d3„Z3d4d5„Z4d6d7„Z5d8d9„Z6d:d;„Z7dûdd?ƒZ9d@dA„Z:dBdC„Z;ddDœdEdF„ZdKdL„Z?dMdN„Z@dOdP„ZAdQdR„ZBdSdT„ZCdUdV„ZDdûdWdX„ZEiZFiZGdûdYdZ„ZHGd[d\„d\eIƒZJGd]d^„d^ejKƒZLd_d`„ZMdadb„ZNGdcdd„ddeIƒZOGdedf„dfƒZPdgdh„ZQdidj„ZRdkdl„ZSdmdn„ZTdüdodp„ZUedqdrƒZVdsdt„ZWedudvƒZXdwdx„ZYedydzƒZZd{d|„Z[ed}d~ƒZ\dd€„Z]dûd�d‚„Z^dƒd„„Z_dddd…iie`d†d‡„dˆd‡„d‰d‡„dŠd‡„e^f d‹dŒ„Zae`d�d‡„dŽd‡„d�d‡„fd�d‘„Zbd’d“„Zcd”d•„Zdd–d—„Zeed˜d™ƒZfdšd›„Zgedœd�ƒZhdýdŸd „Zid¡d¢„Zjed£d¤ehjkƒZldýd¥d¦„Zmdýd§d¨„Znd©dª„Zodýd«d¬„Zpdýd­d®„ZqerƒZsd¯d°„Ztd±d²„Zud³d´„Zvdµd¶„Zwd·d¸„Zxesfd¹dº„Zyd»Zzd¼Z{d½Z|d¾Z}d¿dÀ„Z~dÁd„ZdÃZ€dÄZ�dÅZ‚dÆZƒdÇdÈ„Z„dÉdÊ„Z…e†e†j‡ƒZˆe†e‰j‡ƒZŠe†e‹jŒd˃Z�eˆeŠe�ejŽfZ�dÌdÍ„Z�dþdÎdÏ„Z‘dÐdÑ„Z’dÒdÓ„Z“dÔdÕ„Z”dÖdׄZ•dØdÙ„Z–dÿdÛdÜ„Z—dÿdÝdÞ„Z˜ Ú �ddßdà„Z™dÚdÚddddáœdâdã„ZšGdädå„dåƒZ›Gdædç„dçƒZœGdèdé„déej�ƒZžežjŸZ ežj¡Z¢ežj£Z¤ežj¥Z¦ežj§Z¨e dêe¢dëe¤dìe¦díe¨dîiZ©Gdïdð„dðƒZªGdñdò„dòƒZ«Gdódô„dôƒZ¬dÚddddõœdöd÷„Z­dødù„Z®e¯dúk�rêe®ƒdSdS(aFGet useful information from live Python objects. This module encapsulates the interface provided by the internal special attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion. It also provides some help for examining source code and class layout. Here are some of the useful functions provided by this module: ismodule(), isclass(), ismethod(), isfunction(), isgeneratorfunction(), isgenerator(), istraceback(), isframe(), iscode(), isbuiltin(), isroutine() - check object types getmembers() - get members of an object that satisfy a given condition getfile(), getsourcefile(), getsource() - find an object's source code getdoc(), getcomments() - get documentation on an object getmodule() - determine the module that an object came from getclasstree() - arrange classes so as to represent their hierarchy getargvalues(), getcallargs() - get info about function arguments getfullargspec() - same, with support for Python 3 features formatargvalues() - format an argument spec getouterframes(), getinnerframes() - get info about frames currentframe() - get the current stack frame stack(), trace() - get info about frames on the stack or in a traceback signature() - get a Signature object for the callable get_annotations() - safely compute an object's annotations )zKa-Ping Yee z'Yury Selivanov éN)Ú attrgetter)Ú namedtupleÚ OrderedDictZCO_iF©ÚglobalsÚlocalsÚeval_strc sœt|tƒrEt|ddƒ}|r!t|dƒr!| dd¡}t|tjƒr d}nd}d}t|ddƒ}|r¯s þÿz#get_annotations..)rÚtypeÚgetattrÚhasattrr ÚtypesÚGetSetDescriptorTypeÚsysÚmodulesÚdictÚvarsÚ ModuleTypeÚcallableÚ TypeErrorÚ ValueErrorrÚ functoolsÚpartialÚfuncr Úitems) ÚobjrrrZobj_dictÚannZ obj_globalsÚ module_nameÚmoduleZ obj_localsÚunwrapZ return_valuerrrÚget_annotationsBsl -   €             þr/cCó t|tjƒS)zøReturn true if the object is a module. Module objects provide these attributes: __cached__ pathname to byte compiled file __doc__ documentation string __file__ filename (missing for built-in modules))rrr"©ÚobjectrrrÚismodule¶ó r3cCó t|tƒS)zÆReturn true if the object is a class. Class objects provide these attributes: __doc__ documentation string __module__ name of module in which this class was defined)rrr1rrrÚisclass¿ó r6cCr0)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 __func__ function object containing implementation of method __self__ instance to which this method is bound)rrÚ MethodTyper1rrrÚismethodÇó r9cCs:t|ƒs t|ƒs t|ƒrdSt|ƒ}t|dƒot|dƒ S)a–Return true if the object is a method descriptor. But not if ismethod() or isclass() or isfunction() are true. This is new in Python 2.2, and, for example, is true of int.__add__. An object passing this test has a __get__ attribute but not a __set__ attribute, but beyond that the set of attributes varies. __name__ is usually sensible, and __doc__ often is. Methods implemented via descriptors that also pass one of the other tests return false from the ismethoddescriptor() test, simply because the other tests promise more -- you can, e.g., count on having the __func__ attribute (etc) when an object passes ismethod().FÚ__get__Ú__set__©r6r9Ú isfunctionrr©r2ÚtprrrÚismethoddescriptorÑsrAcCs8t|ƒs t|ƒs t|ƒrdSt|ƒ}t|dƒpt|dƒS)a}Return true if the object is a data descriptor. Data descriptors have a __set__ or a __delete__ attribute. Examples are properties (defined in Python) and getsets and members (defined in C). Typically, data descriptors will also have __name__ and __doc__ attributes (properties, getsets, and members have both of these attributes), but this is not guaranteed.Fr<Ú __delete__r=r?rrrÚisdatadescriptoråsrCÚMemberDescriptorTypecCr0)ú�Return true if the object is a member descriptor. Member descriptors are specialized descriptors defined in extension modules.)rrrDr1rrrÚismemberdescriptorõó rFcCódS)rEFrr1rrrrFýórcCr0)ú�Return true if the object is a getset descriptor. getset descriptors are specialized descriptors defined in extension modules.)rrrr1rrrÚisgetsetdescriptorrGrKcCrH)rJFrr1rrrrKrIcCr0)a(Return 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 __code__ code object containing compiled function bytecode __defaults__ tuple of any default values for arguments __globals__ global namespace in which this function was defined __annotations__ dict of parameter annotations __kwdefaults__ dict of keyword only parameters with defaults)rrÚ FunctionTyper1rrrr>s r>cCsDt|ƒr |j}t|ƒst |¡}t|ƒst|ƒsdSt|jj|@ƒS)z¤Return true if ``f`` is a function (or a method or functools.partial wrapper wrapping a function) whose code object has the given ``flag`` set in its flags.F) r9Ú__func__r&Ú_unwrap_partialr>Ú_signature_is_functionlikeÚboolÚ__code__Úco_flags)ÚfÚflagrrrÚ_has_code_flag"sÿ rUcCr5)z¼Return true if the object is a user-defined generator function. Generator function objects provide the same attributes as functions. See help(isfunction) for a list of attributes.)rUZ CO_GENERATOR©r*rrrÚisgeneratorfunction-ó rWcCr5)zuReturn true if the object is a coroutine function. Coroutine functions are defined with "async def" syntax. )rUZ CO_COROUTINErVrrrÚiscoroutinefunction4rXrYcCr5)z¿Return true if the object is an asynchronous generator function. Asynchronous generator functions are defined with "async def" syntax and have "yield" expressions in their body. )rUZCO_ASYNC_GENERATORrVrrrÚisasyncgenfunction;r7rZcCr0)z7Return true if the object is an asynchronous generator.)rrÚAsyncGeneratorTyper1rrrÚ isasyncgenCó r\cCr0)aReturn true if the object is a generator. Generator objects provide these attributes: __iter__ defined to support iteration over container close raises a new GeneratorExit exception inside the generator to terminate the iteration gi_code code object gi_frame frame object or possibly None once the generator has been exhausted gi_running set to 1 when generator is executing, 0 otherwise next return the next item from the container send resumes the generator and "sends" a value that becomes the result of the current yield-expression throw used to raise an exception inside the generator)rrÚ GeneratorTyper1rrrÚ isgeneratorGs r_cCr0)z)Return true if the object is a coroutine.)rrÚ CoroutineTyper1rrrÚ iscoroutineXr]racCs6t|tjƒpt|tjƒot|jjt@ƒpt|tj j ƒS)z?Return true if object can be passed to an ``await`` expression.) rrr`r^rPÚgi_coderRZCO_ITERABLE_COROUTINEÚ collectionsÚabcÚ Awaitabler1rrrÚ isawaitable\s  þ ýrfcCr0)abReturn true if the object is a traceback. Traceback objects provide these attributes: tb_frame frame object at this level tb_lasti index of last attempted instruction in bytecode tb_lineno current line number in Python source code tb_next next inner traceback object (called by this level))rrÚ TracebackTyper1rrrÚ istracebackcr:rhcCr0)a`Return true if the object is a frame object. Frame objects provide these attributes: f_back next outer frame object (this frame's caller) f_builtins built-in namespace seen by this frame f_code code object being executed in this frame f_globals global namespace seen by this frame f_lasti index of last attempted instruction in bytecode f_lineno current line number in Python source code f_locals local namespace seen by this frame f_trace tracing function for this frame, or None)rrÚ FrameTyper1rrrÚisframems rjcCr0)a›Return true if the object is a code object. Code objects provide these attributes: co_argcount number of arguments (not including *, ** args or keyword only arguments) co_code string of raw compiled bytecode co_cellvars tuple of names of cell variables 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 | 16=nested | 32=generator | 64=nofree | 128=coroutine | 256=iterable_coroutine | 512=async_generator co_freevars tuple of names of free variables co_posonlyargcount number of positional only arguments co_kwonlyargcount number of keyword only arguments (not including ** 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 other than arguments and function locals co_nlocals number of local variables co_stacksize virtual machine stack space required co_varnames tuple of names of arguments and local variables)rrÚCodeTyper1rrrÚiscode{s rlcCr0)a,Return true if the object is a built-in function or method. Built-in functions and methods provide these attributes: __doc__ documentation string __name__ original name of this function or method __self__ instance to which a method is bound, or None)rrÚBuiltinFunctionTyper1rrrÚ isbuiltin”r4rncCs t|ƒpt|ƒpt|ƒpt|ƒS)zr9rAr1rrrÚ isroutine�sÿþýrocCs¦t|tƒsdS|jt@rdStt|ƒtjƒsdSt|dƒrdS|j  ¡D] \}}t |ddƒr1dSq$|j D]}t |ddƒD]}t ||dƒ}t |ddƒrOdSq=q5dS)z:Return true if the object is an abstract base class (ABC).FTÚ__abstractmethods__Ú__isabstractmethod__rN) rrÚ __flags__ÚTPFLAGS_IS_ABSTRACTÚ issubclassrdÚABCMetarr r)rÚ __bases__)r2ÚnamerÚbaserrrÚ isabstract¤s(    ÿ   ÿþryc Cst|ƒr |ft|ƒ}nd}g}tƒ}t|ƒ}z|jD]}|j ¡D]\}}t|tj ƒr1|  |¡q"qWn t y=Ynw|D]>} z t || ƒ} | |vrNt ‚Wnt yk|D]}| |jvrf|j| } nqXYq@Ynw|rr|| ƒry|  | | f¡|  | ¡q@|jdd„d�|S)zŠReturn all members of an object as (name, value) pairs sorted by name. Optionally, only return members that satisfy a given predicate.rcSs|dS)Nrr)ZpairrrrÚåózgetmembers..©r)r6ÚgetmroÚsetÚdirrvr r)rrÚDynamicClassAttributeÚappendÚAttributeErrorrÚaddÚsort) r2Z predicateÚmroÚresultsÚ processedÚnamesrxÚkÚvrrrrrÚ getmembers¼sJ   €þÿ ÿ ÿ   þüü  r‹Ú Attributezname kind defining_class objectc Cs4t|ƒ}tt|ƒƒ}tdd„|Dƒƒ}|f|}||}t|ƒ}|D]}|j ¡D]\}}t|tjƒr=|j dur=|  |¡q)q"g} t ƒ} |D]Ñ} d} d} d}| | vr¶z| dkr[t dƒ‚t || ƒ} Wnt ys}zWYd}~nGd}~wwt | d| ƒ} | |vr¶d} d}|D]}t || dƒ}|| ur’|}q„|D]}z| || ¡}Wn ty¨Yq•w|| ur¯|}q•|dur¶|} |D]}| |jvrÌ|j| }| |vrÊ|} nq¸| durÒqF| durØ| n|}t|ttjfƒrçd}|}n!t|ttjfƒrôd}|}nt|tƒrþd }|}n t|ƒ�rd }nd }|   t| || |ƒ¡|  | ¡qF| S) aNReturn list of attribute-descriptor tuples. For each name in dir(cls), the return list contains a 4-tuple with these elements: 0. The name (a string). 1. The kind of attribute this is, one of these strings: 'class method' created via classmethod() 'static method' created via staticmethod() 'property' created via property() 'method' any other flavor of method or descriptor 'data' not a method 2. The class which defined this attribute (a class). 3. The object as obtained by calling getattr; if this fails, or if the resulting object does not live anywhere in the class' mro (including metaclasses) then the object is looked up in the defining class's dict (found by walking the mro). If one of the items in dir(cls) is stored in the metaclass it will now be discovered and not have None be listed as the class in which it was defined. Any items whose home class cannot be discovered are skipped. css �|] }|ttfvr|VqdS©N)rr2)rÚclsrrrÚ s€z'classify_class_attrs..Nr z)__dict__ is special, don't want the proxyÚ __objclass__z static methodz class methodÚpropertyÚmethodÚdata)r}rÚtuplerr r)rrr€Úfgetr�r~Ú ExceptionrÚ __getattr__r‚Ú staticmethodÚBuiltinMethodTypeÚ classmethodÚClassMethodDescriptorTyper‘rorŒrƒ)rŽr…ZmetamroZ class_basesZ all_basesrˆrxr‰rŠÚresultr‡rwZhomeclsZget_objZdict_objÚexcZlast_clsZsrch_clsZsrch_objr*ÚkindrrrÚclassify_class_attrsês�   €þ  €ÿ  € ÿ€  ü   rŸcCó|jS)zHReturn tuple of base classes (including cls) in method resolution order.)Ú__mro__)rŽrrrr}^ór}©Ústopcs‚ˆdur dd„}n‡fdd„}|}t|ƒ|i}t ¡}||ƒr?|j}t|ƒ}||vs0t|ƒ|kr7td |¡ƒ‚|||<||ƒs|S)anGet the object wrapped by *func*. Follows the chain of :attr:`__wrapped__` attributes returning the last object in the chain. *stop* is an optional callback accepting an object in the wrapper chain as its sole argument that allows the unwrapping to be terminated early if the callback returns a true value. If the callback never returns a true value, the last object in the chain is returned as usual. For example, :func:`signature` uses this to stop unwrapping if any object in the chain has a ``__signature__`` attribute defined. :exc:`ValueError` is raised if a cycle is encountered. NcSs t|dƒS©Nr©r©rSrrrÚ _is_wrapperuó zunwrap.._is_wrappercst|dƒo ˆ|ƒ Sr¥r¦r§r£rrr¨xsz!wrapper loop when unwrapping {!r})ÚidrÚgetrecursionlimitrÚlenr%Úformat)r(r¤r¨rSZmemoZrecursion_limitZid_funcrr£rr.ds   ûr.cCs| ¡}t|ƒt| ¡ƒS)zBReturn the indent size, in spaces, at the start of a line of text.)Ú expandtabsr¬Úlstrip)ÚlineZexplinerrrÚ indentsizeˆsr±cCsNtj |j¡}|dur dS|j d¡dd…D]}t||ƒ}qt|ƒs%dS|S)NÚ.éÿÿÿÿ)rrr r Ú __qualname__Úsplitrr6)r(rŽrwrrrÚ _findclass�s r¶c Csât|ƒr'|jD]}|tur$z|j}Wn tyYqw|dur$|SqdSt|ƒrI|jj}|j}t|ƒrEt t ||dƒdƒ|jurE|}nŠ|j }n†t |ƒrb|j}t |ƒ}|dus_t ||ƒ|uradSnmt |ƒr�|j}|j}t|ƒr}|jd||jkr}|}nR|j }nNt|tƒrž|j}|j}t |ƒ}|dus›t ||ƒ|ur�dSn1t|ƒs¦t|ƒrÍ|j}|j}t ||ƒ|urµdSt|ƒrÌt |ddƒ}t|tƒrÌ||vrÌ||SndS|jD]}zt ||ƒj}Wn tyåYqÒw|durî|SqÒdS)NrMr²Ú __slots__)r6r¡r2Ú__doc__r‚r9rMÚ__name__Ú__self__rÚ __class__r>r¶rnr´rr‘r•rArCr�rFr )r*rxÚdocrwÚselfrŽr(ÚslotsrrrÚ_finddoc—sx   ÿ€ÿ ÿ €  ÿÿr¿c Csdz|j}Wn tyYdSw|dur'zt|ƒ}Wn ttfy&YdSwt|tƒs.dSt|ƒS)zùGet the documentation string for an object. All tabs are expanded to spaces. To clean up docstrings that are indented to line up with blocks of code, any whitespace than can be uniformly removed from the second line onwards is removed.N)r¸r‚r¿r$rrÚcleandoc)r2r¼rrrÚgetdocÕs  ÿ ÿ rÁcCsøz | ¡ d¡}Wn tyYdSwtj}|dd…D]}t| ¡ƒ}|r2t|ƒ|}t||ƒ}q|r=|d ¡|d<|tjkrVtdt|ƒƒD] }|||d…||<qI|rf|dsf|  ¡|rf|dr\|rw|dsw|  d¡|rw|drld  |¡S)z„Clean up indentation from docstrings. Any whitespace that can be uniformly removed from the second line onwards is removed.Ú Nérr³) r®rµÚ UnicodeErrorrÚmaxsizer¬r¯ÚminÚrangeÚpopÚjoin)r¼ÚlinesZmarginr°ZcontentÚindentÚirrrrÀès. ÿ   € (  ÿ   ÿ rÀcCsÔt|ƒrt|ddƒr |jStd |¡ƒ‚t|ƒr=t|dƒr6tj  |j ¡}t|ddƒr-|jS|j dkr6t dƒ‚td |¡ƒ‚t |ƒrD|j }t|ƒrK|j}t|ƒrR|j}t|ƒrY|j}t|ƒr`|jStd t|ƒj¡ƒ‚) z@Work out which source or compiled file an object was defined in.Ú__file__Nz{!r} is a built-in moduler Ú__main__úsource code not availablez{!r} is a built-in classzVmodule, class, method, function, traceback, frame, or code object was expected, got {})r3rrÍr$r­r6rrrr r ÚOSErrorr9rMr>rQrhÚtb_framerjÚf_coderlÚ co_filenamerr¹)r2r-rrrÚgetfiles6    ÿÿrÔcCsTtj |¡}dd„tj ¡Dƒ}| ¡|D]\}}| |¡r'|d|…SqdS)z1Return the module name for a given file, or None.cSsg|] }t|ƒ |f‘qSr)r¬)rÚsuffixrrrÚ %sÿz!getmodulename..N)ÚosÚpathÚbasenameÚ importlibÚ machineryÚ all_suffixesr„Úendswith)rØZfnameÚsuffixesZneglenrÕrrrÚ getmodulename!s ÿ  ÿrßcsÚt|ƒ‰tjjdd…}|tjjdd…7}t‡fdd„|Dƒƒr0tj ˆ¡dtjj d‰nt‡fdd„tjj Dƒƒr?dStj  ˆ¡rGˆSt |ˆƒ}t |ddƒdurVˆSt t |ddƒddƒdurdˆSˆtjvrkˆSdS) z†Return the filename that can be used to locate an object's source. Return None if no way can be identified to get the source. Nc3ó�|]}ˆ |¡VqdSr�©rÝ©rÚs©Úfilenamerrr�4ó€z getsourcefile..rc3ràr�rárârärrr�7ræÚ __loader__Ú__spec__Úloader)rÔrÚrÛÚDEBUG_BYTECODE_SUFFIXESÚOPTIMIZED_BYTECODE_SUFFIXESÚanyr×rØÚsplitextÚSOURCE_SUFFIXESÚEXTENSION_SUFFIXESÚexistsÚ getmodulerÚ linecacheÚcache)r2Zall_bytecode_suffixesr-rrärÚ getsourcefile-s* ÿ ÿ   ÿrôcCs,|dur t|ƒp t|ƒ}tj tj |¡¡S)z¾Return an absolute path to the source or compiled file for an object. The idea is for each object to have a unique origin, so this routine normalizes the result as much as possible.N)rôrÔr×rØÚnormcaseÚabspath)r2Ú _filenamerrrÚ getabsfileFsrøc Cszt|ƒr|St|dƒrtj |j¡S|dur"|tvr"tj t|¡Szt||ƒ}Wn tt fy5YdSw|tvrBtj t|¡Stj  ¡  ¡D].\}}t|ƒrwt|dƒrw|j }|t  |d¡krbqI|t |<t|ƒ}|jt|<ttj |¡<qI|tvr„tj t|¡Stjd}t|dƒs�dSt||jƒr¢t||jƒ}||ur¢|Stjd}t||jƒr¹t||jƒ} | |ur»|SdSdS)zAReturn the module an object was defined in, or None if not found.r NrÍrÎr¹Úbuiltins)r3rrrr r Ú modulesbyfilerør$ÚFileNotFoundErrorÚcopyr)rÍÚ_filesbymodnamer¹r×rØÚrealpathr) r2r÷ÚfileÚmodnamer-rSÚmainZ mainobjectZbuiltinZ builtinobjectrrrrñRsR ÿ ÿ ÿ€       ýrñc@ó eZdZdS)ÚClassFoundExceptionN©r¹r r´rrrrr�src@s(eZdZdd„Zdd„ZeZdd„ZdS)Ú _ClassFindercCsg|_||_dSr�)ÚstackÚqualname)r½rrrrÚ__init__‡ó z_ClassFinder.__init__cCs<|j |j¡|j d¡| |¡|j ¡|j ¡dS)Nz)rr�rwÚ generic_visitrÈ©r½ÚnoderrrÚvisit_FunctionDef‹s    z_ClassFinder.visit_FunctionDefcCsb|j |j¡|jd |j¡kr%|jr|jdj}n|j}|d8}t|ƒ‚| |¡|j  ¡dS)Nr²rrÃ) rr�rwrrÉÚdecorator_listÚlinenorr rÈ)r½r Ú line_numberrrrÚvisit_ClassDef”s z_ClassFinder.visit_ClassDefN)r¹r r´rr Zvisit_AsyncFunctionDefrrrrrr…s  rc Cs¼t|ƒ}|r t |¡nt|ƒ}| d¡r| d¡stdƒ‚t||ƒ}|r-t ||j ¡}nt |¡}|s8tdƒ‚t |ƒr@|dfSt |ƒr{|j }d  |¡}t |¡}t|ƒ}z | |¡Wtdƒ‚tyz}z|jd} || fWYd}~Sd}~wwt|ƒr‚|j}t|ƒr‰|j}t|ƒr�|j}t|ƒr—|j}t|ƒrÚt|d ƒs¤td ƒ‚|jd } t  d ¡} | dkrÖz|| } Wn t!yÃtd ƒ‚w|  "| ¡rÎ || fS| d } | dks²|| fStdƒ‚)abReturn the entire source file and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of all the lines in the file and the line number indexes a line in that list. An OSError is raised if the source code cannot be retrieved.ú<ú>rÏzcould not get source coderÚNzcould not find class definitionÚco_firstlinenoz"could not find function definitionrÃz>^(\s*def\s)|(\s*async\s+def\s)|(.*(?rQrhrÑrjrÒrlrrÚreÚcompileÚ IndexErrorÚmatch) r2rÿr-rÊrÚsourceZtreeZ class_finderÚerÚlnumZpatr°rrrÚ findsource¤sj      ü €þ     ÿ ÿùr$c Cs¶zt|ƒ\}}Wn ttfyYdSwt|ƒr“d}|r)|ddd…dkr)d}|t|ƒkrI|| ¡dvrI|d}|t|ƒkrI|| ¡dvs7|t|ƒkr�||dd…dkr‘g}|}|t|ƒkrŠ||dd…dkrŠ| || ¡¡|d}|t|ƒkrŠ||dd…dksmd |¡SdSdS|dk�rSt ||ƒ}|d}|dk�rU||  ¡dd…dk�rWt ||ƒ|k�rY|| ¡  ¡g}|dk�r|d}|| ¡  ¡}|dd…dk�rt ||ƒ|k�r|g|dd…<|d}|dkrùn|| ¡  ¡}|dd…dk�rt ||ƒ|ksé|�r0|d ¡dk�r0g|dd…<|�r0|d ¡dk�s|�rN|d  ¡dk�rNg|d d…<|�rN|d  ¡dk�srNrÃ) r.r$rhrÑr3rjrÒÚco_namerF©r2rÊr#rrrÚgetsourcelinesXs ÿ rIcCst|ƒ\}}d |¡S)aReturn the text of the source code for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a single string. An OSError is raised if the source code cannot be retrieved.r)rIrÉrHrrrÚ getsourcems  rJcCsRg}|jtddƒd�|D]}| ||jf¡||vr&| t||||ƒ¡q |S)z-Recursive helper function for getclasstree().r r¹r|)r„rr�rvÚwalktree)ÚclassesÚchildrenÚparentr†ÚcrrrrKws€rKcCsši}g}|D]2}|jr/|jD]}||vrg||<|||vr%|| |¡|r-||vr-nqq||vr8| |¡q|D] }||vrF| |¡q;t||dƒS)aöArrange the given list of classes into a hierarchy of nested lists. Where a nested list appears, it contains classes derived from the class whose entry immediately precedes the list. Each entry is a 2-tuple containing a class and a tuple of its base classes. If the 'unique' argument is true, exactly one entry appears in the returned structure for each class in the given list. Otherwise, classes using multiple inheritance and their descendants will appear multiple times.N)rvr�rK)rLÚuniquerMÚrootsrOrNrrrÚ getclasstree�s&   € € € rRÚ Argumentszargs, varargs, varkwc Cs t|ƒs td |¡ƒ‚|j}|j}|j}t|d|…ƒ}t||||…ƒ}d}||7}d}|jt@r<|j|}|d}d}|jt @rH|j|}t ||||ƒS)aGet information about the arguments accepted by a code object. Three things are returned: (args, varargs, varkw), where 'args' is the list of argument names. Keyword-only arguments are appended. 'varargs' and 'varkw' are the names of the * and ** arguments or None.z{!r} is not a code objectNrrÃ) rlr$r­Ú co_varnamesÚ co_argcountÚco_kwonlyargcountÚlistrRÚ CO_VARARGSÚCO_VARKEYWORDSrS) ÚcorˆÚnargsZnkwargsrÚ kwonlyargsÚstepÚvarargsÚvarkwrrrÚgetargsžs"    r`ÚArgSpeczargs varargs keywords defaultscCsDtjdtdd�t|ƒ\}}}}}}}|s|rtdƒ‚t||||ƒS)aeGet the names and default values of a function's parameters. A tuple of four things is returned: (args, varargs, keywords, defaults). 'args' is a list of the argument names, including keyword-only argument names. 'varargs' and 'keywords' are the names of the * and ** parameters or None. 'defaults' is an n-tuple of the default values of the last n parameters. This function is deprecated, as it does not support annotations or keyword-only parameters and will raise ValueError if either is present on the supplied callable. For a more structured introspection API, use inspect.signature() instead. Alternatively, use getfullargspec() for an API with a similar namedtuple based interface, but full support for annotations and keyword-only parameters. Deprecated since Python 3.5, use `inspect.getfullargspec()`. zhinspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()r%©Ú stacklevelzgFunction has keyword-only parameters or annotations, use inspect.signature() API which can support them)ÚwarningsÚwarnÚDeprecationWarningÚgetfullargspecr%ra)r(rr^r_Údefaultsr\Úkwonlydefaultsr+rrrÚ getargspec»sþÿrjÚ FullArgSpeczGargs, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotationsc Csfz t|ddtdd�}Wnty}ztdƒ|‚d}~wwg}d}d}g}g}i}d} i} |j|jur8|j|d<|j ¡D]a} | j} | j } | t ur[|  | ¡| j | jurZ| | j f7} n8| t urq|  | ¡| j | jurp| | j f7} n"| turx| }n| tur�|  | ¡| j | jurŒ| j | | <n| tur“| }| j| jurž| j|| <q=| s£d} | s§d} t||||| || |ƒS)a$Get the names and default values of a callable object's parameters. A tuple of seven things is returned: (args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations). 'args' is a list of the parameter names. 'varargs' and 'varkw' are the names of the * and ** parameters or None. 'defaults' is an n-tuple of the default values of the last n parameters. 'kwonlyargs' is a list of keyword-only parameter names. 'kwonlydefaults' is a dictionary mapping names from kwonlyargs to defaults. 'annotations' is a dictionary mapping parameter names to annotations. Notable differences from inspect.signature(): - the "self" parameter is always reported, even for bound methods - wrapper chains defined by __wrapped__ *not* unwrapped automatically F)Úfollow_wrapper_chainsÚskip_bound_argÚsigclsrzunsupported callableNrÚreturn)Ú_signature_from_callableÚ Signaturer–r$Úreturn_annotationÚemptyÚ parametersÚvaluesržrwÚ_POSITIONAL_ONLYr�ÚdefaultÚ_POSITIONAL_OR_KEYWORDÚ_VAR_POSITIONALÚ _KEYWORD_ONLYÚ _VAR_KEYWORDÚ annotationrk)r(ÚsigÚexrr^r_Ú posonlyargsr\Ú annotationsrhÚ kwdefaultsÚparamržrwrrrrgÜsj ü €û     €   €   €  €ÿrgÚArgInfozargs varargs keywords localscCs t|jƒ\}}}t||||jƒS)a9Get 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. 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'locals' is the locals dictionary of the given frame.)r`rÒrƒÚf_locals)Úframerr^r_rrrÚ getargvalues;sr†cCstt|ddƒdkrdd„}t d|t|ƒ¡St|tjƒrt|ƒSt|tƒr6|j d|fvr.|j S|j d|j St|ƒS)Nr ÚtypingcSs| ¡}| d¡S)Nztyping.)ÚgroupÚ removeprefix)r ÚtextrrrÚreplGs zformatannotation..replz[\w\.]+rùr²) rrÚsubÚreprrrÚ GenericAliasrrr r´)r|Z base_moduler‹rrrÚformatannotationEs  r�cst|ddƒ‰‡fdd„}|S)Nr cs t|ˆƒSr�)r�)r|©r-rrÚ_formatannotationUr©z5formatannotationrelativeto.._formatannotation)r)r2r‘rr�rÚformatannotationrelativetoSs  r’rcCód|S©NÚ*r©rwrrrrz\r{rzcCr“©Nú**rr–rrrrz]r{cCó dt|ƒS©Nú=©r�©rrrrrz^r,cCr“)Nz -> r)rŠrrrrz_r{c s8ddlm} | dtdd�‡‡‡fdd„}g}|r!t|ƒt|ƒ}t|ƒD]\}}||ƒ}|r=||kr=|| |||ƒ}| |¡q%|durQ| |||ƒƒ¡n|rX| d ¡|rv|D]}||ƒ}|rp||vrp|| ||ƒ7}| |¡q\|durƒ| | ||ƒƒ¡d d  |¡d }d ˆvrš|| ˆˆd ƒƒ7}|S)a÷Format an argument spec from the values returned by getfullargspec. The first seven arguments are (args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations). The other five arguments are the corresponding optional formatting functions that are called to turn names and values into strings. The last argument is an optional function to format the sequence of arguments. Deprecated since Python 3.5: use the `signature` function and `Signature` objects. r)rezc`formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directlyr%rbcs(ˆ|ƒ}|ˆvr|dˆˆ|ƒ7}|S)Nz: r)Úargrœ©r€r�Ú formatargrrÚformatargandannotationtsz-formatargspec..formatargandannotationNr•ú(ú, ú)ro)rdrerfr¬Ú enumerater�rÉ)rr^r_rhr\rir€r Ú formatvarargsÚ formatvarkwÚ formatvalueZ formatreturnsr�rer¡ÚspecsZ firstdefaultrÌržÚspecZ kwonlyargrœrrŸrÚ formatargspecYs< ý     r«cCr“r”rr–rrrrz•r{cCr“r—rr–rrrrz–r{cCr™ršrœr�rrrrz—r,c Cs†|||fdd„}g} tt|ƒƒD] } |  ||| ƒ¡q|r+|  ||ƒ|||ƒ¡|r:|  ||ƒ|||ƒ¡dd | ¡dS)afFormat 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.cSs||ƒ|||ƒSr�r)rwrr r¨rrrÚconvertžsz formatargvalues..convertr¢r£r¤)rÇr¬r�rÉ) rr^r_rr r¦r§r¨r¬r©rÌrrrÚformatargvalues“s  ÿr­cs”‡fdd„|Dƒ}t|ƒ}|dkr|d}n|dkr dj|Ž}ndj|dd…Ž}|dd…=d  |¡|}td |||r=d nd |dkrDd nd|fƒ‚)Ncsg|] }|ˆvrt|ƒ‘qSrrœ)rrw©rurrrÖ«sz&_missing_arguments..rÃrr%z {} and {}z , {} and {}éþÿÿÿr£z*%s() missing %i required %s argument%s: %sÚ positionalú keyword-onlyrrã)r¬r­rÉr$)Úf_nameZargnamesÚposrurˆÚmissingrãÚtailrr®rÚ_missing_argumentsªs    þÿr¶c sÔt|ƒ|}t‡fdd„|Dƒƒ}|r|dk} d|f} n|r*d} d|t|ƒf} n t|ƒdk} tt|ƒƒ} d} |rOd} | |dkrCd nd||dkrKd ndf} td || | rWd nd|| |dkre|sed fƒ‚d fƒ‚) Ncsg|]}|ˆvr|‘qSrr)rržr®rrrÖ¼sz_too_many..rÃz at least %dTz from %d to %drz7 positional argument%s (and %d keyword-only argument%s)rãz5%s() takes %s positional argument%s but %d%s %s givenZwasZwere)r¬rr$) r²rZkwonlyr^ZdefcountZgivenruZatleastZ kwonly_givenZpluralr}Z kwonly_sigÚmsgrr®rÚ _too_manyºs0    ÿÿÿÿÿr¸cOsît|ƒ}|\}}}}}} } |j} i} t|ƒr!|jdur!|jf|}t|ƒ} t|ƒ}|r/t|ƒnd}t| |ƒ}t|ƒD] }||| ||<q:|rQt||d…ƒ| |<t||ƒ}|r]i| |<|  ¡D])\}}||vrz|sst d| |fƒ‚|| ||<qa|| vr†t d| |fƒ‚|| |<qa| |kr›|s›t | ||||| | ƒ| |krÐ|d||…}|D] }|| vr¶t | |d| ƒq©t |||d…ƒD]\}}|| vrÏ||| |<qÁd}|D]}|| vrë| rç|| vrç| || |<qÔ|d7}qÔ|rõt | |d| ƒ| S)zíGet the mapping of arguments to values. A dict is returned, with keys the function argument names (including the names of the * and ** arguments, if any), and values the respective bound values from 'positional' and 'named'.Nrz*%s() got an unexpected keyword argument %rz(%s() got multiple values for argument %rTrÃF)rgr¹r9rºr¬rÆrÇr”r~r)r$r¸r¶r¥)r(r°Znamedrªrr^r_rhr\rir+r²Z arg2valueZnum_posZnum_argsZ num_defaultsÚnrÌZpossible_kwargsÚkwrZreqržr´ÚkwargrrrÚ getcallargsÏsl    ÿ ÿ   ÿ€ € €r¼Ú ClosureVarsz"nonlocals globals builtins unboundc Csöt|ƒr|j}t|ƒstd |¡ƒ‚|j}|jduri}n dd„t|j|jƒDƒ}|j }|  dt j ¡}t |ƒr:|j }i}i}tƒ}|jD]/}|dvrKqDz||||<WqDtysz||||<Wntyp| |¡YnwYqDwt||||ƒS)a Get the mapping of free variables to their current values. Returns a named tuple of dicts mapping the current nonlocal, global and builtin references as seen by the body of the function. A final set of unbound names that could not be resolved is also provided. ú{!r} is not a Python functionNcSsi|]\}}||j“qSr)Ú cell_contents)rÚvarZcellrrrr"sÿÿz"getclosurevars..Ú __builtins__)ÚNoneÚTrueÚFalse)r9rMr>r$r­rQÚ __closure__ÚzipÚ co_freevarsr r rùr r3r~Úco_namesÚKeyErrorrƒr½) r(ÚcodeZ nonlocal_varsZ global_nsZ builtin_nsZ global_varsZ builtin_varsZ unbound_namesrwrrrÚgetclosurevars sB   þ   ÿ€ýÿrËÚ Tracebackz+filename lineno function code_context indexrÃcCsØt|ƒr |j}|j}n|j}t|ƒstd |¡ƒ‚t|ƒp t|ƒ}|dkr^|d|d}zt |ƒ\}}Wn t yBd}}Yn wt dt |t |ƒ|ƒƒ}||||…}|d|}nd}}t|||jj||ƒS)a“Get information about a frame or traceback object. A tuple of five things is returned: the filename, the line number of the current line, the function name, a list of lines of context from the source code, and the index of the current line within that list. The optional second argument specifies the number of lines of context to return, which are centered around the current line.z'{!r} is not a frame or traceback objectrrÃr%N)rhÚ tb_linenorÑÚf_linenorjr$r­rôrÔr$rÐÚmaxrÆr¬rÌrÒrG)r…Úcontextrrår(rÊr#ÚindexrrrÚ getframeinfoDs&  ÿrÒcCr )zCGet the line number from a frame object, allowing for optimization.)rΩr…rrrÚ getlinenodsrÔÚ FrameInforÓcCs4g}|r|ft||ƒ}| t|Ž¡|j}|s|S)zÐGet a list of records for a frame and all higher (calling) frames. Each record contains a frame object, filename, line number, function name, a list of lines of context, and index within the context.)rÒr�rÕÚf_back)r…rÐÚ framelistÚ frameinforrrÚgetouterframesksýrÙcCs6g}|r|jft||ƒ}| t|Ž¡|j}|s|S)zÑGet a list of records for a traceback's frame and all lower frames. Each record contains a frame object, filename, line number, function name, a list of lines of context, and index within the context.)rÑrÒr�rÕÚtb_next)ÚtbrÐr×rØrrrÚgetinnerframeswsýrÜcCsttdƒr t d¡SdS)z?Return the frame of the caller or None if this is not possible.Ú _getframerÃN)rrrÝrrrrÚ currentframeƒsrÞcCstt d¡|ƒS)z@Return a list of records for the stack above the caller's frame.rÃ)rÙrrÝ©rÐrrrr‡srcCstt ¡d|ƒS)zCReturn a list of records for the stack below the current exception.r%)rÜrÚexc_inforßrrrÚtrace‹srácCstjd |¡S)Nr¡)rr r;)ÚklassrrrÚ_static_getmro”órãcCs6i}zt |d¡}Wn tyYnwt ||t¡S©Nr )r2Ú__getattribute__r‚r r Ú _sentinel)r*ÚattrZ instance_dictrrrÚ_check_instance—s ÿréc CsFt|ƒD]}tt|ƒƒtur z|j|WStyYqwqtSr�)rãÚ_shadowed_dictrrçr rÉ)rârèÚentryrrrÚ _check_class s  ÿýrìcCs$zt|ƒWdStyYdSw©NFT)rãr$rVrrrÚ_is_type©s   þÿrîc Csltjd}t|ƒD]*}z | |¡d}Wn tyYq wt|ƒtjur/|jdkr/|j|us3|Sq t Srå) rr rãr;rÉrrr¹r�rç)râÚ dict_attrrëZ class_dictrrrrê°s   ÿ  ÿrêc Csþt}t|ƒst|ƒ}t|ƒ}|tust|ƒtjurt||ƒ}n|}t||ƒ}|turB|turBtt|ƒdƒturBtt|ƒdƒturB|S|turH|S|turN|S||urutt|ƒƒD]}tt|ƒƒturtz|j |WSt ysYqXwqX|tur{|St |ƒ‚)aôRetrieve attributes without triggering dynamic lookup via the descriptor protocol, __getattr__ or __getattribute__. Note: this function may not be able to retrieve all attributes that getattr can fetch (like dynamically created attributes) and may find attributes that getattr can't (like descriptors that raise AttributeError). It can also return descriptor objects instead of instance members in some cases. See the documentation for details. r;r<) rçrîrrêrrDrérìrãr rÉr‚)r*rèrwZinstance_resultrârïZ klass_resultrërrrÚgetattr_static¾s<  €  ÿýrðÚ GEN_CREATEDÚ GEN_RUNNINGÚ GEN_SUSPENDEDÚ GEN_CLOSEDcCó,|jrtS|jdur tS|jjdkrtStS)a#Get current state of a generator-iterator. Possible states are: GEN_CREATED: Waiting to start execution. GEN_RUNNING: Currently being executed by the interpreter. GEN_SUSPENDED: Currently suspended at a yield expression. GEN_CLOSED: Execution has completed. Nr³)Ú gi_runningròÚgi_framerôÚf_lastirñró)Ú generatorrrrÚgetgeneratorstateóó   rúcCs6t|ƒs td |¡ƒ‚t|ddƒ}|dur|jjSiS)z« Get the mapping of generator local variables to their current values. A dict is returned, with the keys the local variable names and values the bound values.z{!r} is not a Python generatorr÷N)r_r$r­rr÷r„)rùr…rrrÚgetgeneratorlocalss  rüÚ CORO_CREATEDÚ CORO_RUNNINGÚCORO_SUSPENDEDÚ CORO_CLOSEDcCrõ)a&Get current state of a coroutine object. Possible states are: CORO_CREATED: Waiting to start execution. CORO_RUNNING: Currently being executed by the interpreter. CORO_SUSPENDED: Currently suspended at an await expression. CORO_CLOSED: Execution has completed. Nr³)Ú cr_runningrþÚcr_framerrørýrÿ)Ú coroutinerrrÚgetcoroutinestaterûrcCst|ddƒ}|dur |jSiS)z« Get the mapping of coroutine local variables to their current values. A dict is returned, with the keys the local variable names and values the bound values.rN)rr„)rr…rrrÚgetcoroutinelocals/s rÚ from_bytescCs6zt||ƒ}Wn tyYdSwt|tƒs|SdS)zŠPrivate helper. Checks if ``cls`` has an attribute named ``method_name`` and returns it only if it is a pure python function. N)rr‚rÚ_NonUserDefinedCallables)rŽZ method_nameZmethrrrÚ"_signature_get_user_defined_methodKs ÿ ýrc Cs’|j}t| ¡ƒ}|jp d}|jpi}|r||}z |j|i|¤Ž}Wnty9}z d |¡} t| ƒ|‚d}~wwd} | ¡D]€\} } z|j | } Wn t yTYn4w| j t ur`|  | ¡q@| j tur{| |vrtd} | j| d�|| <n|  | j¡q@| j turˆ| j| d�|| <| rÀ| j t us‘J‚| j tur¨|| jtd�}||| <| | ¡q@| j ttfvrµ| | ¡q@| j turÀ|  | j¡q@|j| ¡d�S) z‘Private helper to calculate how 'wrapped_sig' signature will look like after applying a 'functools.partial' object (or alike) on it. rz+partial object {!r} has incorrect argumentsNFT)rw©rž©rt)rtrr)rÚkeywordsÚ bind_partialr$r­r%Ú argumentsrÉržrvrÈrxÚreplacerwrzÚ move_to_endr{ryru)Ú wrapped_sigr'Z extra_argsZ old_paramsÚ new_paramsZ partial_argsZpartial_keywordsZbar~r·Ztransform_to_kwonlyÚ param_namer‚Z arg_valueZ new_paramrrrÚ_signature_get_partial[sV     €þ ÿ           €rcCslt|j ¡ƒ}|r|djttfvrtdƒ‚|dj}|ttfvr(|dd…}n|t ur0tdƒ‚|j |d�S)zWPrivate helper to transform signatures for unbound functions to bound methods. rzinvalid method signaturerÃNzinvalid argument typer ) r”rtruržr{rzr%rxrvryr)r}ÚparamsržrrrÚ_signature_bound_method§s   rcCs&t|ƒpt|ƒpt|tƒp|ttfvS)zxPrivate helper to test if `obj` is a callable that might support Argument Clinic's __text_signature__ protocol. )rnrArrrr2rVrrrÚ_signature_is_builtinÁsÿþ ûrcCsœt|ƒrt|ƒr dSt|ddƒ}t|ddƒ}t|dtƒ}t|dtƒ}t|ddƒ}t|tjƒoMt|tƒoM|dup;t|tƒoM|dupDt|t ƒoMt|t ƒpM|duS)zþPrivate helper to test if `obj` is a duck type of FunctionType. A good example of such objects are functions compiled with Cython, which have all attributes that a pure Python function would have, but have their code statically compiled. Fr¹NrQÚ __defaults__Ú__kwdefaults__r ) r#r6rÚ_voidrrrkrr”r )r*rwrÊrhr�r€rrrrOÍs       ÿþýürOcCsr| d¡sJ‚| d¡}|dkr| d¡}| d¡}|dks$||ks$J‚| d¡}|dks3||ks3J‚|d|…S)zÿ Private helper to get first parameter name from a __text_signature__ of a builtin method, which should be in the following format: '($param1, ...)'. Assumptions are that the first argument won't have a default value or an annotation. z($ú,r³r¤ú:r›r%)rÚfind)rªr³ZcposrrrÚ_signature_get_bound_paramæs     rcCsX|s|ddfSd}d}dd„| d¡Dƒ}t|ƒj}t |¡}d}d}g}|j} d} tj} tj} t|ƒ} | j tj ks|d krt|rgJ‚|dusmJ‚d}| d }q>|| kr…|d kr…|dus‚J‚| }q>|r•d}|| kr‘|d ks•| d ƒ| |ƒ|dkr¡| dƒq>d  |¡}|||fS)aÊ Private helper function. Takes a signature in Argument Clinic's extended signature format. Returns a tuple of three things: * that signature re-rendered in standard Python syntax, * the index of the "self" parameter (generally 0), or None if the function does not have a "self" parameter, and * the index of the last "positional only" parameter, or None if the signature has no positional-only parameters. NcSsg|] }|r| d¡‘qS)Úascii)Úencode)rÚlrrrrÖsz6_signature_strip_non_python_syntax..rÂFrrTrÃú/ú$r¤r£ú r) rµrBrCr9r�r?ÚOPÚ ERRORTOKENÚnextrÚENCODINGÚstringrÉ)Ú signatureÚself_parameterÚlast_positional_onlyrÊrùZ token_streamZ delayed_commaZskip_next_commarŠrƒZcurrent_parameterr$r%Útrr(Úclean_signaturerrrÚ"_signature_strip_non_python_syntaxýs\     €  r.Tc sTddl‰|j‰t|ƒ\}}}d|d}zˆ |¡}Wn ty&d}Ynwt|ˆjƒs4td ˆ¡ƒ‚|j d} g‰ˆj ‰d}i‰t ˆddƒ} | rVt j  | d¡}|rV|j‰t j  ¡‰ ‡fdd„‰‡‡‡ fd d „‰ G‡‡ fd d „d ˆjƒ‰ˆf‡‡‡‡‡‡‡‡fd d„ } t| jjƒ} t| jjƒ} tj| | dd�}|dur ˆj‰nˆj‰ttt|ƒƒƒD]\}\}}| ||ƒ||kr½ˆj‰q«| jjr̈j‰| | jjˆƒˆj‰t| jj| jj ƒD] \}}| ||ƒqØ| jj!rðˆj"‰| | jj!ˆƒ|du�r#ˆsùJ‚t ˆddƒ}|du}t#|ƒ}|�r|�s|�rˆ $d¡n ˆdj%ˆjd�} | ˆd<|ˆ|j d�S)zdPrivate helper to parse content of '__text_signature__' and return a Signature based on it. rNzdef fooz: passú"{!r} builtin has invalid signaturer cs(t|ˆjƒsJ‚|jdurtdƒ‚|jS)Nz'Annotations are not currently supported)rržr|r%)r ©rrrÚ parse_namejs z&_signature_fromstr..parse_namec slzt|ˆƒ}Wnty!zt|ˆƒ}Wn tyt‚wYnwt|tttttt dƒfƒr4ˆ  |¡St‚r�) rÚ NameErrorr%rrÚintÚfloatÚbytesrPrÚConstant)rãr)rÚ module_dictÚsys_module_dictrrÚ wrap_valueps  ÿÿþ z&_signature_fromstr..wrap_valuecs4eZdZ‡‡fdd„Z‡‡fdd„Z‡fdd„ZdS)z,_signature_fromstr..RewriteSymbolicscsdg}|}t|ˆjƒr| |j¡|j}t|ˆjƒs t|ˆjƒs!t‚| |j¡d t |ƒ¡}ˆ|ƒS)Nr²) rrŒr�rèrÚNamer%rªrÉÚreversed)r½r Úar¹r©rr9rrÚvisit_Attribute~s   þ  z<_signature_fromstr..RewriteSymbolics.visit_Attributecst|jˆjƒs tƒ‚ˆ|jƒSr�)rÚctxZLoadr%rªr r=rrÚ visit_NameŠs z7_signature_fromstr..RewriteSymbolics.visit_Namecs˜| |j¡}| |j¡}t|ˆjƒrt|ˆjƒst‚t|jˆjƒr*ˆ |j|j¡St|jˆj ƒr:ˆ |j|j¡St|jˆj ƒrJˆ |j|jB¡St‚r�) rÚleftÚrightrr6r%ÚopZAddrZSubZBitOr)r½r rArBr0rrÚ visit_BinOp�s  z8_signature_fromstr..RewriteSymbolics.visit_BinOpN)r¹r r´r>r@rDrr=rrÚRewriteSymbolics}s rEcshˆ|ƒ}|r'|tur'z ˆƒ |¡}ˆ |¡}Wnty&td ˆ¡ƒd‚wˆ ˆ|ˆ|ˆd�¡dS)Nr/©rwr|)Ú_emptyrZ literal_evalr%r­r�)Z name_nodeZ default_noderwrw)Ú ParameterrErrsržr*rtr1rrÚpžs   ÿz_signature_fromstr..p)Ú fillvaluerºr ©rr)&rÚ_parameter_clsr.rÚ SyntaxErrorrZModuler%r­Úbodyrsrrrr r rüZNodeTransformerr;rrhÚ itertoolsÚ zip_longestÚPOSITIONAL_ONLYÚPOSITIONAL_OR_KEYWORDr¥rWÚvarargÚVAR_POSITIONALÚ KEYWORD_ONLYrÆr\Ú kw_defaultsr»Ú VAR_KEYWORDr3rÈr)rŽr*rãrmr-r*r+Zprogramr-rSr,rIrrhrBrÌrwrwZ_selfZ self_isboundZ self_ismoduler) rHrErrsržr7r*rtr1r8r9rÚ_signature_fromstrEsrÿ  ÿ      !  €    rXcCsBt|ƒs td |¡ƒ‚t|ddƒ}|std |¡ƒ‚t||||ƒS)zHPrivate helper function to get signature for builtin callables. z%{!r} is not a Python builtin functionÚ__text_signature__Nz#no signature found for builtin {!r})rr$r­rr%rX)rŽr(rmrãrrrÚ_signature_from_builtinØsÿ rZc CsFd}t|ƒst|ƒr d}ntd |¡ƒ‚t|ddƒ}|r#t||||ƒS|j}|j} | j} | j } | j } | d| …} | j }| | | |…}t ||||d�}|j }|j}|rXt|ƒ}nd}g}| |}| }| d|…D]}|rntnt}| |t¡}| ||||d�¡|r†|d 8}qht| |d…ƒD]#\}}|r—tnt}| |t¡}| ||||||d �¡|r²|d 8}q�| jt@rÎ| | |}| |t¡}| |||td�¡|D]}t}|durÞ| |t¡}| |t¡}| |||t|d �¡qÐ| jt@�r| |}| jt@�r|d 7}| |}| |t¡}| |||td�¡||| d t¡|d �S) zCPrivate helper: constructs Signature for the given python function.FTr¾rYNrr)r|ržrÃ)r|ržrwro©rrÚ__validate_parameters__)r>rOr$r­rrXrLrQrUrTÚco_posonlyargcountrVr/rrr¬rvrxr rGr�r¥rRrXryrzrYr{)rŽr(rmrrrZis_duck_functionrãrHZ func_codeZ pos_countZ arg_namesZ posonly_countr°Zkeyword_only_countZ keyword_onlyr€rhr�Zpos_default_countrtZnon_default_countZ posonly_leftrwržr|ÚoffsetrwrÑrrrÚ_signature_from_functionès�      ÿ€   þ€    ÿ    þ    ÿ þr_)rlrmrrrc Cs’tjt||||||d�}t|ƒstd |¡ƒ‚t|tjƒr*||j ƒ}|r(t |ƒS|S|r>t |dd„d�}t|tjƒr>||ƒSz|j }Wn t yLYnw|dur_t|tƒs]td |¡ƒ‚|Sz|j} Wn t ymYn?wt| tjƒr¬|| jƒ} t| | dƒ}t| j ¡ƒd } | jtjur�|St|j ¡ƒ} | r¡| | d us¡J‚| f| } |j| d �St|ƒs´t|ƒr¾t||||||d �St|ƒrÉt|||d �St|tjƒrÙ||jƒ} t| |ƒSd}t|tƒ�rtt t|ƒd ƒ}|durñ||ƒ}n6d}t |dƒ}t |dƒ}d|j!v�r|}nd|j!v�r|}n|du�r|}n|du�r|}|du�r'||ƒ}|du�rs|j"dd…D]}z|j#}Wn t �yEY�q3w|�rQt$|||ƒS�q3t|j"v�rs|j%t&j%u�rl|j't&j'u�rl| (t&¡St)d |¡ƒ‚n0t|t*ƒ�s¤t t|ƒd ƒ}|du�r¤z||ƒ}Wnt)�y£}z d |¡}t)|ƒ|‚d}~ww|du�r²|�r°t |ƒS|St|tj+ƒ�rÂd |¡}t)|ƒ‚t)d |¡ƒ‚)zQPrivate helper function to get signature for arbitrary callable objects. )rlrmrrrnrz{!r} is not a callable objectcSst|dƒp t|tjƒS)NÚ __signature__)rrrr8r§rrrrzl s z*_signature_from_callable..r£Nz1unexpected object {!r} in __signature__ attributer�rr )rmrrr)rmÚ__call__Ú__new__rr³z(no signature found for builtin type {!r}zno signature found for {!r}z,no signature found for builtin function {!r}z+callable {!r} is not supported by signature),r&r'rpr#r$r­rrr8rMrr.r`r‚rqÚ_partialmethodÚ partialmethodr(rr”rtruržrHrTrr>rOr_rrZrrr r¡rYrXrr2rbÚ from_callabler%rrm)r*rlrmrrrrnZ_get_signature_ofr}rdrZfirst_wrapped_paramZ sig_paramsrZcallZfactory_methodÚnewZinitrxZtext_sigr~r·rrrrpG sâ ú     ÿ þ  ÿ      þÿ              ÿý  ÿ€     €þ  rpc@óeZdZdZdS)rz1A private marker - used in Parameter & Signature.N©r¹r r´r¸rrrrr órc@rg)rGz6Marker object for Signature.empty and Parameter.empty.NrhrrrrrG rirGc@s4eZdZdZdZdZdZdZdd„Ze dd „ƒZ d S) Ú_ParameterKindrrÃr%éécCr r�)Ú_name_r4rrrÚ__str__ sz_ParameterKind.__str__cCst|Sr�)Ú_PARAM_NAME_MAPPINGr4rrrÚ description sz_ParameterKind.descriptionN) r¹r r´rQrRrTrUrWrnr‘rprrrrrj srjzpositional-onlyzpositional or keywordzvariadic positionalr±zvariadic keywordc@s°eZdZdZdZeZeZe Z e Z e ZeZeedœdd„Zdd„Zdd „Zed d „ƒZed d „ƒZedd„ƒZedd„ƒZeeeedœdd„Zdd„Zdd„Zdd„Zdd„ZdS)rHaRepresents a parameter in a function signature. Has the following public attributes: * name : str The name of the parameter as a string. * default : object The default value for the parameter if specified. If the parameter has no default value, this attribute is set to `Parameter.empty`. * annotation The annotation for the parameter if specified. If the parameter has no annotation, this attribute is set to `Parameter.empty`. * kind : str Describes how argument values are bound to the parameter. Possible values: `Parameter.POSITIONAL_ONLY`, `Parameter.POSITIONAL_OR_KEYWORD`, `Parameter.VAR_POSITIONAL`, `Parameter.KEYWORD_ONLY`, `Parameter.VAR_KEYWORD`. )Ú_nameÚ_kindÚ_defaultÚ _annotationrFcCszt|ƒ|_Wntytd|›d�ƒ‚w|tur/|jttfvr/d}| |jj¡}t|ƒ‚||_||_ |tur=tdƒ‚t |t ƒsNd t |ƒj ¡}t|ƒ‚|ddkrz|dd… ¡rz|jtkrnd }| |jj¡}t|ƒ‚t|_d  |dd…¡}| ¡s…td  |¡ƒ‚||_dS) Nzvalue z is not a valid Parameter.kindz({} parameters cannot have default valuesz*name is a required attribute for Parameterzname must be a str, not a {}rr²rÃzLimplicit arguments must be passed as positional or keyword arguments, not {}z implicit{}z"{!r} is not a valid parameter name)rjrrr%rGryr{r­rprsrtrrrr¹r$ÚisdigitrxrvÚ isidentifierrq)r½rwržrwr|r·rrrrM s8 ÿ  ÿ zParameter.__init__cCs t|ƒ|j|jf|j|jdœfS)N©rsrt)rrqrrrsrtr4rrrÚ __reduce__u s  ÿþzParameter.__reduce__cCó|d|_|d|_dS)Nrsrtrw©r½ÚstaterrrÚ __setstate__{ ó zParameter.__setstate__cCr r�)rqr4rrrrw r¢zParameter.namecCr r�)rsr4rrrrwƒ r¢zParameter.defaultcCr r�)rtr4rrrr|‡ r¢zParameter.annotationcCr r�)rrr4rrrrž‹ r¢zParameter.kind)rwržr|rwcCsL|tur|j}|tur|j}|tur|j}|tur|j}t|ƒ||||d�S)z+Creates a customized copy of the Parameter.rF)rrqrrrtrsr)r½rwržr|rwrrrr� szParameter.replacecCsŠ|j}|j}|jturd |t|jƒ¡}|jtur1|jtur(d |t|jƒ¡}n d |t|jƒ¡}|tkr;d|}|S|t krCd|}|S)Nz{}: {}z{} = {}z{}={}r•r˜) ržrqrtrGr­r�rsr�ryr{)r½ržÚ formattedrrrrn¡ s  ÿ  ýzParameter.__str__cCód |jj|¡S)Nz <{} "{}">©r­r»r¹r4rrrÚ__repr__· räzParameter.__repr__cCst|j|j|j|jfƒSr�)Úhashrwržr|rwr4rrrÚ__hash__º szParameter.__hash__cCsJ||urdSt|tƒs tS|j|jko$|j|jko$|j|jko$|j|jkS©NT)rrHÚNotImplementedrqrrrsrt©r½ÚotherrrrÚ__eq__½ s   ÿ þ ýzParameter.__eq__N)r¹r r´r¸r·rvrQrxrRryrTrzrUr{rWrGrsrrxr|r‘rwrwr|ržrrrnr�rƒrˆrrrrrH- s6(     ÿ rHc@sheZdZdZdZdd„Zedd„ƒZedd„ƒZed d „ƒZ d d „Z d d„Z dd„Z dd„Z dd„ZdS)ÚBoundArgumentsaÿResult of `Signature.bind` call. Holds the mapping of arguments to the function's parameters. Has the following public attributes: * arguments : dict An ordered mutable mapping of parameters' names to arguments' values. Does not contain arguments' default values. * signature : Signature The Signature object that created this instance. * args : tuple Tuple of positional arguments values. * kwargs : dict Dict of keyword arguments values. )r Ú _signatureÚ __weakref__cCs||_||_dSr�)r rŠ)r½r)r rrrrÛ r zBoundArguments.__init__cCr r�)rŠr4rrrr)ß r¢zBoundArguments.signaturec Cs„g}|jj ¡D]5\}}|jttfvrt |ƒSz|j|}Wn ty,Yt |ƒSw|jtkr8|  |¡q|  |¡qt |ƒSr�) rŠrtr)ržr{rzr rÉryÚextendr�r”)r½rrr‚ržrrrrã sò  ô   zBoundArguments.argsc Cs�i}d}|jj ¡D];\}}|s"|jttfvrd}n||jvr"d}q |s%q z|j|}Wn ty5Yq w|jtkrA| |¡q |||<q |Srí) rŠrtr)ržr{rzr rÉÚupdate)r½ÚkwargsZkwargs_startedrr‚ržrrrrŽú s(  ÿ   zBoundArguments.kwargsc Csš|j}g}|jj ¡D]:\}}z | |||f¡Wq tyE|jtur*|j}n|jt ur2d}n |jt ur:i}nYq | ||f¡Yq wt |ƒ|_dS)zåSet default values for missing arguments. For variable-positional arguments (*args) the default is an empty tuple. For variable-keyword arguments (**kwargs) the default is an empty dict. rN) r rŠrtr)r�rÉrwrGržryr{r )r½r Z new_argumentsrwr‚ÚvalrrrÚapply_defaults s      õ zBoundArguments.apply_defaultscCs2||urdSt|tƒs tS|j|jko|j|jkSr„)rr‰r…r)r r†rrrrˆ4 s   ÿzBoundArguments.__eq__cCry)NrŠr ©rŠr rzrrrr|< r}zBoundArguments.__setstate__cCs|j|jdœS)Nr‘r‘r4rrrÚ __getstate__@ ózBoundArguments.__getstate__cCs@g}|j ¡D] \}}| d ||¡¡qd |jjd |¡¡S)Nz{}={!r}z <{} ({})>r£)r r)r�r­r»r¹rÉ)r½rržrrrrr�C szBoundArguments.__repr__N)r¹r r´r¸r·rr‘r)rrŽr�rˆr|r’r�rrrrr‰È s    r‰c@sàeZdZdZdZeZeZe Z d,e ddœdd„Z e dd „ƒZ e d d „ƒZe dddd d œdd„ƒZedd„ƒZedd„ƒZeedœdd„Zdd„Zdd„Zdd„Zd dœdd„Zd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„Zd*d+„ZdS)-rqaA Signature object represents the overall signature of a function. It stores a Parameter object for each parameter accepted by the function, as well as information specific to the function itself. A Signature object has the following public attributes and methods: * parameters : OrderedDict An ordered mapping of parameters' names to the corresponding Parameter objects (keyword-only arguments are in the same order as listed in `code.co_varnames`). * return_annotation : object The annotation for the return type of the function if specified. If the function has no annotation for its return type, this attribute is set to `Signature.empty`. * bind(*args, **kwargs) -> BoundArguments Creates a mapping from positional and keyword arguments to parameters. * bind_partial(*args, **kwargs) -> BoundArguments Creates a partial mapping from positional and keyword arguments to parameters (simulating 'functools.partial' behavior.) )Ú_return_annotationÚ _parametersNTr[c Csä|durtƒ}n_|r^tƒ}t}d}|D]I}|j}|j} ||kr-d} |  |j|j¡} t| ƒ‚||kr5d}|}|ttfvrK|jt urI|rHd} t| ƒ‚nd}| |vrXd | ¡} t| ƒ‚||| <qn tdd„|Dƒƒ}t   |¡|_ ||_ dS) z„Constructs Signature from the given list of Parameter objects and 'return_annotation'. All arguments are optional. NFz7wrong parameter order: {} parameter before {} parameterz-non-default argument follows default argumentTzduplicate parameter name: {!r}css�|]}|j|fVqdSr�r–©rr‚rrrr�™ ræz%Signature.__init__..)rrvržrwr­rpr%rxrwrGrÚMappingProxyTyper•r”) r½rtrrr\rZtop_kindZ kind_defaultsr‚ržrwr·rrrrh sDÿÿ  ú   ß#  zSignature.__init__cCótjdtdd�t||ƒS)zƒConstructs Signature for the given python function. Deprecated since Python 3.5, use `Signature.from_callable()`. z_inspect.Signature.from_function() is deprecated since Python 3.5, use Signature.from_callable()r%rb)rdrerfr_©rŽr(rrrÚ from_functionž óþ zSignature.from_functioncCr˜)z„Constructs Signature for the given builtin function. Deprecated since Python 3.5, use `Signature.from_callable()`. z^inspect.Signature.from_builtin() is deprecated since Python 3.5, use Signature.from_callable()r%rb)rdrerfrZr™rrrÚ from_builtinª r›zSignature.from_builtinF©Úfollow_wrappedrrrcCst||||||d�S)z3Constructs Signature for the given callable object.)rnrlrrr)rp)rŽr*ržrrrrrrre¶ sþzSignature.from_callablecCr r�)r•r4rrrrt¾ r¢zSignature.parameterscCr r�©r”r4rrrrr r¢zSignature.return_annotation)rtrrcCs0|tur |j ¡}|tur|j}t|ƒ||d�S)z�Creates a customized copy of the Signature. Pass 'parameters' and/or 'return_annotation' arguments to override them in the new copy. rK)rrtrur”r)r½rtrrrrrrÆ s ÿzSignature.replacecCs8tdd„|j ¡Dƒƒ}dd„|j ¡Dƒ}|||jfS)Ncss�|] }|jtkr|VqdSr�)ržrzr–rrrr�Ö s € ÿÿz(Signature._hash_basis..cSsi|] }|jtkr|j|“qSr)ržrzrwr–rrrrÙ s ÿz)Signature._hash_basis..)r”rtrurr)r½rÚ kwo_paramsrrrÚ _hash_basisÕ s zSignature._hash_basiscCs(| ¡\}}}t| ¡ƒ}t|||fƒSr�)r¡Ú frozensetrur‚)r½rr rrrrrrƒÞ s zSignature.__hash__cCs*||urdSt|tƒs tS| ¡| ¡kSr„)rrqr…r¡r†rrrrˆã s  zSignature.__eq__©r'c Cs|i}t|j ¡ƒ}d}t|ƒ} zt|ƒ}Wn`tyvzt|ƒ} Wn ty-YYn˜w| jtkr5Yn�| j|vrR| jtkrMd} | j | jd�} t | ƒd‚| f}Yns| jt ks\| j t ura| f}Ynd|rh| f}Yn]d} | j | jd�} t | ƒd‚wzt|ƒ} Wn ty‰t dƒd‚w| jt tfvr–t dƒd‚| jtkr«|g} |  |¡t| ƒ|| j<n| j|vr¿| jtkr¿t dj | jd�ƒd‚||| j<qd} t ||¡D]P} | jt kr×| } qÍ| jtkrÝqÍ| j} z| | ¡}Wn"t�y |�s| jtk�r| j t u�rt dj | d�ƒd‚YqÍw| jtk�rt dj | jd�ƒ‚||| <qÍ|�r8| du�r,||| j<n t d j tt|ƒƒd�ƒ‚| ||¡S) z#Private method. Don't use directly.rTzA{arg!r} parameter is positional only, but was passed as a keyword)ržNz$missing a required argument: {arg!r}ztoo many positional argumentsz$multiple values for argument {arg!r}z*got an unexpected keyword argument {arg!r})rBrtrur&Ú StopIterationržryrwrvr­r$r{rwrGrzrŒr”rOÚchainrÈrÉÚ_bound_arguments_cls)r½rrŽr'r rtZ parameters_exZarg_valsZarg_valr‚r·ruZ kwargs_paramrrrrÚ_bindê sº    ý       Û(   ÿÿÿ  ÿÿþ ºJ   ÿÿ€ù þ    ÿÿ zSignature._bindcOs | ||¡S)z¹Get a BoundArguments object, that maps the passed `args` and `kwargs` to the function's signature. Raises `TypeError` if the passed arguments can not be bound. ©r§©r½rrŽrrrÚbindm rGzSignature.bindcOs|j||dd�S)zÂGet a BoundArguments object, that partially maps the passed `args` and `kwargs` to the function's signature. Raises `TypeError` if the passed arguments can not be bound. Tr£r¨r©rrrr t szSignature.bind_partialcCs t|ƒt|j ¡ƒfd|jifS©Nr”)rr”r•rur”r4rrrrx{ sþzSignature.__reduce__cCs|d|_dSr«rŸrzrrrr|€ r“zSignature.__setstate__cCr)Nz<{} {}>r€r4rrrr�ƒ räzSignature.__repr__c CsÀg}d}d}|j ¡D]2}t|ƒ}|j}|tkrd}n |r$| d¡d}|tkr+d}n |tkr8|r8| d¡d}| |¡q |rE| d¡d d  |¡¡}|j t ur^t |j ƒ}|d |¡7}|S)NFTr!r•z({})r£z -> {}) rtrurržrvr�ryrzr­rÉrrrGr�) r½rœZrender_pos_only_separatorZrender_kw_only_separatorr‚r~ržZrenderedZannorrrrn† s0       zSignature.__str__r�)r¹r r´r¸r·rHrLr‰r¦rGrsrršršrœrer‘rtrrrrr¡rƒrˆr§rªr rxr|r�rnrrrrrqJ s@ ÿ6   ÿ    rqr�cCstj|||||d�S)z/Get a signature object for the passed callable.r�)rqre)r*ržrrrrrrr)´ sÿr)c CsÀddl}ddl}| ¡}|jddd�|jdddd d �| ¡}|j}| d ¡\}}}z | |¡}} Wn(ty\} zd   |t | ƒj | ¡} t | t jd �t  d¡WYd} ~ nd} ~ ww|rp| d¡} | }| D]} t|| ƒ}qh| j t jvr‚t dt jd �t  d¡|jrØt d  |¡ƒt d  t| ƒ¡ƒt d  | j¡ƒ|| ur¹t d  t| jƒ¡ƒt| dƒr¸t d  | j¡ƒnzt|ƒ\}}Wn tyÊYnwt d  |¡ƒt dƒdSt t|ƒƒdS)z6 Logic for inspecting an object given at command line rNr2zCThe object to be analysed. It supports the 'module:qualname' syntax)Úhelpz-dz --detailsÚ store_truez9Display info about the module rather than its source code)Úactionr¬rzFailed to import {} ({}: {}))rÿr%r²z#Can't get info for builtin modules.rÃz Target: {}z Origin: {}z Cached: {}z Loader: {}Ú__path__zSubmodule search path: {}zLine: {}rÂ)ÚargparserÚÚArgumentParserÚ add_argumentÚ parse_argsr2Ú partitionÚ import_moduler–r­rr¹ÚprintrÚstderrÚexitrµrÚbuiltin_module_namesZdetailsrôÚ __cached__r�rçrr¯r$rJ)r°rÚÚparserrÚtargetZmod_nameZ has_attrsZattrsr*r-r�r·ÚpartsÚpartÚ__rrrrÚ_mainº sdþþþ€û     € ÿ rÀrÎr�)F)rÃ)r)T)TNNF)°r¸Ú __author__rdrÚdisZcollections.abcrcÚenumÚimportlib.machineryrÚrOròr×rrr9r?rrdr&rùÚoperatorrrrrZmod_dictZCOMPILER_FLAG_NAMESr)r‰rŠrsr/r3r6r9rArCrrFrKr>rUrWrYrZr\r_rarfrhrjrlrnroryr‹rŒrŸr}r.r±r¶r¿rÁrÀrÔrßrôrørúrýrñr–rZ NodeVisitorrr$r*r+r-rFrIrJrKrRrSr`rarjrkrgrƒr†r�r’rr«r­r¶r¸r¼r½rËrÌrÒrÔÚ_fieldsrÕrÙrÜrÞrrár2rçrãrérìrîrêrðrñròrórôrúrürýrþrÿrrrrraZ_WrapperDescriptorÚallZ_MethodWrapperr3r Z_ClassMethodWrapperrmrrrrrrOrr.rXrZr_rprrGÚIntEnumrjrQrvrRrxrTryrUrzrWr{rorHr‰rqr)rÀr¹rrrrÚs‚  t            ,t$ >   /D-6   ÿ ]  ù; ü < 5         0  ý L  H  ÿ` ûBû l : ÿ