Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3 \ÞÈã @s¢dZdôZddlZddlZddlZddlZddlZddlZ ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlmZddlmZmZeƒZx"ejjƒD]\ZZeede<q¾WdõZd d „Z d d „Z!dd„Z"dd„Z#dd„Z$e%edƒ�rdd„Z&ndd„Z&e%edƒ�r6dd„Z'ndd„Z'dd„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„Z5död8d9„Z6ed:d;ƒZ7dd?„Z9dd@œdAdB„Z:dCdD„Z;dEdF„ZdKdL„Z?dMdN„Z@dOdP„ZAdQdR„ZBd÷dSdT„ZCiZDiZEdødUdV„ZFdWdX„ZGdYdZ„ZHGd[d\„d\eIƒZJGd]d^„d^ƒZKd_d`„ZLdadb„ZMdcdd„ZNdedf„ZOdùdhdi„ZPedjdkƒZQdldm„ZRdndo„ZSedpdqƒZTdrds„ZUedtduƒZVdvdw„ZWedxdyƒZXdzd{„ZYdúd|d}„ZZd~d„Z[dddfiie\d€d�„d‚d�„dƒd�„d„d�„eZf d…d†„Z]e\d‡d�„dˆd�„d‰d�„fdŠd‹„Z^dŒd�„Z_dŽd�„Z`d�d‘„Zaed’d“ƒZbd”d•„Zced–d—ƒZddûd˜d™„Zedšd›„ZfedœdüedjgƒZhdýdždŸ„Zidþd d¡„Zjd¢d£„Zkdÿd¤d¥„Zl�dd¦d§„ZmenƒZod¨d©„Zpdªd«„Zqd¬d­„Zrd®d¯„Zsd°d±„Zteofd²d³„Zud´ZvdµZwd¶Zxd·Zyd¸d¹„Zzdºd»„Z{d¼Z|d½Z}d¾Z~d¿ZdÀ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ŒffdÇdÈ„Z�dÉdÊ„ZŽdËdÌ„Z�dÍd΄Z�dÏdЄZ‘dÑdÒ„Z’�ddÔdÕ„Z“�ddÖdׄZ”dØdÙ„Z•dÓdÓdÚœ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¥e¥j¦Z§Gdèdé„déƒZ¨Gdêdë„dëƒZ©Gdìdí„díƒZªdÓdîœdïdð„Z«dñdò„Z¬e­dók�rže¬ƒdS(aGet 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 formatargspec(), 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 úKa-Ping Yee ú'Yury Selivanov éN)Ú attrgetter)Ú namedtupleÚ OrderedDictZCO_éécCs 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))Ú isinstanceÚtypesÚ ModuleType)Úobject©r ú/usr/lib64/python3.6/inspect.pyÚismodule@srcCs 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)r Útype)r r r rÚisclassIsrcCs 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 __func__ function object containing implementation of method __self__ instance to which this method is bound)r r Ú MethodType)r r r rÚismethodQsrcCs:t|ƒst|ƒst|ƒrdSt|ƒ}t|dƒo8t|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__)rrÚ isfunctionrÚhasattr)r Útpr r rÚismethoddescriptor[srcCs8t|ƒst|ƒst|ƒrdSt|ƒ}t|dƒo6t|dƒS)a€Return true if the object is a data descriptor. Data descriptors have both a __get__ and a __set__ 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.Frr)rrrrr)r rr r rÚisdatadescriptorosrÚMemberDescriptorTypecCs t|tjƒS)z�Return true if the object is a member descriptor. Member descriptors are specialized descriptors defined in extension modules.)r r r)r r r rÚismemberdescriptorsrcCsdS)z�Return true if the object is a member descriptor. Member descriptors are specialized descriptors defined in extension modules.Fr )r r r rr‡sÚGetSetDescriptorTypecCs t|tjƒS)z�Return true if the object is a getset descriptor. getset descriptors are specialized descriptors defined in extension modules.)r r r)r r r rÚisgetsetdescriptor�srcCsdS)z�Return true if the object is a getset descriptor. getset descriptors are specialized descriptors defined in extension modules.Fr )r r r rr˜scCs t|tjƒS)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)r r Ú FunctionType)r r r rrŸs rcCs tt|ƒst|ƒo|jjt@ƒS)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.)ÚboolrrÚ__code__Úco_flagsZ CO_GENERATOR)r r r rÚisgeneratorfunction¬sr#cCs tt|ƒst|ƒo|jjt@ƒS)zuReturn true if the object is a coroutine function. Coroutine functions are defined with "async def" syntax. )r rrr!r"Z CO_COROUTINE)r r r rÚiscoroutinefunction´sr$cCs tt|ƒst|ƒo|jjt@ƒS)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. )r rrr!r"ZCO_ASYNC_GENERATOR)r r r rÚisasyncgenfunction¼sr%cCs t|tjƒS)z7Return true if the object is an asynchronous generator.)r r ÚAsyncGeneratorType)r r r rÚ isasyncgenÅsr'cCs t|tjƒS)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)r r Ú GeneratorType)r r r rÚ isgeneratorÉsr)cCs t|tjƒS)z)Return true if the object is a coroutine.)r r Ú CoroutineType)r r r rÚ iscoroutineÚsr+cCs6t|tjƒp4t|tjƒr(t|jjt@ƒp4t|tj j ƒS)z?Return true if object can be passed to an ``await`` expression.) r r r*r(r Úgi_coder"ZCO_ITERABLE_COROUTINEÚ collectionsÚabcÚ Awaitable)r r r rÚ isawaitableÞs  r0cCs t|tjƒS)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))r r Ú TracebackType)r r r rÚ istracebackåsr2cCs t|tjƒS)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)r r Ú FrameType)r r r rÚisframeïs r4cCs t|tjƒS)aEReturn 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_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 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)r r ÚCodeType)r r r rÚiscodeýsr6cCs t|tjƒS)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)r r ÚBuiltinFunctionType)r r r rÚ isbuiltinsr8cCs t|ƒpt|ƒpt|ƒpt|ƒS)zdSx&|jj ƒD]\}}t |ddƒrJdSqJWx@|j D]6}x0t |dfƒD] }t ||dƒ}t |ddƒr€dSq€WqnWdS)z:Return true if the object is an abstract base class (ABC).FTÚ__abstractmethods__Ú__isabstractmethod__N) r rÚ __flags__ÚTPFLAGS_IS_ABSTRACTÚ issubclassr.ÚABCMetarÚ__dict__ÚitemsÚgetattrÚ __bases__)r ÚnameÚvalueÚbaser r rÚ isabstract%s"        rGc Cs&t|ƒr|ft|ƒ}nf}g}tƒ}t|ƒ}yBx<|jD]2}x,|jjƒD]\}}t|tj ƒrH|j |ƒqHWq8WWnt k r„YnXxŠ|D]‚} yt || ƒ} | |kr¨t ‚Wn:t k räx$|D]}| |jkrÀ|j| } PqÀWwŒYnX| sö|| ƒ�r|j | | fƒ|j | ƒqŒW|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.cSs|dS)Nrr )Zpairr r rÚfszgetmembers..)Úkey)rÚgetmroÚsetÚdirrCr@rAr r ÚDynamicClassAttributeÚappendÚAttributeErrorrBÚaddÚsort) r Z predicateÚmroÚresultsÚ processedÚnamesrFÚkÚvrIrEr r rÚ getmembers=s:       rXÚ Attributezname kind defining_class objectcCs\t|ƒ}tt|ƒƒ}tdd„|Dƒƒ}|f|}||}t|ƒ}x:|D]2}x,|jjƒD]\}}t|tjƒrV|j |ƒqVWqFWg} t ƒ} �xÎ|D�]Ä} d} d} d}| | k�rŒy| dkr¼t dƒ‚t || ƒ} Wn"t k rê}zWYdd}~Xn¢Xt | d| ƒ} | |k�rŒd} d}x(|D] }t || dƒ}|| k�r|}�qWxH|D]@}y|j || ƒ}Wntk �rh�w:YnX|| k�r:|}�q:W|dk �rŒ|} x4|D],}| |jk�r’|j| }| |k�rº|} P�q’W| dk�rÎqŽ| dk �rÜ| n|}t|tƒ�röd}|}n@t|tƒ�r d}|}n*t|tƒ�r"d }|}nt|ƒ�r2d }nd }| j t| || |ƒƒ| j| ƒqŽW| 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. cSsg|]}|ttfkr|‘qSr )rr )Ú.0Úclsr r rú ˆsz(classify_class_attrs..Nr@z)__dict__ is special, don't want the proxyÚ __objclass__z static methodz class methodÚpropertyÚmethodÚdata)rJrÚtuplerLr@rAr r rMrNrKÚ ExceptionrBÚ __getattr__rOÚ staticmethodÚ classmethodr^r9rYrP)r[rRZmetamroZ class_basesZ all_basesrUrFrVrWÚresultrTrDZhomeclsZget_objZdict_objÚexcZlast_clsZsrch_clsZsrch_objÚobjÚkindr r rÚclassify_class_attrsks€                          rjcCs|jS)zHReturn tuple of base classes (including cls) in method resolution order.)Ú__mro__)r[r r rrJßsrJ)Ústopcs€ˆdkrdd„}n ‡fdd„}|}t|ƒ|i}tjƒ}xD||ƒrz|j}t|ƒ}||ksbt|ƒ|krptdj|ƒƒ‚|||<q8W|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)NÚ __wrapped__)r)Úfr r rÚ _is_wrapperöszunwrap.._is_wrappercst|dƒoˆ|ƒ S)Nrm)r)rn)rlr rroùsz!wrapper loop when unwrapping {!r})ÚidÚsysÚgetrecursionlimitrmÚlenÚ ValueErrorÚformat)ÚfuncrlrornÚmemoZrecursion_limitZid_funcr )rlrÚunwrapås     rxcCs|jƒ}t|ƒt|jƒƒS)zBReturn the indent size, in spaces, at the start of a line of text.)Ú expandtabsrsÚlstrip)ÚlineZexpliner r rÚ indentsize sr|cCsRtjj|jƒ}|dkrdSx&|jjdƒdd…D]}t||ƒ}q0Wt|ƒsNdS|S)NÚ.réÿÿÿÿ)rqÚmodulesÚgetÚ __module__Ú __qualname__ÚsplitrBr)rvr[rDr r rÚ _findclasssr„c CsÔt|ƒrRxD|jD]:}|tk ry |j}Wntk r<wYnX|dk r|SqWdSt|ƒr–|jj}|j}t|ƒrŽt t ||dƒdƒ|jkrŽ|}n|j }nît |ƒrÈ|j}t |ƒ}|dksÂt ||ƒ|k rÆdSn¼t |ƒ�r |j}|j}t|ƒoø|jd||jk�r|}n|j }nzt|tƒ�rJ|j}|j}t |ƒ}|dk�sDt ||ƒ|k �r„dSn:t|ƒ�s^t|ƒ�r€|j}|j}t ||ƒ|k �r„dSndSxJ|jD]@}yt ||ƒj}Wntk �rº�wŒYnX|dk �rŒ|S�qŒWdS)NÚ__func__r})rrkr Ú__doc__rOrr…Ú__name__Ú__self__rBÚ __class__rr„r8r‚r r^Úfgetrrr])rhrFÚdocrDÚselfr[rvr r rÚ_finddocsb        r�cCsdy |j}Wntk rdSX|dkrNy t|ƒ}Wnttfk rLdSXt|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†rOr�Ú TypeErrorr ÚstrÚcleandoc)r r‹r r rÚgetdocSs   r‘c Csüy|jƒjdƒ}Wntk r&dSXtj}x:|dd…D]*}t|jƒƒ}|r.N)ÚosÚpathÚbasenameÚ importlibÚ machineryÚ all_suffixesrQÚendswith)r£ZfnameÚsuffixesZneglenr¡r r rÚ getmodulenameœs  rªcsºt|ƒ‰tjjdd…}|tjjdd…7}t‡fdd„|Dƒƒr`tjjˆƒdtjj d‰nt‡fdd„tjj Dƒƒr~dStjj ˆƒrŽˆSt t |ˆƒddƒdk r¨ˆSˆtjkr¶ˆ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. Nc3s|]}ˆj|ƒVqdS)N)r¨)rZÚs)Úfilenamer rú ¯sz getsourcefile..rc3s|]}ˆj|ƒVqdS)N)r¨)rZr«)r¬r rr­²sÚ __loader__)r r¥r¦ÚDEBUG_BYTECODE_SUFFIXESÚOPTIMIZED_BYTECODE_SUFFIXESÚanyr¢r£ÚsplitextÚSOURCE_SUFFIXESÚEXTENSION_SUFFIXESÚexistsrBÚ getmoduleÚ linecacheÚcache)r Zall_bytecode_suffixesr )r¬rÚ getsourcefile¨s   r¹cCs,|dkrt|ƒpt|ƒ}tjjtjj|ƒƒ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)r Ú _filenamer r rÚ getabsfile¾sr½c Cs‚t|ƒr |St|dƒr$tjj|jƒS|dk rD|tkrDtjjt|ƒSyt||ƒ}Wntk rfdSX|tkr€tjjt|ƒSxnt tjj ƒƒD]\\}}t|ƒr�t|dƒr�|j }|t j|dƒkrÂq�|t |<t|ƒ}|j t|<ttjj|ƒ<q�W|tk�r tjjt|ƒStjd}t|dƒ�s$dSt||j ƒ�rLt||j ƒ}||k�rL|Stjd}t||j ƒ�r~t||j ƒ} | |k�r~|SdS)zAReturn the module an object was defined in, or None if not found.r�NrœÚ__main__r‡Úbuiltins)rrrqrr€r�Ú modulesbyfiler½rŽÚlistrArœÚ_filesbymodnamer‡r¢r£ÚrealpathrB) r r¼ÚfileÚmodnameÚmodulernÚmainZ mainobjectZbuiltinZ builtinobjectr r rr¶ÊsD         r¶c CsÒt|ƒ}|rtj|ƒn$t|ƒ}|jdƒo2|jdƒszsource code not availablezcould not get source coderz^(\s*)class\s*z\bÚcrzcould not find class definitionÚco_firstlinenoz"could not find function definitionz>^(\s*def\s)|(\s*async\s+def\s)|(.*(?yt|ƒ\}}Wnttfk r(dSXt|ƒròd}|rR|ddd…dkrRd}x(|t|ƒkrz||jƒdkrz|d}qTW|t|ƒkrî||dd…dkrîg}|}x>|t|ƒkrâ||dd…dkrâ|j||jƒƒ|d}q¦Wdj|ƒS�nH|dk�r:t ||ƒ}|d}|dk�r:||j ƒdd…dk�r:t ||ƒ|k�r:||jƒj ƒg}|dk�rØ|d}||jƒj ƒ}x\|dd…dk�rÖt ||ƒ|k�rÖ|g|dd…<|d}|dk�rÂP||jƒj ƒ}�q|Wx*|�r|djƒdk�rg|dd…<�qÚWx*|�r.|d jƒdk�r.g|d d…<�qWdj|ƒSdS) zwGet lines of comments immediately preceding an object's source code. Returns None when source can't be found. Nréz#!rÚú#)r×rØr~r~) rÕrÎrŽrrsÚstriprNryr˜r|rz)r r™rÔÚstartZcommentsÚendršZcommentr r rÚ getcommentsAsJ  "   $ & rÜc@s eZdZdS)Ú EndOfBlockN)r‡r�r‚r r r rrÝnsrÝc@s eZdZdZdd„Zdd„ZdS)Ú BlockFinderz@Provide a tokeneater() method to detect the end of a code block.cCs.d|_d|_d|_d|_d|_d|_d|_dS)NrFr)ršÚislambdaÚstartedÚpasslineÚ indecoratorÚdecoratorhasargsÚlast)rŒr r rÚ__init__rszBlockFinder.__init__cCs&|j rD|j rD|dkr d|_n|d kr<|dkr6d|_d|_d|_nÞ|dkrZ|jrXd|_nÈ|dkrv|jrtd|_d|_n¬|tjkr°d|_|d |_|jršt‚|jr®|j r®d|_nr|jr¸nj|tj krÖ|j d |_ d|_nL|tj k�r|j d |_ |j d k�r"t‚n"|j d k�r"|tj tj fk�r"t‚dS) Nú@TÚdefÚclassÚlambdaú(ú)Frr)rçrèré)ràrârßrárãÚtokenizeÚNEWLINErärÝÚINDENTršÚDEDENTÚCOMMENTÚNL)rŒrÚtokenZsrowcolZerowcolr{r r rÚ tokeneater{sB       zBlockFinder.tokeneaterN)r‡r�r‚r†rårór r r rrÞps rÞc CsZtƒ}y,tjt|ƒjƒ}x|D]}|j|ŽqWWnttfk rJYnX|d|j…S)z@Extract the block of code at the top of the given list of lines.N) rÞrìÚgenerate_tokensÚiterÚ__next__rórÝÚIndentationErrorrä)r™Z blockfinderÚtokensZ_tokenr r rÚgetblock§s rùcCsbt|ƒ}t|ƒ\}}t|ƒr"|j}t|ƒs>t|ƒrF|jjdkrF|dfSt||d…ƒ|dfSdS)a£Return a list of source lines 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 the lines corresponding to the object and the line number indicates where in the original source file the first line of code was found. An OSError is raised if the source code cannot be retrieved.zrNr) rxrÕr2r�rr4ržÚco_namerù)r r™rÔr r rÚgetsourcelines²s rûcCst|ƒ\}}dj|ƒ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×)rûr˜)r r™rÔr r rÚ getsourceÇs rücCsVg}|jtddƒd�x:|D]2}|j||jfƒ||kr|jt||||ƒƒqW|S)z-Recursive helper function for getclasstree().r�r‡)rI)rQrrNrCÚwalktree)ÚclassesÚchildrenÚparentrSrÊr r rrýÑs rýFcCs¤i}g}xn|D]f}|jrbxZ|jD]<}||kr4g||<|||krN||j|ƒ|r ||kr Pq Wq||kr|j|ƒqWx|D]}||kr~|j|ƒq~Wt||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)rCrNrý)rþÚuniquerÿÚrootsrÊrr r rÚ getclasstreeÛs"      rÚ Argumentszargs, varargs, varkwcCs t|ƒ\}}}}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.)Ú _getfullargsr)ÚcoÚargsÚvarargsÚ kwonlyargsÚvarkwr r rÚgetargsøsr c Csœt|ƒstdj|ƒƒ‚|j}|j}|j}t|d|…ƒ}t||||…ƒ}d}||7}d}|jt@rx|j|}|d}d}|jt @r�|j|}||||fS)aGet information about the arguments accepted by a code object. Four things are returned: (args, varargs, kwonlyargs, varkw), where 'args' and 'kwonlyargs' are lists of argument names, and 'varargs' and 'varkw' are the names of the * and ** arguments or None.z{!r} is not a code objectNrr) r6rŽruÚ co_argcountÚ co_varnamesÚco_kwonlyargcountrÁr"Ú CO_VARARGSÚCO_VARKEYWORDS) rÚnargsrUZnkwargsrr Ústeprr r r rrs"    rÚArgSpeczargs varargs keywords defaultscCsDtjdtdd�t|ƒ\}}}}}}}|s.|r6tdƒ‚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Ö)Ú stacklevelzdFunction has keyword-only parameters or annotations, use getfullargspec() API which can support them)ÚwarningsÚwarnÚDeprecationWarningÚgetfullargspecrtr)rvrrr Údefaultsr ÚkwonlydefaultsÚannr r rÚ getargspec s  rÚ FullArgSpeczGargs, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotationsc Cs`yt|ddtd�}Wn,tk r@}ztdƒ|‚WYdd}~XnXg}d}d}g}f}i}f}i} |j|jk rx|j|d<x¾|jjƒD]°} | j} | j } | t kr¨|j | ƒnv| t krÔ|j | ƒ| j | jk rÒ|| j f7}nJ| tkrâ| }n<| tk�r|j | ƒ| j | jk �r| j | | <n| tk�r| }| j| jk r„| j|| <q„W| �sBd} |�sLd}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Úsigclszunsupported callableNÚreturn)Ú_signature_from_callableÚ SignaturerbrŽÚreturn_annotationÚemptyÚ parametersÚvaluesrirDÚ_POSITIONAL_ONLYrNÚ_POSITIONAL_OR_KEYWORDÚdefaultÚ_VAR_POSITIONALÚ _KEYWORD_ONLYÚ _VAR_KEYWORDÚ annotationr) rvÚsigÚexrrr r rÚ annotationsÚ kwdefaultsÚparamrirDr r rrAsT            rÚ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žr4Úf_locals)Úframerrr r r rÚ getargvaluesžsr7cCsVt|ddƒdkr t|ƒjddƒSt|tƒrN|jd|fkr>|jS|jd|jSt|ƒS)Nr�Ztypingztyping.r×r¿r})rBÚreprÚreplacer rr�r‚)r.Z base_moduler r rÚformatannotation¨s r:cst|ddƒ‰‡fdd„}|S)Nr�cs t|ˆƒS)N)r:)r.)rÆr rÚ_formatannotation³sz5formatannotationrelativeto.._formatannotation)rB)r r;r )rÆrÚformatannotationrelativeto±s  r<cCsd|S)NÚ*r )rDr r rrHºsrHcCsd|S)Nz**r )rDr r rrH»scCs dt|ƒS)Nú=)r8)rEr r rrH¼scCsd|S)Nz -> r )Útextr r rrH½sc s(‡‡‡fdd„} g}|r(t|ƒt|ƒ}xFt|ƒD]:\}}| |ƒ}|rb||krb|| |||ƒ}|j|ƒq2W|dk rŒ|j|| |ƒƒƒn|rš|jdƒ|rÚx:|D]2}| |ƒ}|rÌ||krÌ|| ||ƒ7}|j|ƒq¤W|dk rô|j| | |ƒƒƒddj|ƒd}dˆk�r$|| ˆˆ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.cs(ˆ|ƒ}|ˆkr$|dˆˆ|ƒ7}|S)Nz: r )Úargrf)r1r:Ú formatargr rÚformatargandannotationÆsz-formatargspec..formatargandannotationNr=rêz, rër!)rsÚ enumeraterNr˜)rrr rr rr1rAÚ formatvarargsÚ formatvarkwÚ formatvalueZ formatreturnsr:rBÚspecsZ firstdefaultr›r@ÚspecZ kwonlyargrfr )r1r:rArÚ formatargspec·s2     rIcCsd|S)Nr=r )rDr r rrHçscCsd|S)Nz**r )rDr r rrHèscCs dt|ƒS)Nr>)r8)rEr r rrHésc CsŠ|||fdd„}g} x&tt|ƒƒD]} | j||| ƒƒq"W|rZ| j||ƒ|||ƒƒ|rx| j||ƒ|||ƒƒddj| ƒ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||ƒ|||ƒS)Nr )rDÚlocalsrArFr r rÚconvertðsz formatargvalues..convertrêz, rë)r–rsrNr˜) rrr rJrArDrErFrKrGr›r r rÚformatargvaluesås rLcs˜‡fdd„|Dƒ}t|ƒ}|dkr,|d}n>|dkr@dj|Ž}n*dj|dd…Ž}|dd…=dj|ƒ|}td |||rzd nd |dkrˆd nd |fƒ‚dS)Ncsg|]}|ˆkrt|ƒ‘qSr )r8)rZrD)r'r rr\ýsz&_missing_arguments..rrrÖz {} and {}z , {} and {}z, z*%s() missing %i required %s argument%s: %sÚ positionalz keyword-onlyr×r«éþÿÿÿrN)rsrur˜rŽ)Úf_nameZargnamesÚposr'rUÚmissingr«Útailr )r'rÚ_missing_argumentsüs    rSc sÔt|ƒ|}t‡fdd„|Dƒƒ}|r:|dk} d|f} n2|rTd} d|t|ƒf} nt|ƒdk} tt|ƒƒ} d} |ržd} | |dkr†d nd||dkr–d ndf} td || | r®d nd|| |dkrÆ| rÆd nd fƒ‚dS) Ncsg|]}|ˆkr|‘qSr r )rZr@)r'r rr\sz_too_many..rz at least %dTz from %d to %dr×z7 positional argument%s (and %d keyword-only argument%s)r«z5%s() takes %s positional argument%s but %d%s %s givenZwasZwere)rsr�rŽ) rOrZkwonlyrZdefcountZgivenr'ZatleastZ kwonly_givenZpluralr/Z kwonly_sigÚmsgr )r'rÚ _too_many s$    rUcOs6|d}|dd…}t|ƒ}|\}}}}} } } |j} i} t|ƒrV|jdk rV|jf|}t|ƒ}t|ƒ}|rrt|ƒnd}t||ƒ}x t|ƒD]}||| ||<qŠW|rºt||d…ƒ| |<t|| ƒ}|rÒi| |<xd|j ƒD]X\}}||k�r|�st d| |fƒ‚|| ||<qÜ|| k�r,t d| |fƒ‚|| |<qÜW||k�r^| �r^t | || |||| ƒ||k�rÚ|d||…}x&|D]}|| k�r~t | |d| ƒ�q~Wx8t |||d…ƒD] \}}|| k�r¶||| |<�q¶Wd}x>| D]6}|| k�rä| �r|| k�r| || |<n|d7}�qäW|�r2t | | 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'.rrNz*%s() got an unexpected keyword argument %rz(%s() got multiple values for argument %rTF)rr‡rrˆrsr•r–rarKrArŽrUrSrC)Zfunc_and_positionalZnamedrvrMrHrrr rr rrrOZ arg2valueZnum_posZnum_argsZ num_defaultsÚnr›Zpossible_kwargsÚkwrEZreqr@rQÚkwargr r rÚ getcallargs!sd                 rYÚ ClosureVarsz"nonlocals globals builtins unboundc Cst|ƒr|j}t|ƒs$tdj|ƒƒ‚|j}|jdkr:i}ndd„t|j|jƒDƒ}|j }|j dt j ƒ}t |ƒrt|j }i}i}tƒ}xn|jD]d}|d kr˜qŠy||||<WqŠtk rìy||||<Wntk ræ|j|ƒYnXYqŠXqŠWt||||ƒ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. z'{!r}' is not a Python functionNcSsi|]\}}|j|“qSr )Ú cell_contents)rZÚvarZcellr r rú vsz"getclosurevars..Ú __builtins__ÚNoneÚTrueÚFalse)r_r`ra)rr…rrŽrur!Ú __closure__ÚzipÚ co_freevarsÚ __globals__r€r¿r@rrKÚco_namesÚKeyErrorrPrZ) rvÚcodeZ nonlocal_varsZ global_nsZ builtin_nsZ global_varsZ builtin_varsZ unbound_namesrDr r rÚgetclosurevarsas8   riÚ Tracebackz+filename lineno function code_context indexcCsÚt|ƒr|j}|j}n|j}t|ƒs2tdj|ƒƒ‚t|ƒp@t|ƒ}|dkr¾|d|d}yt |ƒ\}}Wnt k r†d}}YqÆXt 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 objectrrrÖN)r2Ú tb_linenor�Úf_linenor4rŽrur¹r rÕrÎÚmaxr•rsrjržrú)r6ÚcontextÚlinenor¬rÚr™rÔÚindexr r rÚ getframeinfo˜s$rqcCs|jS)zCGet the line number from a frame object, allowing for optimization.)rl)r6r r rÚ getlineno¸srrÚ FrameInfor6cCs6g}x,|r0|ft||ƒ}|jt|Žƒ|j}qW|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.)rqrNrsÚf_back)r6rnÚ framelistÚ frameinfor r rÚgetouterframes¿s  rwcCs8g}x.|r2|jft||ƒ}|jt|Žƒ|j}qW|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�rqrNrsÚtb_next)Útbrnrurvr r rÚgetinnerframesËs  rzcCsttdƒrtjdƒSdS)z?Return the frame of the caller or None if this is not possible.Ú _getframerN)rrqr{r r r rÚ currentframe×sr|cCsttjdƒ|ƒS)z@Return a list of records for the stack above the caller's frame.r)rwrqr{)rnr r rÚstackÛsr}cCsttjƒd|ƒS)zCReturn a list of records for the stack below the current exception.rÖ)rzrqÚexc_info)rnr r rÚtraceßsrcCstjdj|ƒS)Nrk)rr@r)Úklassr r rÚ_static_getmroèsr�c Cs8i}ytj|dƒ}Wntk r(YnXtj||tƒS)Nr@)r Ú__getattribute__rOÚdictr€Ú _sentinel)rhÚattrZ instance_dictr r rÚ_check_instanceës r†c CsFx@t|ƒD]4}tt|ƒƒtkr y |j|Stk r<Yq Xq WtS)N)r�Ú_shadowed_dictrr„r@rg)r€r…Úentryr r rÚ _check_classôs  r‰c Cs&y t|ƒWntk r dSXdS)NFT)r�rŽ)rhr r rÚ_is_typeýs  rŠc Csntjd}x^t|ƒD]R}y|j|ƒd}Wntk r>YqXt|ƒtjko`|jdko`|j|ks|SqWt S)Nr@) rr@r�rrgr rr‡r]r„)r€Ú dict_attrrˆZ class_dictr r rr‡s   r‡c Cst}t|ƒs>t|ƒ}t|ƒ}|tks2t|ƒtjkrBt||ƒ}n|}t||ƒ}|tk r„|tk r„tt|ƒdƒtk r„tt|ƒdƒtk r„|S|tk r�|S|tk rœ|S||krêxDtt|ƒƒD]4}tt|ƒƒtkr²y |j |St k räYq²Xq²W|tk rö|St |ƒ‚dS)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. rrN) r„rŠrr‡r rr†r‰r�r@rgrO)rhr…r*Zinstance_resultr€r‹Z klass_resultrˆr r rÚgetattr_statics6     rŒÚ GEN_CREATEDÚ GEN_RUNNINGÚ GEN_SUSPENDEDÚ GEN_CLOSEDcCs,|jr tS|jdkrtS|jjdkr(tStS)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. Nrr~)Ú gi_runningrŽÚgi_framer�Úf_lastir�r�)Ú generatorr r rÚgetgeneratorstateGs   r•cCs:t|ƒstdj|ƒƒ‚t|ddƒ}|dk r2|jjSiSdS)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ŽrurBr’r5)r”r6r r rÚgetgeneratorlocalsYs  r–Ú CORO_CREATEDÚ CORO_RUNNINGÚCORO_SUSPENDEDÚ CORO_CLOSEDcCs,|jr tS|jdkrtS|jjdkr(tStS)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. Nrr~)Ú cr_runningr˜Úcr_frameršr“r—r™)Ú coroutiner r rÚgetcoroutinestateqs   ržcCs"t|ddƒ}|dk r|jSiSdS)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.rœN)rBr5)r�r6r r rÚgetcoroutinelocalsƒs rŸÚ from_bytesc Cs6yt||ƒ}Wntk r"dSXt|tƒs2|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)rBrOr Ú_NonUserDefinedCallables)r[Z method_nameÚmethr r rÚ"_signature_get_user_defined_methodŸs  r£cCs¬|j}t|jƒƒ}|jpf}|jp$i}|r2||}y|j||Ž}Wn6tk rx}zdj|ƒ} t| ƒ|‚WYdd}~XnXd} �x|jƒD�] \} } y|j | } Wnt k r¶YnlX| j t krÎ|j | ƒqŠ| j tk�r| |krød} | j| d�|| <n|j | jƒqŠ| j tk�r"| j| d�|| <| rŠ| j t k �s6t‚| j tk�rf|| jtd�}||| <|j| ƒqŠ| j ttfk�r‚|j| ƒqŠ| j tkrŠ|j | jƒqŠW|j|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. z+partial object {!r} has incorrect argumentsNFT)r*)ri)r&)r&rrArÚkeywordsÚ bind_partialrŽrurtÚ argumentsrgrir(r—r)r9rDr,ÚAssertionErrorÚ move_to_endr-r+r')Ú wrapped_sigÚpartialZ extra_argsZ old_paramsÚ new_paramsZ partial_argsZpartial_keywordsZbar0rTZtransform_to_kwonlyÚ param_namer3Z arg_valueZ new_paramr r rÚ_signature_get_partial¯sN              r­cCsnt|jjƒƒ}| s&|djttfkr.tdƒ‚|dj}|ttfkrR|dd…}n|t k rbtdƒ‚|j |d�S)zWPrivate helper to transform signatures for unbound functions to bound methods. rzinvalid method signaturerNzinvalid argument type)r&) rar&r'rir-r,rtr)r(r+r9)r/Úparamsrir r rÚ_signature_bound_methodûs  r¯cCs&t|ƒp$t|ƒp$t|tƒp$|ttfkS)zxPrivate helper to test if `obj` is a callable that might support Argument Clinic's __text_signature__ protocol. )r8rr r¡rr )rhr r rÚ_signature_is_builtins r°cCs–t|ƒ st|ƒrdSt|ddƒ}t|ddƒ}t|dtƒ}t|dtƒ}t|ddƒ}t|tjƒo”t|tƒo”|dkszt|tƒo”|dksŒt|t ƒo”t|t ƒS)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‡Nr!Ú __defaults__Ú__kwdefaults__Ú__annotations__) ÚcallablerrBÚ_voidr r r5r�rarƒ)rhrDrhrr2r1r r rÚ_signature_is_functionlike!s       r¶cCsr|jdƒst‚|jdƒ}|dkr*|jdƒ}|jdƒ}|d ksH||ksHt‚|jdƒ}|d ksf||ksft‚|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($ú,rrëú:r>rÖr~r~r~)rÍr§Úfind)rHrPZcposr r rÚ_signature_get_bound_param:s    rºcCsl|s|ddfSd}d}dd„|jdƒDƒ}t|ƒj}tj|ƒ}d}d}g}|j} d} tj} tj} t|ƒ} | j tj ksxt ‚xÞ|D]Ö} | j | j }}|| krî|dkrÂ|rªd}q~| s´t ‚d}| d 7} q~|d krî| sÔt ‚|dksàt ‚d}| d }q~|| k�r|d k�r|dk�st ‚| }q~|�r.r’Frr·Trú/ú$rëz, ú r×)rƒrõrörìrNròÚOPÚ ERRORTOKENÚnextrÚENCODINGr§Ústringr˜)Ú signatureÚself_parameterÚlast_positional_onlyr™r”Z token_streamZ delayed_commaZskip_next_commar?rPZcurrent_parameterrÁrÂÚtrrÅÚclean_signaturer r rÚ"_signature_strip_non_python_syntaxQsZ          rËTcs`|j‰t|ƒ\}}}d|d}ytj|ƒ}Wntk rFd}YnXt|tjƒsbtdj|ƒƒ‚|j d} g‰ˆj ‰t ƒ‰d}i‰t |ddƒ} | r¬t jj| dƒ}|r¬|j‰t jjƒ‰dd„‰‡‡fd d „‰ G‡ fd d „d tjƒ‰ˆf‡‡‡‡‡‡‡fd d„ } t| jjƒ} t| jjƒ} tj| | dd�}|dk �r8ˆj‰nˆj‰x.parse_namecsªyt|ˆƒ}Wn>tk rLyt|ˆƒ}Wntk rFtƒ‚YnXYnXt|tƒrbtj|ƒSt|ttfƒrztj |ƒSt|t ƒrŽtj |ƒS|dkr tj |ƒStƒ‚dS)NTF)TFN) ÚevalÚ NameErrorÚ RuntimeErrorr r�rÌZStrÚintÚfloatZNumÚbytesZBytesZ NameConstant)r«rE)Ú module_dictÚsys_module_dictr rÚ wrap_valueÂs       z&_signature_fromstr..wrap_valuecs$eZdZ‡fdd„Z‡fdd„ZdS)z,_signature_fromstr..RewriteSymbolicscs`g}|}x"t|tjƒr*|j|jƒ|j}q Wt|tjƒs>tƒ‚|j|jƒdj t |ƒƒ}ˆ|ƒS)Nr}) r rÌrYrNr…rEÚNamerÑrpr˜Úreversed)rŒrÍÚarVrE)r×r rÚvisit_AttributeÖs    z<_signature_fromstr..RewriteSymbolics.visit_Attributecst|jtjƒstƒ‚ˆ|jƒS)N)r ZctxrÌZLoadrtrp)rŒrÍ)r×r rÚ visit_Nameâsz7_signature_fromstr..RewriteSymbolics.visit_NameN)r‡r�r‚rÛrÜr )r×r rÚRewriteSymbolicsÕs rÝcsŠˆ|ƒ}|ˆkrdS|rp|tk rpyˆƒj|ƒ}tj|ƒ}Wntk rRˆ}YnX|ˆkr`dS|ˆk rl|n|}ˆjˆ|ˆ|ˆd�ƒdS)N)r*r.)Ú_emptyZvisitrÌZ literal_evalrtrN)Z name_nodeZ default_noder*rDÚo)Ú ParameterrÝr%Úinvalidrir&rÎr rÚpçs   z_signature_fromstr..p)Ú fillvaluerˆ)ri)r$)(Ú_parameter_clsrËrÌÚparseÚ SyntaxErrorr ZModulertruZbodyr%r rBrqrr€r@ÚcopyZNodeTransformerrÙrrÚ itertoolsÚ zip_longestÚPOSITIONAL_ONLYÚPOSITIONAL_OR_KEYWORDrCrÁZvarargÚVAR_POSITIONALÚ KEYWORD_ONLYrcr Z kw_defaultsrXÚ VAR_KEYWORDr§rr—r9)r[rhr«rrÊrÇrÈZprogramrÆrnZ module_namerârrrõr›rDr*Ú_selfZ self_isboundZ self_ismoduler ) ràrÝr%rárirÕr&rÎrÖr×rÚ_signature_fromstr™sl                  rðcCsBt|ƒstdj|ƒƒ‚t|ddƒ}|s4tdj|ƒƒ‚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})r°rŽrurBrtrð)r[rvrr«r r rÚ_signature_from_builtin&s ròcCsúd}t|ƒs(t|ƒrd}ntdj|ƒƒ‚|j}|j}|j}|j}t|d|…ƒ}|j }||||…} |j } |j } |j } | r†t | ƒ} nd} g}|| }x4|d|…D]$}| j|tƒ}|j|||td�ƒq¤WxBt||d…ƒD].\}}| j|tƒ}|j|||t| |d�ƒqÞW|jt@�rH|||}| j|tƒ}|j|||td�ƒxJ| D]B}t}| dk �rl| j|tƒ}| j|tƒ}|j|||t|d�ƒ�qNW|jt@�rä||}|jt@�r¼|d7}||}| j|tƒ}|j|||td�ƒ||| jd tƒ|d �S) zCPrivate helper: constructs Signature for the given python function.FTz{!r} is not a Python functionNr)r.ri)r.rir*rr!)r$Ú__validate_parameters__)rr¶rŽrurär!r r rarr³r±r²rsr€rÞrNr)rCr"rr+r,rr-)r[rvZis_duck_functionràZ func_codeZ pos_countZ arg_namesrMZkeyword_only_countZ keyword_onlyr1rr2Zpos_default_countr&Znon_default_countrDr.Úoffsetr*rpr r rÚ_signature_from_function6sj                     rõ)rrc!Cs¢t|ƒstdj|ƒƒ‚t|tjƒrDt|j|||d�}|r@t|ƒS|S|rtt |dd„d�}t|tjƒrtt||||d�Sy |j }Wnt k r’Yn&X|dk r¸t|t ƒs´tdj|ƒƒ‚|Sy |j }Wnt k rÖYn�Xt|tjƒ�rft|j|||d�}t||dƒ}t|jjƒƒd}|jtjk�r(|St|jjƒƒ}| �sP||dk �sPt‚|f|} |j| d �St|ƒ�szt|ƒ�r„t||ƒSt|ƒ�rœt|||d �St|tjƒ�rÆt|j|||d�}t||ƒSd}t|t ƒ�rât!t |ƒd ƒ} | dk �rt| |||d�}nJt!|d ƒ} | dk �r&t| |||d�}n$t!|d ƒ} | dk �rJt| |||d�}|dk�rTxL|j"dd…D]:} y | j#}Wnt k �rˆYnX|�rdt$|||ƒS�qdWt |j"k�rT|j%t&j%k�rÒ|j't&j'k�rÒt(t&ƒSt)dj|ƒƒ‚nrt|t*ƒ�sTt!t |ƒd ƒ} | dk �rTyt| |||d�}Wn8t)k �rR}zdj|ƒ}t)|ƒ|‚WYdd}~XnX|dk �rp|�rlt|ƒS|St|tj+ƒ�r�dj|ƒ}t)|ƒ‚t)dj|ƒƒ‚dS)zQPrivate helper function to get signature for arbitrary callable objects. z{!r} is not a callable object)rrr cSs t|dƒS)NÚ __signature__)r)rnr r rrH£sz*_signature_from_callable..)rlNz1unexpected object {!r} in __signature__ attributer)r&)rÚ__call__Ú__new__rårz(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)Nr~),r´rŽrur r rr"r…r¯rxrörOr#Ú_partialmethodÚ functoolsÚ partialmethodrvr­rar&r'riràrìr§r9rr¶rõr°ròrªrr£rkrñrðrår rørÆrtr¡r7)rhrrr r/rûr©Zfirst_wrapped_paramZ sig_paramsr«ZcallÚnewZinitrFZtext_sigr0rTr r rr"‡sê                             r"c@seZdZdZdS)rµz1A private marker - used in Parameter & Signature.N)r‡r�r‚r†r r r rrµP srµc@seZdZdZdS)rÞz6Marker object for Signature.empty and Parameter.empty.N)r‡r�r‚r†r r r rrÞT srÞc@s(eZdZdZdZdZdZdZdd„ZdS) Ú_ParameterKindrrrÖéécCs|jS)N)Ú_name_)rŒr r rÚ__str___ sz_ParameterKind.__str__N) r‡r�r‚rêrërìrírîrr r r rrýX s rýzpositional-onlyzpositional or keywordzvariadic positionalz keyword-onlyzvariadic keywordc@s°eZdZdZd!ZeZeZe Z e Z e ZeZeedœdd„Zd d „Zd d „Zed d„ƒZedd„ƒZedd„ƒZedd„ƒZeeeedœdd„Zdd„Zdd„Zdd„Zdd„Zd S)"ràaRepresents 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Ú _annotation)r*r.c Cs"yt|ƒ|_Wn$tk r2td|›d�ƒ‚YnX|tk rf|jttfkrfd}|jt|jƒƒ}t|ƒ‚||_||_ |tkr‚tdƒ‚t |t ƒs¤djt |ƒj ƒ}t|ƒ‚|ddko¾|dd…jƒ�r|jtkrèd }|jt|jƒƒ}t|ƒ‚t|_d j|dd…ƒ}|jƒ�std j|ƒƒ‚||_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}rzLimplicit arguments must be passed as positional or keyword arguments, not {}z implicit{}z"{!r} is not a valid parameter name)rýrrtrÞr+r-ruÚ_get_paramkind_descrrrr r�rr‡rŽÚisdigitr)r(Ú isidentifierr)rŒrDrir*r.rTr r rrå” s4   zParameter.__init__cCs t|ƒ|j|jf|j|jdœfS)N)rr)rrrrr)rŒr r rÚ __reduce__¼ s zParameter.__reduce__cCs|d|_|d|_dS)Nrr)rr)rŒÚstater r rÚ __setstate__ s zParameter.__setstate__cCs|jS)N)r)rŒr r rrDÆ szParameter.namecCs|jS)N)r)rŒr r rr*Ê szParameter.defaultcCs|jS)N)r)rŒr r rr.Î szParameter.annotationcCs|jS)N)r)rŒr r rriÒ szParameter.kind)rDrir.r*cCsL|tkr|j}|tkr|j}|tkr*|j}|tkr8|j}t|ƒ||||d�S)z+Creates a customized copy of the Parameter.)r*r.)rµrrrrr)rŒrDrir.r*r r rr9Ö szParameter.replacecCsj|j}|j}|jtk r(dj|t|jƒƒ}|jtk rDdj|t|jƒƒ}|tkrVd|}n|t krfd|}|S)Nz{}:{}z{}={}r=z**) rirrrÞrur:rr8r+r-)rŒriÚ formattedr r rrè s    zParameter.__str__cCsdj|jj|ƒS)Nz <{} "{}">)rur‰r‡)rŒr r rÚ__repr__û szParameter.__repr__cCst|j|j|j|jfƒS)N)ÚhashrDrir.r*)rŒr r rÚ__hash__þ szParameter.__hash__cCsJ||kr dSt|tƒstS|j|jkoH|j|jkoH|j|jkoH|j|jkS)NT)r ràÚNotImplementedrrrr)rŒÚotherr r rÚ__eq__ s    zParameter.__eq__N)rrrr)r‡r�r‚r†Ú __slots__r(rêr)rër+rìr,rír-rîrÞr%rår r r^rDr*r.rirµr9rr rrr r r rràt s*(    ràc@sheZdZdZdZdd„Zedd„ƒZed d „ƒZed d „ƒZ d d„Z dd„Z dd„Z dd„Z dd„ZdS)ÚBoundArgumentsaResult of `Signature.bind` call. Holds the mapping of arguments to the function's parameters. Has the following public attributes: * arguments : OrderedDict 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||_||_dS)N)r¦r)rŒrÆr¦r r rrå szBoundArguments.__init__cCs|jS)N)r)rŒr r rrÆ# szBoundArguments.signaturec Cs|g}xn|jjjƒD]^\}}|jttfkr*Py|j|}Wntk rNPYqX|jtkrf|j |ƒq|j |ƒqWt |ƒS)N) rr&rArir-r,r¦rgr+ÚextendrNra)rŒrr¬r3r@r r rr' s  zBoundArguments.argsc Cs–i}d}xˆ|jjjƒD]x\}}|sF|jttfkr6d}n||jkrFd}q|sLqy|j|}Wntk rnYqX|jtkr†|j|ƒq|||<qW|S)NFT) rr&rArir-r,r¦rgÚupdate)rŒÚkwargsZkwargs_startedr¬r3r@r r rr> s&    zBoundArguments.kwargsc Cs |j}g}x†|jjjƒD]v\}}y|j|||fƒWqtk rŒ|jtk rX|j}n"|jt krhf}n|jt krxi}nw|j||fƒYqXqWt |ƒ|_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. N) r¦rr&rArNrgr*rÞrir+r-r)rŒr¦Z new_argumentsrDr3Úvalr r rÚapply_defaults\ s    zBoundArguments.apply_defaultscCs2||kr dSt|tƒstS|j|jko0|j|jkS)NT)r rrrÆr¦)rŒrr r rrx s   zBoundArguments.__eq__cCs|d|_|d|_dS)Nrr¦)rr¦)rŒr r r rr € s zBoundArguments.__setstate__cCs|j|jdœS)N)rr¦)rr¦)rŒr r rÚ __getstate__„ szBoundArguments.__getstate__cCsDg}x(|jjƒD]\}}|jdj||ƒƒqWdj|jjdj|ƒƒS)Nz{}={!r}z <{} ({})>z, )r¦rArNrur‰r‡r˜)rŒrr@rEr r rr ‡ szBoundArguments.__repr__N)r¦rr)r‡r�r‚r†rrår^rÆrrrrr rr r r r rr s   rc@sÚeZdZdZd-ZeZeZe Z d.e ddœdd„Z e d d „ƒZ e d d „ƒZe dd œdd„ƒZedd„ƒZedd„ƒZeedœdd„Zdd„Zdd„Zdd„Zddœdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„ZdS)/r#aA 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Ú _parametersNT)r$róc Csö|dkrtƒ}nÐ|rÎtƒ}t}d}x¼t|ƒD]œ\}}|j} |j} | |krjd} | jt|ƒt| ƒƒ} t| ƒ‚n| |krzd}| }| ttfkr¦|j t kr¢|r¦d} t| ƒ‚nd}| |krÀdj| ƒ} t| ƒ‚||| <q,Wntdd„|Dƒƒ}t j |ƒ|_ ||_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|fVqdS)N)rD)rZr3r r rr­Ý sz%Signature.__init__..)rr(rCrirDrurrtr)r*rÞr ÚMappingProxyTyperr) rŒr&r$rór®Ztop_kindZ kind_defaultsÚidxr3rirDrTr r rrå¬ s>         zSignature.__init__cCstjdtdd�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Ö)r)rrrrõ)r[rvr r rÚ from_functionã s zSignature.from_functioncCstjdtdd�t||ƒS)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Ö)r)rrrrò)r[rvr r rÚ from_builtinï s zSignature.from_builtin)Úfollow_wrappedcCst|||d�S)z3Constructs Signature for the given callable object.)r r)r")r[rhr#r r rÚ from_callableû szSignature.from_callablecCs|jS)N)r)rŒr r rr& szSignature.parameterscCs|jS)N)r)rŒr r rr$ szSignature.return_annotation)r&r$cCs0|tkr|jjƒ}|tkr |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. )r$)rµr&r'rr)rŒr&r$r r rr9 s  zSignature.replacecCs8tdd„|jjƒDƒƒ}dd„|jjƒDƒ}|||jfS)Ncss|]}|jtkr|VqdS)N)rir,)rZr3r r rr­ sz(Signature._hash_basis..cSsi|]}|jtkr||j“qSr )rir,rD)rZr3r r rr] sz)Signature._hash_basis..)rar&r'r$)rŒr®Ú kwo_paramsr r rÚ _hash_basis szSignature._hash_basiscCs(|jƒ\}}}t|jƒƒ}t|||fƒS)N)r&Ú frozensetr'r)rŒr®r%r$r r rr! s zSignature.__hash__cCs*||kr dSt|tƒstS|jƒ|jƒkS)NT)r r#rr&)rŒrr r rr& s  zSignature.__eq__F)rªcCs tƒ}t|jjƒƒ}f}t|ƒ}�xxy t|ƒ}WnÈtk røy t|ƒ} Wntk rbPYn’X| jtkrrPn‚| j|kr¬| jt kr¢d} | j | jd�} t | ƒd‚| f}PnH| jt ksÀ| j tk rÊ| f}Pn*|rØ| f}Pnd} | j | jd�} t | ƒd‚Yq$Xy t|ƒ} Wn tk �r&t dƒd‚Yq$X| jt tfk�rBt dƒd‚| jtk�rn|g} | j|ƒt| ƒ|| j<P| j|k�rŽt dj | jd�ƒd‚||| j<q$Wd} x¾tj||ƒD]®} | jt k�rÆ| } �q®| jtk�rÖ�q®| j} y|j| ƒ}WnHtk �r2| �r.| jtk�r.| j tk�r.t dj | d�ƒd‚Yn(X| jt k�rRt dj | jd�ƒ‚||| <�q®W|�r”| dk �r|||| j<nt dj tt|ƒƒd�ƒ‚|j||ƒS)z#Private method. Don't use directly.zA{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})rrõr&r'rÃÚ StopIterationrir+rDr(rurŽr-r*rÞr,rrarèÚchainr—rgÚ_bound_arguments_cls)rŒrrrªr¦r&Z parameters_exZarg_valsZarg_valr3rTr'Z kwargs_paramr¬r r rÚ_bind- s”                   zSignature._bindcOs|dj|dd…|ƒ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. rrN)r+)rrr r rÚbind° szSignature.bindcOs|dj|dd…|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. rrNT)rª)r+)rrr r rr¥· szSignature.bind_partialcCs t|ƒt|jjƒƒfd|jifS)Nr)rrarr'r)rŒr r rr ¾ szSignature.__reduce__cCs|d|_dS)Nr)r)rŒr r r rr à szSignature.__setstate__cCsdj|jj|ƒS)Nz<{} {}>)rur‰r‡)rŒr r rr Æ szSignature.__repr__c CsÄg}d}d}xr|jjƒD]d}t|ƒ}|j}|tkr8d}n|rJ|jdƒd}|tkrXd}n|tkrr|rr|jdƒd}|j|ƒqW|rŽ|jdƒdjdj |ƒƒ}|j t k rÀt |j ƒ}|dj|ƒ7}|S)NFTr¾r=z({})z, z -> {}) r&r'r�rir(rNr+r,rur˜r$rÞr:) rŒrfZrender_pos_only_separatorZrender_kw_only_separatorr3r riZrenderedZannor r rrÉ s0      zSignature.__str__)rr)N)r‡r�r‚r†rràrärr*rÞr%rårer!r"r$r^r&r$rµr9r&rrr+r,r¥r r r rr r r rr#Ž s26    r#)r#cCstj||d�S)z/Get a signature object for the passed callable.)r#)r#r$)rhr#r r rrÆ÷ srÆcCsÈddl}ddl}|jƒ}|jddd�|jdddd d �|jƒ}|j}|jd ƒ\}}}y|j|ƒ}} WnLtk r´} z0d j |t | ƒj | ƒ} t | t jd �tdƒWYdd} ~ XnX|rà|jdƒ} | }x| D]} t|| ƒ}qÎW| j t jk�rt dt jd �tdƒ|j�r¸t dj |ƒƒt dj t| ƒƒƒt dj | jƒƒ|| k�rxt dj t| jƒƒƒt| dƒ�r®t dj | jƒƒn6yt|ƒ\}}Wntk �ržYnXt dj |ƒƒt dƒn t t|ƒƒdS)z6 Logic for inspecting an object given at command line rNr zCThe 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-r¸zFailed to import {} ({}: {}))rÄrÖr}z#Can't get info for builtin modules.rz Target: {}z Origin: {}z Cached: {}z Loader: {}Ú__path__zSubmodule search path: {}zLine: {}r’)Úargparser¥ÚArgumentParserÚ add_argumentÚ parse_argsr Ú partitionÚ import_modulerbrurr‡ÚprintrqÚstderrÚexitrƒrBÚbuiltin_module_namesZdetailsr¹Ú __cached__r8r®rr0rÕrü)r1r¥ÚparserrÚtargetZmod_nameZ has_attrsZattrsrhrÆrgrTÚpartsÚpartÚ__ror r rÚ_mainü sV     rAr¾)rri)N)N)N)F)N)r)r6)r)r)r)r)T)T)®r†Ú __author__r.rÌZdisÚcollections.abcr-ÚenumZimportlib.machineryr¥rèr·r¢rÐrqrìròr rrúr¿ÚoperatorrrrÚglobalsZmod_dictZCOMPILER_FLAG_NAMESrArVrWr=rrrrrrrrrr#r$r%r'r)r+r0r2r4r6r8r9rGrXrYrjrJrxr|r„r�r‘r�r rªr¹r½rÀrÂr¶rÕrÜrbrÝrÞrùrûrürýrrr rrrrrr4r7r:r<r�rIrLrSrUrYrZrirjrqrrÚ_fieldsrsrwrzr|r}rr r„r�r†r‰rŠr‡rŒr�rŽr�r�r•r–r—r˜r™ršržrŸrr÷Z_WrapperDescriptorÚallZ_MethodWrapperrÒr@Z_ClassMethodWrapperr7r¡r£r­r¯r°r¶rºrËrðròrõr"rµrÞÚIntEnumrýrêr(rër)rìr+rír,rîr-Z_PARAM_NAME_MAPPINGÚ __getitem__rràrr#rÆrAr‡r r r rÚsf            , t$ ;   .I-7      [   (> 5        0   L H  RH k: