eqSrSr/SQrSSKrSSKrSSKrSSKrSSKrSSK r SSK r SSK r SSK r SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSKJr SSKJrJr SSKJr \"5r\R@RC5Hur"r#\"\S \#-'M C"C#CS r$SSS S .S jr%Sr&Sr'Sr(Sr)Sr*\+"\S5(aSr,OSr,\+"\S5(aSr-OSr-Sr.Sr/Sr0\1"5r2Sr3Sr4Sr5Sr6S r7S!r8S"r9S#r:S$r;S%rS(r?S)r@S*rAS+rBSS,jrCSS-jrD\"S.S/5rES0rFS1rGSS2.S3jrHS4rIS5rJS6rKS7rLS8rMS9rNS:rOS;rPSS<jrQ0rR0rSSS=jrT"S>S?\U5rVS@rWSArX"SBSC\U5rY"SDSE5rZSFr[SGr\SHr]SIr^SSJjr_\"SKSL5r`SMra\"SNSO5rbSPrc\"SQSR5rdSSreSSTjrfSUrg\hSVSWSX4SYjriSZrjS[rkS\rl\"S]S^5rmS_rn\"S`Sa5ro"SbSc\o5rpSdrqSerrSSfjrsSgrt\"ShSi\pR-5rv"SjSk\v5rwSSljrxSSmjrySnrzSSojr{SSpjr|\1"5r}\~RSqGRr\~RSrGRrSsrStr\GR "5Su5rSvr\}4SwjrSxrSyrSzrS{rS|rS}rS~rSrSrSrSrSrSrSrSrSrSrSr\GR6\GR8\GR:\GR<4rSrSSjrSrSrSrSrSSjrSSjrSSjrSrSSSSS S.Sjr"SS5r"SS5r"SS\GRZ5r\GR^r\GRbr\GRfr\GRjr\GRnr"SS5r"SS5r"SS5rSSSS S.Sjr"SS\GRz5rSr\S:Xa\"5 gg)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 )h AGEN_CLOSED AGEN_CREATED AGEN_RUNNINGAGEN_SUSPENDEDArgInfo Arguments Attribute BlockFinderBoundArguments BufferFlags CORO_CLOSED CORO_CREATED CORO_RUNNINGCORO_SUSPENDEDCO_ASYNC_GENERATOR CO_COROUTINE CO_GENERATORCO_ITERABLE_COROUTINE CO_NESTED CO_NEWLOCALS CO_NOFREE CO_OPTIMIZED CO_VARARGSCO_VARKEYWORDSClassFoundException ClosureVars EndOfBlock FrameInfo FullArgSpec GEN_CLOSED GEN_CREATED GEN_RUNNING GEN_SUSPENDED Parameter SignatureTPFLAGS_IS_ABSTRACT Tracebackclassify_class_attrscleandoc currentframe findsourceformatannotationformatannotationrelativetoformatargvaluesget_annotations getabsfilegetargs getargvaluesgetasyncgenlocalsgetasyncgenstategetattr_staticgetblock getcallargs getclasstreegetclosurevars getcommentsgetcoroutinelocalsgetcoroutinestategetdocgetfile getframeinfogetfullargspecgetgeneratorlocalsgetgeneratorstategetinnerframes getlineno getmembersgetmembers_static getmodule getmodulenamegetmrogetouterframes getsource getsourcefilegetsourcelines indentsize isabstract isasyncgenisasyncgenfunction isawaitable isbuiltinisclassiscode iscoroutineiscoroutinefunctionisdatadescriptorisframe isfunction isgeneratorisgeneratorfunctionisgetsetdescriptorismemberdescriptorismethodismethoddescriptorismethodwrapperismodule isroutine istracebackmarkcoroutinefunction signaturestacktraceunwrapwalktreeN) iskeyword) attrgetter) namedtuple OrderedDict)refCO_iFglobalslocalseval_strc 2[U[5(a[USS5nU(aE[US5(a4UR SS5n[U[ R 5(aSnOSnSn[USS5nU(a4[RR US5nU(a [USS5n[[U55n Un O{[U[ R5(a[USS5n[US5nSn Sn O>[U5(a[USS5n[USS5nSn Un O[U<S35eUc0$[U[5(d[U<S35eU(d0$U(d [U5$U bk[U S 5(aU Rn M [U [ R"5(aU R$n MM[U S5(a U R&nUcUnUc U =(d 0n[US S 5=n (a U V s0sHoR(U _M sn U-nUR+5V Vs0sH)upU [U[,5(dUO [/XU5_M+ nn nU$s sn fs snn f) aUCompute the annotations dict for an object. obj may be a callable, class, or module. Passing in an object of any other type raises TypeError. Returns a dict. get_annotations() returns a new dict every time it's called; calling it twice on the same object will return two different but equivalent dicts. This function handles several details for you: * If eval_str is true, values of type str will be un-stringized using eval(). This is intended for use with stringized annotations ("from __future__ import annotations"). * If obj doesn't have an annotations dict, returns an empty dict. (Functions and methods always have an annotations dict; classes, modules, and other types of callables may not.) * Ignores inherited annotations on classes. If a class doesn't have its own annotations dict, returns an empty dict. * All accesses to object members and dict values are done using getattr() and dict.get() for safety. * Always, always, always returns a freshly-created dict. eval_str controls whether or not values of type str are replaced with the result of calling eval() on those values: * If eval_str is true, eval() is called on values of type str. * If eval_str is false (the default), values of type str are unchanged. globals and locals are passed in to eval(); see the documentation for eval() for more information. If either globals or locals is None, this function may replace that value with a context-specific default, contingent on type(obj): * If obj is a module, globals defaults to obj.__dict__. * If obj is a class, globals defaults to sys.modules[obj.__module__].__dict__ and locals defaults to the obj class namespace. * If obj is a callable, globals defaults to obj.__globals__, although if obj is a wrapped function (using functools.update_wrapper()) it is first unwrapped. __dict__Nget__annotations__ __module__ __globals__z% is not a module, class, or callable.z+.__annotations__ is neither a dict nor None __wrapped____type_params__) isinstancetypegetattrhasattrrwtypesGetSetDescriptorTypesysmodulesdictvars ModuleTypecallable TypeError ValueErrorr{ functoolspartialfuncrz__name__itemsstreval)objrrrsrtobj_dictann obj_globals module_namemodule obj_localsrh type_paramsparamkeyvalue return_values -/opt/imh/python3.13/lib/python3.13/inspect.pyr.r.spZ#t3 D1 %00,,0$7C#u99::C c<6 [[__[$7F%fj$? $s)_  C)) * *c,d3c:.   #c,d3c=$7  3'!FGHH { c4 C7"MNOO  Cy v}--++&)"3"344  6= ) ) ,,K ~!r c#4b99{95@A[E..%'[AFJ))+(%JCs++ef1MN%(  B(s *J0Jc6[U[R5$)z&Return true if the object is a module.)r~rrobjects rrara* fe.. //c"[U[5$)z%Return true if the object is a class.)r~rrs rrSrS.s fd ##rc6[U[R5$)z0Return true if the object is an instance method.)r~r MethodTypers rr^r^2rrc2[U5(d [U5(d[U5(ag[U[R 5(ag[ U5n[US5=(a) [US5(+=(a [US5(+$)aReturn 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 or a __delete__ attribute. 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__ __delete__)rSr^rYr~rrrrrtps rr_r_6sxv(6**j.@.@&)++,, fB B " .B ** .B --/rc[U5(d [U5(d[U5(ag[U5n[ US5=(d [ US5$)aiReturn 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.Frr)rSr^rYrrrs rrWrWRsFv(6**j.@.@ fB 2y ! >WR%>>rMemberDescriptorTypec6[U[R5$)Return true if the object is a member descriptor. Member descriptors are specialized descriptors defined in extension modules.)r~rrrs rr]r]b &%"<"<==rcg)rFr}rs rr]r]j rrc6[U[R5$)Return true if the object is a getset descriptor. getset descriptors are specialized descriptors defined in extension modules.)r~rrrs rr\r\srrcg)rFr}rs rr\r\{rrc6[U[R5$)aReturn true if the object is a user-defined function. Function objects provide these attributes: __doc__ documentation string __name__ name with which this function was defined __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 FunctionTypers rrYrYs fe00 11rc<[R"U5n[U5(aURn[U5(aM[R"U5n[ U5(d[ U5(dg[URRU-5$)zReturn true if ``f`` is a function (or a method or functools.partial wrapper wrapping a function or a functools.partialmethod wrapping a function) whose code object has the given ``flag`` set in its flags.F) r_unwrap_partialmethodr^__func___unwrap_partialrY_signature_is_functionlikebool__code__co_flags)fflags r_has_code_flagrsr ''*A 1++ JJ 1++!!!$A qMM7::  ##d* ++rc"[U[5$)zReturn 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.)rrrs rr[r[s #| ,,rc[U5(aURn[U5(aM[R"U5n[ USS5[ L$)N_is_coroutine_marker)r^rrrr_is_coroutine_markrs r_has_coroutine_markrsE 1++ JJ 1++!!!$A 1,d 37I IIrcV[US5(a URn[UlU$)zE Decorator to ensure callable is recognised as a coroutine function. r)rrrr)rs rrdrds'tZ  }} 2D KrcF[U[5=(d [U5$)zReturn true if the object is a coroutine function. Coroutine functions are normally defined with "async def" syntax, but may be marked via markcoroutinefunction. )rrrrs rrVrVs #| , H0CC0HHrc"[U[5$)zReturn 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. )rrrs rrPrPs #1 22rc6[U[R5$)z7Return true if the object is an asynchronous generator.)r~rAsyncGeneratorTypers rrOrOs fe66 77rc6[U[R5$)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 GeneratorTypers rrZrZs fe11 22rc6[U[R5$)z)Return true if the object is a coroutine.)r~r CoroutineTypers rrUrUs fe11 22rc([U[R5=(dr [U[R5=(a& [ UR R [-5=(d$ [U[RR5$)z?Return true if object can be passed to an ``await`` expression.) r~rrrrgi_coderr collectionsabc Awaitablers rrQrQse vu22 3 : vu22 3 FV^^,,/DDE : v{88 9;rc6[U[R5$)aNReturn 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 TracebackTypers rrcrcs fe11 22rc6[U[R5$)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 FrameTypers rrXrXs feoo ..rc6[U[R5$)aKReturn 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)r~rCodeTypers rrTrTs. fenn --rc6[U[R5$)aReturn 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~rBuiltinFunctionTypers rrRrRs fe77 88rc6[U[R5$)z.Return true if the object is a method wrapper.)r~rMethodWrapperTypers rr`r`s fe55 66rc[U5=(dA [U5=(d/ [U5=(d [U5=(d [ U5$)z_getmembers..js$q'rr)setdirrSrHrrvrr~rDynamicClassAttributeappendAttributeErroraddsort) r predicategetterresults processednamesmrorkvrrs r _getmembersrCs3GI KEvVn (( MM//1DA!!U%@%@AA Q2) 6'E$$ Ie,, NNC< ( c)* LL)L* N5    --' MM#.E s6A DD%D DDE6E EEc"[X[5$)zReturn all members of an object as (name, value) pairs sorted by name. Optionally, only return members that satisfy a given predicate.)rrrrs rrDrDms v' 22rc"[X[5$)aReturn all members of an object as (name, value) pairs sorted by name without triggering dynamic lookup via the descriptor protocol, __getattr__ or __getattribute__. Optionally, only return members that satisfy a given predicate. Note: this function may not be able to retrieve all members that getmembers can fetch (like dynamically created attributes) and may find members that getmembers can't (like descriptors that raise AttributeError). It can also return descriptor objects instead of instance members in some cases. )rr4rs rrErErs v. 99rrzname kind defining_class objectc [U5n[[U55n[SU55nU4U-nX2-n[U5nUHgnURR 5HFupx[ U[R5(dM&URcM5URU5 MH Mi /n [5n UGHwn Sn Sn SnX;a{U S:Xa [S5e[X 5n [U SU 5n X;aLSn SnUHn[UU S5nUU LdMUnM UHnURX 5nUU LdMUnM UbUn UH*nXR;dMURU nX;aUn O U cMU bU OUn[ U[ [R"45(aSnUnOY[ U[$[R&45(aSnUnO/[ U[(5(aSnUnO[+U5(aS nOS nU R[-U UU U55 U R/U 5 GMz U $![a GM)f=f![a GNf=f) aReturn 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. c3H# UHo[[4;dMUv M g7fN)rr).0clss r 'classify_class_attrs..sH7C$.GCC7s" "Nrvz)__dict__ is special, don't want the proxy __objclass__z static methodz class methodpropertymethoddata)rHrtuplerrvrr~rrfgetrr Exceptionr __getattr__r staticmethodBuiltinMethodType classmethodClassMethodDescriptorTyperrbrr)r rmetamro class_bases all_basesrrrrresultrrhomeclsget_objdict_objlast_clssrch_clssrch_objrkinds rr'r'ss6 +CT#YGH7HHG&3,K%I HEMM'')DA!U8899aff>P Q*FI   +:%#$OPP!#,"'>7C-#G#H$/#*8T4#@#w.'/H%0 %,%'/';';C'FH$w.'/H %, +"*D}}$==.)"G  ?  ,g( hu/F/F G H H"DC ;0O0O"P Q Q!DC ( + +DC s^^DD idGS9: dIJ MC .%$%%  s$I)I II I I cUR$)zHReturn tuple of base classes (including cls) in method resolution order.)__mro__)r s rrHrHs ;;rstopcUn[U5U0n[R"5n[U[5(d[ US5(aUbU"U5(aU$UR n[U5nXS;d[U5U:a[SRU55eXU'[U[5(d[ US5(aMU$)aPGet 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. r{z!wrapper loop when unwrapping {!r}) idrgetrecursionlimitr~rrr{lenrformat)rr(rmemorecursion_limitid_funcs rrhrhs A qE1:D++-Ot$$})E)E  T  K T( OTo!=@GGJK KW t$$})E)E KrclUR5n[U5[UR55- $)zBReturn the indent size, in spaces, at the start of a line of text.) expandtabsr,lstrip)lineexplines rrMrMs)ooG w<#gnn./ //rc[RRUR5nUcgURR S5SSHn[ X5nM [U5(dgU$)N.)rrrwry __qualname__splitrrS)rr rs r _findclassr;!s] ++//$// *C {!!'',Sb1c 2 3<< Jrc[U5(a3URH"nU[LdMURnUcM Us $ g[ U5(agUR RnURn[U5(a'[[XCS5S5UR LaUnGO~URnGOp[U5(a+URn[U5nUb[XS5ULagGO5[U5(aXURnURn[U5(a#URS-U-UR:XaUnOURnO[U[ 5(a4URn[UR"5nUb[XS5ULagO[%U5(d['U5(acURnUR(n[XS5ULag[+U5(a+[USS5n[U[,5(a X6;aXc$OgURH n[X5RnUcMUs $ g![a GMMf=f![a MDf=f)Nrr7 __slots__)rSr&r__doc__rr^rr__self__r __class__rYr;rRr9r~rrr_rWrr]r)rrdocrselfr slotss r_finddocrD+s s||KKD6!,,C?J }}||$$|| DMM GD-z :cll JC..C C||o ;'#,C78 3|||| DMM    #d *c.>.> >C..C C " "||" ;'#,C78 C $4S$9$9|| 3 S ( c " "Cd3E%&&4={"  $%--C ?J  k&b   s# I;I. I+*I+. I<;I<cURnUc [U5n[ U[ 5(dg[ U5$![a gf=f![[4a gf=f)zGet 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>rrDrr~rr()rrAs rr<r<hsn nn { 6"C c3   C=   *  s > A A  A A! A!cUR5RS5n[RnUSSH?n[ UR S55nU(dM&[ U5U- n[ X%5nMA U(aUSR S5US'U[R:a%[S[ U55H nXUSX'M U(a-US(d#UR5 U(a US(dM#U(a.US(d$URS5 U(a US(dM$SRU5$)z|Clean up indentation from docstrings. Any whitespace that can be uniformly removed from the second line onwards is removed. N rjr8) r2r:rmaxsizer,r3minrangepopjoin)rAlinesmarginr4contentindentis rr(r({s NN  " "4 (E[[Fab dkk#&' 7Y(F(F   8??3'a  q#e*%Ax(EH& b   b a !  a 99U rc>[U5(a8[USS5(a UR$[SR U55e[ U5(a[ US5(ab[RRUR5n[USS5(a UR$URS:Xa [S5e[SR U55e[U5(a URn[U5(a URn[!U5(a UR"n[%U5(a UR&n[)U5(a UR*$[SR [-U5R.55e) z@Work out which source or compiled file an object was defined in.__file__Nz{!r} is a built-in modulery__main__source code not availablez{!r} is a built-in classzVmodule, class, method, function, traceback, frame, or code object was expected, got {})rarrUrr-rSrrrrwryOSErrorr^rrYrrctb_framerXf_coderT co_filenamerr)rrs rr=r=sA 6:t , ,?? "3::6BCCv 6< ( ([[__V%6%67Fvz400&  J.9::299&ABB&6v f~~!!! 77=vL))8+ ,,rc0[RRU5n[RR 5Vs/sHn[ U5*U4PM nnUR5 UH"upBURU5(dMUSUs $ gs snf)z1Return the module name for a given file, or None.N) ospathbasename importlib machinery all_suffixesr,rendswith)r^fnamesuffixsuffixesneglens rrGrGs GG  T "E#,"5"5"B"B"DF"Df+v&"D F MMO" >>& ! !&> !#  FsBc^[U5m[RRSSnU[RRSS- n[ U4SjU55(aA[ RRT5S[RRS-mOJ[ U4Sj[RR55(agTRS5(agT[R;aT$[ RRT5(aT$[UT5n[!USS5bT$[![!USS5SS5bT$g) 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. Nc3F># UHnTRU5v M g7fr rcr sfilenames rr  getsourcefile..s! ?)>A8  Q  )>!rjc3F># UHnTRU5v M g7fr rjrks rr rns& 97'(X  q ! !7ro.fwork __loader____spec__loader)r=r`raDEBUG_BYTECODE_SUFFIXESOPTIMIZED_BYTECODE_SUFFIXESanyr]r^splitextSOURCE_SUFFIXESEXTENSION_SUFFIXESrc linecachecacheexistsrFr)rall_bytecode_suffixesrrms @rrKrKs0vH%//GGJY00LLQOO ?)> ???GG$$X.q1''77:;  9$$77 9 9 9   8 $ $9??" ww~~h vx (Fv|T*6 T2Hd C O PrcUc[U5=(d [U5n[RR [RR U55$)zReturn 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.)rKr=r]r^normcaseabspath)r _filenames rr/r/s? !&)rqrWrzcould not get source coderjrrHzlineno is out of boundsco_firstlinenoz"could not find function definitionzcould not find code object)rKr{ checkcacher= startswithrcrXrFgetlinesrvr_getlines_from_coderrarSrrKeyErrorr,r^rrYrcrYrXrZrTr)rrrrOlnums rr*r*s  D T"v%%$--*<*<$--PXBYBY56 6 v $F ""49--'&*2M2M11&//BE""4( 122axv 7< 12Q6D 3u: 34 4{&6v f~~v/00>? ?$$q( 3u: 34 4{ . //+8$ 756 6 7s II-c[U5up[U5(aSnU(aUSSSS:XaSnU[ U5:aBXR 5S;a,US-nU[ U5:aXR 5S;aM,U[ U5:a}XSSS:Xaq/nUnU[ U5:aMXSSS:XaBUR XR55 US-nU[ U5:a XSSS:XaMBSRU5$ggUS:Ga[X5nUS- nUS:GayXR5SSS:XGa^[X5U:XGaKXR5R5/nUS:aUS- nXR5R5nUSSS:Xa_[X5U:XaNU/USS&US- nUS:aOG bqkS(Z -Cv-M x{002c9!! x{002c9x|113s: " x|113s:778$ $ -78 % Y s J//KKc\rSrSrSrg)rir}Nrr}rrrrsTrrc$\rSrSrSrSrSrSrg)r iz@Provide a tokeneater() method to detect the end of a code block.cfSUlSUlSUlSUlSUlSUlSUlg)NrjFrH)rRislambdastartedpassline indecoratorlast body_col0rBs r__init__BlockFinder.__init__s4      rcUR(dAUR(d0US:XaSUlOUS;aUS:XaSUlSUlSUlgU[R :XaBSUlUSUlUR(a[eUR(aSUlggUR(agU[R:XaDURcUR(a USUl URS-Ul SUlgU[R:Xa+URS- Ul URS::a[egU[R:Xa-URbUSUR:a USUlgggURS:Xa+U[R[R4;a[egg)N@T)defclasslambdarFrjrH)rrrrtokenizeNEWLINErrINDENTrrRDEDENTCOMMENTNL)rBrtokensrowcolerowcolr4s r tokeneaterBlockFinder.tokeneatersv||D$4$4|#' 44H$$(DM#  DM X%% %!DM DI}}  #(  ]]  X__ $~~%$,,!(++/DK DM X__ $++/DK{{a   X%% %~~)gajDNN.J#AJ /K)[[A $x/?/?.M"M #N r)rrrRrrrrN)rryr9rr>rrrr}rrr r sJ)rr c[5n[R"[U5R5nUHnUR "U6 M USUR$![ [4a N![a\nSUR;aUSeWtpVUR "[R/UQ76 SnANg![ [4a SnAN}f=fSnAff=f)z@Extract the block of code at the top of the given list of lines. unmatchedN) r rgenerate_tokensiter__next__rrIndentationError SyntaxErrormsgrr)rO blockfindertokens_tokene_ _token_infos rr5r5s-K ))$u+*>*>?F  " "F + "+"" ## ( )   aee #     " "8#3#3 Bk B B,-    s<AAC. C7C!B44C C C  CCc [U5n[U5up[U5(a URn[ U5(d*[ U5(aUR RS:XaUS4$[XS5US-4$)aReturn 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.zrjNrH) rhr*rcrYrarXrZco_namer5rrOrs rrLrLsuF^FV$KE6  V]]22j@axe %tax//rc>[U5upSRU5$)zReturn 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)rLrNrs rrJrJs !(KE 775>rc/nUR[SS5S9 UHCnURXDR45 XA;dM&UR[ XX55 ME U$)z-Recursive helper function for getclasstree().ryrr)rrlrrri)classeschildrenparentrcs rririsZG LLZ j9L: ;;'( = NN8HK= > Nrc\0n/nUHvnUR(aJURH8nXR;a/X%'XBU;aX%RU5 U(dM0XP;dM7 MZ M^XC;dMeURU5 Mx UHnXP;dM URU5 M [X2S5$)aArrange 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)rrri)runiquerrootsrrs rr7r7sH E  ;;++)')H$V,,$++A.6f/ & ^ LLO  LL  ET **rrzargs, varargs, varkwc[U5(d[SRU55eURnURnUR n[ USU5n[ XX#-5nX#- nSnUR[-(aURUnUS-nSnUR[-(aURUn[XE-Xg5$)a Get 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 objectNrH) rTrr- co_varnames co_argcountco_kwonlyargcountlistrrrr)cornargsnkwargsargs kwonlyargsvarargsvarkws rr0r0s "::3::2>?? NNE NNE""G fu De%-01J EG {{Z..'  E {{^#u% T& 77rrzGargs, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotationsc [USS[SS9n/nSnSn/n/n0nSn 0n URUR LaURUS'UR R5GH%n U Rn U Rn U [La:URU 5 U RU R LaXR4- n OU [La:URU 5 U RU R LaXR4- n OYU [LaU nOMU [La9URU 5 U RU R LaU RX'O U [ LaU nU R"U R LdGMU R"X'GM( U (dSn U (dSn [%Xc-XEU XzU5$![an[S5UeSnAff=f)aGet 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_chainsskip_bound_argsigclsrtzunsupported callableNr}return)_signature_from_callabler$rrreturn_annotationempty parametersvaluesr$r_POSITIONAL_ONLYrdefault_POSITIONAL_OR_KEYWORD_VAR_POSITIONAL _KEYWORD_ONLY _VAR_KEYWORD annotationr)rsigexrrr posonlyargsr annotationsdefaults kwdefaultsrr$rs rr?r?3s 8"'t=B6;.705 7 DG EKJKHJ CII- # 5 5 H&&(zzzz # #   t $}}EKK/]],, + + KK }}EKK/]],, _ $G ] "   d #}}EKK/#(==  \ !E   5;; . % 0 0K -)0   {)78!{ <.repls;;=D$$Y/ /rz[\w\.]+rr7) rresubreprr~r GenericAliasrrryr9)r base_moduler s rr+r+sz<.(: 0vvj$Z(899*e0011:*d##  Z$= =** *$$S()@)@@@  rc.^[USS5mU4SjnU$)Nryc>[UT5$r )r+)rrs r_formatannotation5formatannotationrelativeto.._formatannotations F33r)r)rrrs @rr,r,s V\4 0F4 rc SU-$)N*r}rs rrrssTzrc SU-$)N**r}rs rrrsTD[rcS[U5-$)N=)r)rs rrrs cDK.?rcNUXG4Sjn/n [[U55Hn U RU"X 55 M U(a"U RU"U5U"X15-5 U(a"U RU"U5U"X25-5 SSRU 5-S-$)aVFormat an argument spec from the 4 values returned by getargvalues. The first four arguments are (args, varargs, varkw, locals). The next four arguments are the corresponding optional formatting functions that are called to turn names and values into strings. The ninth argument is an optional function to format the sequence of arguments.c(U"U5U"X5-$r r})rrs formatarg formatvalues rconvert formatargvalues..convertsV\!:::r(, ))rLr,rrN) rrrrsr formatvarargs formatvarkwrr specsrSs rr-r-s$#; E 3t9  WTW%& ]7+k&/.JJK  ['+fm*DDE 5! !C ''rcFUVs/sHoDU;dM [U5PM nn[U5nUS:XaUSnOAUS:XaSR"U6nO+SR"USS6nUSS2 SRU5U-n[ SXU(aS OS US:XaS OS U4-5es snf) NrHrjrz {} and {}z , {} and {}r#z*%s() missing %i required %s argument%s: %s positional keyword-onlyrrl)rr,r-rNr) f_nameargnamesposrrrmissingrltails r_missing_argumentsr1s$, CHDF0BZT$ZHE C%jG!| !H A    &##U23Z0 "#J IIe t # @&)l~#qLbc166 77 Ds BBc [U5U- n[UVs/sH oU;dM UPM sn5n U(a US:gn SU4-n O2 $+,O  [[] E _ $!'!-..#(I R  ?#R)* * " #'& \ '+H+,C)#"63i@  %<%= >?FAs)#!)! #@G  !%>"9#1%#8 % 1   6ui@ rrz"nonlocals globals builtins unboundc[U5(a URn[U5(d[SR U55eUR nUR c0nO>[URUR 5VVs0sHup4X4R_M nnnURnURS[R5n[U5(a URn0n0n[5n [5n [ R""U5HMn U R$n U R&n U S:XaU R)U 5 M4U S:XdM<U R)U 5 MO U H n X]X}'M [-X'X5$s snnf![*a. XmX'M4![*a U R)U 5 MSf=ff=f)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 function __builtins__ LOAD_ATTR LOAD_GLOBAL)r^rrYrr-r __closure__zip co_freevars cell_contentsrzrwrrvrardisget_instructionsopnameargvalrrr)rcode nonlocal_varsvarcell global_ns builtin_ns global_vars builtin_vars unbound_names global_names instructionrWrs rr8r8+s~~}} d  7>>tDEE ==D  !!1!143C3CD D  $$ $D    I~x/@/@AJ (( KLEM5L++D1 ##!! [   d # } $   T " 2 ( )K  }# 44? 2 ( (%/%5 " (!!$'' ( (s0F.F  GFF>9G=F>>G _Tracebackz+filename lineno function code_context indexc6^\rSrSrSS.U4SjjrSrSrU=r$)r&ifN positionsc6>[TU]XX#XE5nXglU$r super__new__rg) r rmlinenofunction code_contextindexrginstancer@s rrkTraceback.__new__gs 7?3&LX&rcSRURURURURUR UR 5$)NzcTraceback(filename={!r}, lineno={!r}, function={!r}, code_context={!r}, index={!r}, positions={!r}))r-rmrlrmrnrorgrs r__repr__Traceback.__repr__ls@@@F t{{DMM4;L;L DNNA, -rr}rryr9rrkrsr __classcell__r@s@rr&r&fsSW --rr&cZURRURp![X5$r )rYrZtb_lasti_get_code_position)tbrYinstruction_indexs r_get_code_position_from_tbr}rs# kk00"++  d 66rcvUS:agUR5n[[R"X!S-S55$)Nrj)NNNNr) co_positionsnext itertoolsislice)rYr| positions_gens rrzrzvs81'%%'M    Q0FM NNrc [U5(a$[U5nURnURnO,URn[ UR UR5nUSc X/USSQ7tpOU/UQ7tpUSn[U5(d[SRU55e[U5=(d [U5nUS:aJUS- US-- n[U5upg[S[U[!U5U- 55nXeXQ-nUS- U- nOS=ph[%XCUR R&UU[(R*"U6S9$!["a S=phNAf=f)aGet 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.rjNrHz'{!r} is not a frame or traceback objectrrf)rcr} tb_linenorYf_linenorzrZf_lastirXrr-rKr=r*maxrKr,rXr&rrU Positions) rcontextrgrlrmrrOrros rr>r>}sh5.u5 &u||U]]C |";Yqr]; "/Y/ q\F 5>>AHHOPPU#5wu~H{ WaZ' '$U+KE3uc%j7&:;>r _FrameInforc6^\rSrSrSS.U4SjjrSrSrU=r$)riNrfc 8>[T U]XX#XEU5nXxlU$r ri) r rrmrlrmrnrorgrpr@s rrkFrameInfo.__new__s#7?3xY^_&rc SRURURURURUR UR UR5$)NzoFrameInfo(frame={!r}, filename={!r}, lineno={!r}, function={!r}, code_context={!r}, index={!r}, positions={!r}))r-rrmrlrmrnrorgrs rrsFrameInfo.__repr__sG@@F DMM4;; !!4::t~~A? @rr}rurws@rrrsZ^ @@rrc/nU(aJ[X5nU4U-nUR[USUR065 URnU(aMJU$)zGet 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.rg)r>rrrgf_back)rr framelisttraceback_info frameinfos rrIrIsX I %e5H~- IR9Q9QRS  % rc/nU(aT[X5nUR4U-nUR[USUR065 UR nU(aMTU$)zGet 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.rg)r>rYrrrgtb_next)r{rrrrs rrBrBs\ I %b2[[N^3 IR9Q9QRS ZZ " rc\[[S5(a[R"S5$S$)z?Return the frame of the caller or None if this is not possible. _getframerHN)rrrr}rrr)r)s"&sK883== BdBrcB[[R"S5U5$)z@Return a list of records for the stack above the caller's frame.rH)rIrr)rs rrfrfs #--*G 44rcd[R"5nUcSO URn[X 5$)zCReturn a list of records for the stack below the current exception.N)r exception __traceback__rB)rexcr{s rrgrgs) --/C#"3"3B " &&rr&rvc0n[RUS5n[R X![ 5$![a N&f=fNrv)r__getattribute__rrrw _sentinel)rattr instance_dicts r_check_instancersEM //Z@  88M 33    s4 AAc[U5H@n[[U55[LdM XR;dM1URUs $ [$r )_static_getmro_shadowed_dictrrrv)klassrentrys r _check_classrsB& $u+ &) 38N>>$' '' rcUHanU"5n[U5nSU;dMUSn[U5[RLa!URS:XaUR ULaM_Us $ [ $r)_get_dunder_dict_of_classrrrrrr) weakref_mro weakref_entryr dunder_dict class_dicts r%_shadowed_dict_from_weakref_mro_tuplersn$ /6  $$Z0J$(B(BB'':5++u4!!% rcb[[U5Vs/sHn[U5PM sn6$s snfr )rr make_weakref)rrs rrr s2 1+9%+@ A+@%,u +@ A  As,c[n[U5n[[U5;a>Un[U5nU[Ld[U5[R La [ X5nOUn[XQ5nU[La_U[LaV[[U5S5[La:[[U5S5[Ld[[U5S5[LaU$U[LaU$U[LaU$XLaX[[U55H@n[[U55[LdM XR;dM1URUs $ U[LaU$[U5e)aRetrieve 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. rrr) rrrrrrrrrvr) rrrinstance_resultobjtyper dict_attr klass_resultrs rr4r4s+ O3iG >'**"5)  " Ou99 9-c8O,Li'L ,I \*I 6i G l+Y 7y HD. =YN i'9$ |#DK0EtE{+y8NN*~~d++ 1 i  rr r!r"rcUR(a[$UR(a[$URc[ $[ $)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. ) gi_runningr! gi_suspendedr"gi_framerr ) generators rrArASs:! rc[U5(d[SRU55e[USS5nUbURR $0$)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 generatorrN)rZrr-rrr)rrs rr@r@esQ y ! !8?? JKK Iz4 0E !!*** rr rrr cUR(a[$UR(a[$URc[ $[ $)aGet 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. ) cr_runningr cr_suspendedrcr_framer r ) coroutines rr;r;}s:! rc>[USS5nUb UR$0$)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)rrs rr:r:s' Iz4 0E ~~ rrrrrcUR(a[$UR(a[$URc[ $[ $)aGet current state of an asynchronous generator object. Possible states are: AGEN_CREATED: Waiting to start execution. AGEN_RUNNING: Currently being executed by the interpreter. AGEN_SUSPENDED: Currently suspended at a yield expression. AGEN_CLOSED: Execution has completed. ) ag_runningr ag_suspendedrag_framerr)agens rr3r3s6   }} rc[U5(d[U<S35e[USS5nUbURR$0$)z Get the mapping of asynchronous generator local variables to their current values. A dict is returned, with the keys the local variable names and values the bound values.z is not a Python async generatorrN)rOrrrr)rrs rr2r2sK d  4("BCDD D*d +E }}%%% rcUS:Xa [XS5nO [XS5nUb[U[5(agUS:wa [ X 5nU$)z~Private helper. Checks if ``cls`` has an attribute named ``method_name`` and returns it only if it is a pure python function. rkN)rr4r~_NonUserDefinedCallables_descriptor_get)r  method_namemeths r"_signature_get_user_defined_methodrsR is.c5 |z$(@AAit) KrcURn[UR55nUR=(d SnUR=(d 0nU(aX%-nUR "U0UD6nSn UR5GHfupURU n U R[LaURU 5 M<U R[La6X;aSn U RU S9XK'OURU R5 MU R[ LaU RU S9XK'U (dMU R[LdeU R[La-XKR[ S9nXU 'UR%U 5 GMU R[ [&4;aUR%U 5 GM5U R[(LdGMKURU R5 GMi URUR+5S9$![ a"nSRU5n [U 5UeSnAff=f!["a GNf=f) zPrivate helper to calculate how 'wrapped_sig' signature will look like after applying a 'functools.partial' object (or alike) on it. r}z+partial object {!r} has incorrect argumentsNFT)rr$r)rrnrrkeywords bind_partialrr-r argumentsr$rrMrreplacerrr move_to_endrrr) wrapped_sigr extra_args old_params new_params partial_argspartial_keywordsbarrtransform_to_kwonly param_namer arg_value new_params r_signature_get_partialrs  ''JZ--/0J<<%2L''-2!0 &  % %| H7G H  '--/ # J Z0Izz--z*zz331+/'-2]]9]-MJ*NN5::.zz]*).y)I &  ::%55 55zz33&2:: :N )2:&&&z2 |<<&&z2.uzz*a0d   **;*;*=  >>q &;BB7Ko2%&   s*HH7 H4H//H47 IIc6[URR55nU(aUSR[[ 4;a [ S5eUSRnU[[4;aUSSnOU[La [ S5eURUS9$)zOPrivate helper to transform signatures for unbound functions to bound methods. rjzinvalid method signaturerHNzinvalid argument typer) rrrr$rrrrrrr)rparamsr$s r_signature_bound_methodr1s 3>>((* +F VAY^^ m'DD344 !9>>D &(899  &45 5 ;;&; ))rc[U5=(d@ [U5=(d. [U[5=(d U[L=(d U[ L$)zpPrivate helper to test if `obj` is a callable that might support Argument Clinic's __text_signature__ protocol. )rRr_r~rrrrs r_signature_is_builtinrKsI cN ) s # ) s4 5 ) 4K )&=*rc[U5(a[U5(ag[USS5n[USS5n[US[5n[US[5n[USS5n[ U[ R 5=(av [ U[5=(a_ USL=(d [ U[5=(a= USL=(d [ U[5=(a [ U[5=(d USL$)zPrivate 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. FrNr __defaults____kwdefaults__rx) rrSr_voidr~rrrrr)rrrYrrrs rrrYs C==GCLL 3 D )D 3 D )DsNE2H.6J#0$7K tU^^ , E tS ! E   <He!< E4  ?:j$#? E d , C t0C GrcU(dUS4$SnURS5Vs/sHo"(dM URS5PM nn[U5Rn[R"U5n/nUR nSn[ Rn [ Rn [U5n U R[R:XdeUHVn U RU RpX:Xa U S:XaUS- nX:XaU S:Xa UbeUnM>U"U 5 U S:XdMNU"S5 MX S RU5R5RSS 5nX4$s snf) a- Private helper function. Takes a signature in Argument Clinic's extended signature format. Returns a tuple of two things: * that signature re-rendered in standard Python syntax, and * the index of the "self" parameter (generally 0), or None if the function does not have a "self" parameter. NrGasciirj,rH$rIr)r:encoderrrrrOP ERRORTOKENrrENCODINGstringrNrr)reself_parameterlrOr token_streamr rcurrent_parameterrrtrrclean_signatures r"_signature_strip_non_python_syntaxrrsF $N(1(= C(=1 QXXg (=E CU $$I$$Y/L D ++C B!!J \A 66X&& && & vvqxxf :}!Q&! JVs]!) )).N  F cM Hggdm))+33D"=O  **? Ds EETc^^^^^^^^^^URm[U5upESU-S-n[R"U5n[ U[R 5(d[SRT55eURSn/mTRmSn0m[TSS5n U (d[TSS5n [U SS5n U (a3[RRU S5nU(a URm[RR!5mSmUU4S jm"U4S jS [R"5mT4UUUUUUU4S jjn [%UR&R(5[%UR&R&5-n U [%UR&R*5- n [,R."[,R0"SU 5UR&R*5nTR2m[5UR&R(U5HunnU "UU5 M TR6m[5UR&R&U5HunnU "UU5 M UR&R8(a)TR:mU "UR&R8T5 TR<m[5UR&R>UR&R@5HunnU "UU5 M UR&RB(a)TRDmU "UR&RBT5 UbmT(de[TS S5nUSLn[GU5nU(a U(dU(aTRIS5 O!TSRKTR2S9n U TS'U"TURS9$![a SnGNf=f)z\Private helper to parse content of '__text_signature__' and return a Signature based on it. zdef fooz: passN"{!r} builtin has invalid signaturerjryrc[U[R5(deURb [ S5eUR$)Nz'Annotations are not currently supported)r~astr9rr)nodes r parse_name&_signature_fromstr..parse_names8$(((( ?? &FG Gxxrc  >[UT5n[U[[ [ [[[S545(a[R"U5$[e![a$ [UT5nNi![a [ef=ff=fr ) r NameErrorrr~rintfloatbytesrrrConstant)rlr module_dictsys_module_dicts r wrap_value&_signature_fromstr..wrap_values !K(E ec3udDJG H H<<& & ! !Q0 !   ! !s A B * A88B  B c4>\rSrSrU4SjrU4SjrSrSrg),_signature_fromstr..RewriteSymbolicsic>/nUn[U[R5(aHURUR5 UR n[U[R5(aMH[U[R 5(d[eURUR5 SR[U55nT"U5$)Nr7) r~rrrrrNamerr*rNreversed)rBrarGrrs rvisit_Attribute<_signature_fromstr..RewriteSymbolics.visit_AttributesAAQ .. GGQ ..a**  HHQTTNHHXa[)Ee$ $rc>[UR[R5(d [ 5eT"UR 5$r )r~ctxrLoadrr*)rBrrs r visit_Name7_signature_fromstr..RewriteSymbolics.visit_Names/dhh11 l"dgg& &rcURUR5nURUR5n[U[R 5(a[U[R 5(d[ e[UR[R5(a-[R "URUR-5$[UR[R5(a-[R "URUR- 5$[UR[R5(a-[R "URUR-5$[ er ) visitleftrightr~rr ropAddrSubBitOr)rBrr!r"s r visit_BinOp8_signature_fromstr..RewriteSymbolics.visit_BinOps::dii(DJJtzz*EdCLL11E3<<9X9X  $''377++||DJJ$<==DGGSWW--||DJJ$<==DGGSYY//||DJJ$<== rr}N)rryr9rrrr'r)rsrRewriteSymbolicsrs % ' rr)c >T "U5nU(a6U[La-T"5RU5n[R"U5nT R T"UTUTS95 g![a [ SR T55Sef=f)Nrrr)_emptyr r literal_evalrr-r) name_node default_noderrr#r)rr$rrrs rp_signature_fromstr..ps)$ L6 ]/177 E **<8 )D$ERS ] !E!L!LS!QRX\\ ]s ,A &Br?rr)&_parameter_clsrrparserr~Modulerr-bodyrrrrrwrvrNodeTransformerr,rrrrchainrepeatPOSITIONAL_ONLYrRPOSITIONAL_OR_KEYWORDvarargVAR_POSITIONAL KEYWORD_ONLYr kw_defaultsrK VAR_KEYWORDrarMr)r rrlrrrprogramrrrobjclassr0total_non_kw_argsrequired_non_kw_argsrrr_self self_isbound self_ismoduler#r)rr$rrrrrs ` @@@@@@@@@r_signature_fromstrrHs""I&H&K#O/)H4G7# fcjj ) )=DDSIJJ AAJ OOE FK#|T2K 35h d; d3  //Kkk&&(O 3..B,1TTAFF../#affkk2BB,s166??/CCy//6JKQVV__]H  $ $Dqvv118<w $=  * *Dqvv{{H5w $6 vv}}'' !&&--  ! !DQVV..0B0BC g $D vv||$$ !&&,,! zZ.D(   ]n NN1 1 %%9+D+D%EAJqM zSYY 77I sO O#"O#c[U5(d[SRU55e[USS5nU(d[ SRU55e[ XX25$)z@Private 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})rrr-rrrH)r rrrls r_signature_from_builtinrK7 sb ! & &##)6$<1 1 *D1A >EEdKLL c ;;rc Sn[U5(d-[U5(aSnO[SRU55e[ USS5nU(a [ XXr5$UR nURn U Rn U Rn U Rn U SU n U RnXX-n[XXES9nURnURnU(a [U5nOSn/nU U- nU nU SUHQnU(a[ O["nUR%U[&5nUR)U"UUUS95 U(dMLUS -nMS [+U US5HXunnU(a[ O["nUR%U[&5nUR)U"UUUUUS 95 U(dMSUS -nMZ U R,[.-(a8XU-nUR%U[&5nUR)U"UU[0S95 UHTn[&nUbUR%U[&5nUR%U[&5nUR)U"UU[2US 95 MV U R,[4-(aWX-nU R,[.-(aUS - nU UnUR%U[&5nUR)U"UU[6S95 U"UUR%S [&5US 9$) zCPrivate helper: constructs Signature for the given python function.FTrMrJNrqrj)rr$rH)rr$rrr__validate_parameters__)rYrrr-rrHr3rrrco_posonlyargcountrr.rrr,rrrwr,rr?rrrrrr)r rrrrrsrtis_duck_functionrlr# func_code pos_count arg_names posonly_countr*keyword_only_count keyword_onlyrrrpos_default_countrnon_default_count posonly_leftrr$roffsetrros r_signature_from_functionr[G s d   %d + +# ;BB4HI I*D1A!#Q??""I I%%I%%I00M:I&J"44y'EFL!$ZK  H$$JMJ!$55 L--.#/5K __T62 )DZ)-/ 0 < A L /"*->-?"@A #/5K __T62 )DZ)-,4V,<> ? < A LBJ&%778 __T62 )DZ)8: ;  ! nnT62G __T62 )DZ)6,35 6 N*.    * QJE __T62 )DZ)57 8 z!,6!B'7 99rc[U5(aU$[[U5S[5nU[LaU$U"X[U55$)Nr)rSrrr) descriptorrrws rrr sEz $z"Iy 9C i zS **r)rrrrrsrtc  [R"[UUUUUUS9n[U5(d[ SR U55e[ U[R5(a&U"UR5nU(a [U5$U$U(a2[USS9n[ U[R5(aU"U5$URnUbUn [ U[[45(d[U5(aU"5n[ U[5(a [X`U5n[ U[5(d[ SR U 55eU$UR"n [ U [R$5(aU"U R&5n [)XS5n[+U R,R/55Sn U R0[2R4LaU$[+UR,R/55n U (a XSLdeU 4U -nUR7US 9$[ U[R5(aU"UR&5n [)X5$[9U5(d[;U5(a [=X`UX4US 9$[?U5(a [AX`US 9$[ U[B5(GaR[E[CU5S 5nUbU"U5$[EUS 5n[EUS5nURFHSnUb.S URH;aU"U5nU(a [U5nUs $UcM9SURH;dMKU"U5s $ URFSSH&nURJnU(a[UUU5s $M( [BURF;aiURL[NRLLa2URP[NRPLaURS[N5$[USR U55eOM[W[CU5S S5nUb4URJnU(a [X`U5$[YX5nU"U5$[USR U55e![ a GN6f=f![ a GNof=f![ a GM?f=f![ a Nmf=f)zIPrivate helper function to get signature for arbitrary callable objects. )rrrrrsrrtz{!r} is not a callable objectc\[US5=(d [U[R5$)N __signature__)rr~rrrs rr*_signature_from_callable.. s''!_*E+C#-a1A1A#B+Crr'Nz1unexpected object {!r} in __signature__ attributer rjr)rrrrsrt)r__call__rkrr8z(no signature found for builtin type {!r}z+callable {!r} is not supported by signature)-rrrrrr-r~rrrrrhr`r$rrHr__partialmethod__ partialmethodrrrrrr$r#r=rrYrr[rrKrrr&rvrJrrrk from_callablerr4r)rrrrrrsrtr_get_signature_ofro_sigrdrfirst_wrapped_param sig_paramsrcallnewinitrtext_sigs rrr s"))*B6K/=(/'-'-)1 3 C==7>>sCDD#u''((  - *3/ /JS!CE c5++ , ,%S) ) ?EcIs#344#e#s##(c:c9-- &u //J :--  mY%<%< = =,M,>,>?K(WMC"' (>(>(E(E(G"H"K "''9+C+CC "3>>#8#8#:; &+a=@BA13j@ {{j{99+ >.#y(())'1 %k77#4S99(7E07QY[ [S!!&v6DF F#t 2$s)ZH  $T* *0i@1#zBKKD9 #=',!1#6C !jDMM&A(.. KK$D F22.fdHEE%* s{{ " / v~~-++F33 >EEcJLL #d3iT:   E11-f8DD"4-D$T* * BII#N OOO    (    ^"  8"  sH R R< R): R; RR R&%R&) R87R8; SSc\rSrSrSrSrg)rih z1A private marker - used in Parameter & Signature.r}Nrryr9rr>rr}rrrrh s;rrc\rSrSrSrSrg)r,il z6Marker object for Signature.empty and Parameter.empty.r}Nror}rrr,r,l s@rr,c4\rSrSrSrSrSrSrSrSr Sr S r g ) _ParameterKindip zpositional-onlyzpositional or keywordzvariadic positionalr+zvariadic keywordcr[UR5n[RX5nX#lXlU$r )r, __members__r rk_value_ description)r rvrmembers rrk_ParameterKind.__new__w s.COO$S(( rcUR$r rrs r__str___ParameterKind.__str__~ s yyrr}N) rryr9rr:r;r=r>r@rkrzrr}rrrrrrp s&'O3*N!L$Krrrc\rSrSrSrSr\r\r \ r \ r \r\r\\S.SjrSrSr\S5r\S 5r\S 5r\S 5r\\\\S .S jrSr\rSrSrSr Sr!g)r#i 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 _annotationr+c[U5UlU[LaLUR[[ 4;a2SnUR URR5n[U5eX0lX@l U[La [S5e[U[5(d/SR [U5R5n[U5eUSS:Xa}USSR5(aeUR[ :wa2S nUR URR5n[U5e["UlS R USS5n[%U5=(a UR["LnU(dUR'5(d[S R U55eXlg![a [SU<S35ef=f) 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 {}rjr7rHzLimplicit arguments must be passed as positional or keyword arguments, not {}z implicit{}z"{!r} is not a valid parameter name)rrr~rr,rrr-rvrrr~rrrrisdigitrrrk isidentifierr})rBrr$rrr is_keywords rrParameter.__init__ s N'-DJ & zzo|<<@jj!7!78 o% % 6>IJ J$$$077T 8K8KLCC. 7c>d12h..00 zz33>jj!7!78 o%)DJ&&tABx0Dt_K;K)K T..00AHHNO O M NvdX-KLM M Ns F22G cx[U5URUR4URURS.4$)Nrr)rr}r~rrrs r __reduce__Parameter.__reduce__ s8T TZZ(!]] $ 0 023 3rc,USUlUSUlg)NrrrrBstates r __setstate__Parameter.__setstate__ sj)  /rcUR$r )r}rs rrParameter.name zzrcUR$r )rrs rrParameter.default s }}rcUR$r )rrs rrParameter.annotation rcUR$r )r~rs rr$Parameter.kind rr)rr$rrcU[La URnU[La URnU[La URnU[La URn[ U5"XXCS9$)z+Creates a customized copy of the Parameter.r+)rr}r~rrr)rBrr$rrs rrParameter.replace sY 5=::D 5=::D  ))J e mmGDz$gMMrcURnURnUR[La%SR U[ UR55nUR [La^UR[La&SR U[UR 55nO%SR U[UR 55nU[:XaSU-nU$U[:XaSU-nU$)Nz{}: {}z{} = {}z{}={}rr) r$r}rr,r-r+rrrr)rBr$ formatteds rrzParameter.__str__ syyJJ    6 )  '78H8H'IKI == &v-%,,YT]]8KL #NN9d4==6IJ ? "iI\ !y(IrcNSRURRU5$)Nz <{} "{}">r-r@rrs rrsParameter.__repr__ s!!$.."9"94@@rcp[URURURUR45$r )hashr}r~rrrs r__hash__Parameter.__hash__ s(TZZT-=-=t}}MNNrc4XLag[U[5(d[$URUR:H=(aY URUR:H=(a9 UR UR :H=(a UR UR :H$NT)r~r#NotImplementedr}r~rrrBothers r__eq__Parameter.__eq__ sw =%++! ! ekk)6 ekk)6 /6  E$5$55 7r)rrr~r}N)"rryr9rr>r=rr:rr;rr=rr>rr@r,rrrrrrrrr$rrrz __replace__rsrrrr}rrr#r# s*>I.O4-N+L*K E.4)V3 0  $% %N$,KAO7rr#cp\rSrSrSrSrSr\S5r\S5r \S5r Sr S r S r S rS rS rg)r i( aResult 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__cX lXlgr )rr)rBrers rrBoundArguments.__init__; s "#rcUR$r )rrs rreBoundArguments.signature? s rcb/nURRR5Hiup#UR[[ 4;a OLUR UnUR[:XaURU5 MXURU5 Mk [U5$![a  Mf=fr ) rrrr$rrrrextendrrr)rBrrrr9s rrBoundArguments.argsC s!%!;!;!A!A!C JzzlM:: %nnZ0 ::0KK$KK$!"D$T{  s B B.-B.c0nSnURRR5Hup4U(d0UR[[ 4;aSnOX0R ;aSnM<U(dMEUR UnUR[:XaURU5 M|XQU'M U$![a Mf=f)NFT) rrrr$rrrupdater)rBkwargskwargs_startedrrr9s rrBoundArguments.kwargsZ s!%!;!;!A!A!C J!::, !>>%)N!7)- ! -nnZ0::-MM#&*-:&-"D0   s/B// B=<B=cURn/nURRR5Hup4UR X1U45 M [U5Ulg![ ae UR [La UR nO/UR[LaSnOUR[La0nOMUR X545 Mf=f)zSet 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. r}N) rrrrrrrr,r$rrr)rBr new_argumentsrrvals rapply_defaultsBoundArguments.apply_defaultsx sNN  ??55;;=KD 2$$ddO%<=>m, 2==.--CZZ?2CZZ</C$$d[1 2sA##AC<CCcXLag[U[5(d[$URUR:H=(a URUR:H$r)r~r rrerrs rrBoundArguments.__eq__ sG =%00! !%//12%//1 3rc,USUlUSUlg)Nrrrrrs rrBoundArguments.__setstate__ s -{+rc4URURS.$)Nrrrs r __getstate__BoundArguments.__getstate__ s"ooDNNKKrc/nURR5H%up#URSRX#55 M' SRURR SR U55$)Nz{}={!r}z <{} ({})>r#)rrrr-r@rrN)rBrr9rs rrsBoundArguments.__repr__ s\....0JC KK ((4 51!!$.."9"9499T?KKrrN)rryr9rr>r=rrrerrrrrrrsrr}rrr r ( sj ;I$,:-83,LLrr c\rSrSrSrSr\r\r \ r S\ SS.Sjjr \ SSSSS .S j5r\S 5r\S 5r\\S .Sjr\rSrSrSrSS.SjrSrSrSrSrSrSrSS.SjrSr g)r$i 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 _parametersNTrMc8Uc [5nOU(a[5n[nSnUHnURnURn X:a3Sn U R UR UR 5n [ U 5eX:aUnU[[4;a*UR[LaU(a Sn [ U 5eOSnX;aSR U 5n [ U 5eXtU 'M O[SU55n[R"U5Ul X l g)ztConstructs 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}c3<# UHoRU4v M g7fr rr rs rr %Signature.__init__.. s$QjUjj%%8js)rnrr$rr-rvrrrr,rMappingProxyTyperr) rBrrrNrtop_kind seen_defaultrr$rrs rrSignature.__init__ s   ]F&$+$ 'E ::D ::D("jj)=)=)-)9)9;(o-#' 02HII ==F2+'1&0o 5 ,,0L~>EEdK(o-#(4L?(B%$Qj$QQ 11&9"3rFfollow_wrappedrrrsrtc [XUX4US9$)z3Constructs Signature for the given callable object.)rrrrrsrt)r)r rrrrrsrts rreSignature.from_callable s(>L07QY[ [rcUR$r )rrs rrSignature.parameters rrcUR$r rrs rrSignature.return_annotation s&&&r)rrcU[LaURR5nU[La URn[ U5"UUS9$)zCreates a customized copy of the Signature. Pass 'parameters' and/or 'return_annotation' arguments to override them in the new copy. r2)rrrrr)rBrrs rrSignature.replace sH  //1J  % $ 7 7 Dz*,=? ?rc[SURR555nURR5Vs0sH&nUR[:XdMUR U_M( nnXUR 4$s snf)Nc3R# UHnUR[:wdMUv M g7fr )r$rrs rr (Signature._hash_basis.. s%=*B % m ;u*Bs' ')rrrr$rrr)rBrr kwo_paramss r _hash_basisSignature._hash_basis s=$//*@*@*B==6:__5K5K5MH5ME+0::+F(ejj%'5M H4#9#999Hs B#BctUR5upn[UR55n[XU45$r )r frozensetrr)rBrrrs rrSignature.__hash__& s:040@0@0B--z0023 V):;<. s&)A"JJ)Asz*got an unexpected keyword argument {arg!r})rrrrr$rrrrrrrrr- StopIterationrr,rrr8rMrrN_bound_arguments_cls)rBrrrrr parameters_exarg_valspos_only_param_in_kwargsarg_valrrrr kwargs_paramrs r_bindSignature._bind2 s $//0023  :#% J 4x.`4 ,EzzlM%BB(;=BFGzz_4#* h/05f **-zzV+ >N0N'BII$)JJJ016:;-4ejj)[b __]?Ezz\)$ zz_,J 0 **Z0)0*%5@8 '/5,++,)117 II&)A&282 @GG f.H011((99W%O#$CD$NOc!, ;*; ,E zz_4v- ::)99$}}6(UV[V`V`Uc&d&/n 45;;EB$). ** 405 V0K*/ #-2HM!$zz]:*9*,"QC"%**W*"MC"+C.d:Q% , ;x F  EJJ/$A49MMV4K#$J$*FzF$:'>?A ArcUSUlgrrrs rrSignature.__setstate__ s"'(<"=rcNSRURRU5$)Nz<{} {}>rrs rrsSignature.__repr__ s 7 7>>rc"UR5$r )r-rs rrzSignature.__str__ s{{}r) max_widthc/nSnSnURR5Hn[U5nURnU[:XaSnOU(aUR S5 SnU[ :XaSnO$U[:XaU(aUR S5 SnUR U5 M U(aUR S5 SRSRU55nUb/[U5U:a SRSRU55nUR[La)[UR5n US RU 5- nU$) zCreate a string representation of the Signature object. If *max_width* integer is passed, signature will try to fit into the *max_width*. If signature is longer than *max_width*, all parameters will be on separate lines. FT/rz({})r#z ( {} )z, z -> {})rrrr$rrrrr-rNr,rr,r+) rBr rrender_pos_only_separatorrender_kw_only_separatorrrr$renderedannos rr-Signature.format s+$)!#' __++-EE I::D'',0)* c",1)&,1(&+C c",1( MM) $5.8 % MM# ==6!23  S]Y%>%,,Y^^F-CDH  ! ! /#D$:$:;D - -Hr)rrr )!rryr9rr>r=r#r3r rr,rrrrerrrrrrrrrrrrrrrsrzr-rr}rrr$r$ s,6IN) E24V)-24h%)4u[[  ''%*U ?K:= 9.3L:\(6A >?#'44rr$rc,[RXX#US9$)z/Get a signature object for the passed callable.r)r$re)rrrrrsrts rrere s#  " "3+2H # VVrc\rSrSrSrSrSrSrS\-rS\-r S\-r S \-r S \-r \\-r \r\\-r\r\\-\-r\\-r\ \-\-r\ \-rS rS rS rg )r i rjrH @ir}N)rryr9rSIMPLEWRITABLEFORMATNDSTRIDES C_CONTIGUOUS F_CONTIGUOUSANY_CONTIGUOUSINDIRECTCONTIG CONTIG_ROSTRIDED STRIDED_RORECORDS RECORDS_ROFULLFULL_ROREADWRITErr}rrr r  s FH F BRiG'>L'>LG^NwH (]FI GJ 6)G6!J h  'DG D Err c0SSKnSSKnUR5nURSSS9 URSSSS S 9 UR 5nUR nUR S 5upVnUR"U5=pU(a'UR!S5n W nU Hn [#X5nM W R[R$;a.[S[RS 9 [R"S5 UR&(a[SRU55 [SR[)U 555 [SRU R*55 WU Lac[SR[-U R.555 [1U S5(a$[SRU R255 O([5U5up[SRU55 [S5 g[[7W55 g![a_n S RU[U 5RU 5n [U [RS 9 [R"S5 Sn A GNSn A ff=f![a Nf=f)z5Logic for inspecting an object given at command line rjNrzCThe 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/:zFailed to import {} ({}: {}))rrr7z#Can't get info for builtin modules.rHz Target: {}z Origin: {}z Cached: {}z Loader: {}__path__zSubmodule search path: {}zLine: {}rG)argparser`ArgumentParser add_argument parse_argsr partition import_modulerr-rrprintrstderrexitr:rbuiltin_module_namesdetailsrK __cached__rrrrr3r*rJ)r4r`parserrtargetmod_name has_attrsattrsrrrrpartspart__rls r_mainrH/ s$  $ $ &F 9:  k, HJ    D [[F!'!1!1#!6H ..x88 C D#$C#222 3#**E   || l!!&)* l!!-"789 l!!&"3"345 &= ,%%d6+<+<&=> ?vz**188IJ 1'_ j''/0 d  inG ,33H48I4F4F479 c #  8  s+,H J J&AJJ JJrVr )F)rH)r})T)TNNF)r> __author____all__rrrUcollections.abcrenumimportlib.machineryr`rr{r]r rrrrrrkeywordrkoperatorrlrmrnweakrefrorrrmod_dictCOMPILER_FLAG_NAMESrrrr%r.rarSr^r_rWrr]r\rYrr[rrrrdrVrPrOrZrUrQrcrXrTrRr`rbrNrrDrErr'rHrhrMr;rDr<r(r=rGrKr/rrrFrrr*r9rr r5rLrJrir7rr0rr?rr1r+r,rr-r1r=r6rr8rdr&r}rzr>rC_fieldsrrrIrBr)rfrgrrrvrrrrr lru_cacherrr4r r!r"rrAr@r rrr r;r:rrrrr3r2WrapperDescriptorTyperrrrrrrrrrrHrKr[rrrr,IntEnumrrr:rr;rr=rr>rr@rr#r r$reIntFlagr rHrr}rrrXs)@9 i X    /' 9  # # ) ) +DAqHUQY ,q(%)vt0$0/8 ? 5())> 5())> 2 ,-XJ I383"3;3 /.297(0(T3 : {$E F ph @0 ;z&8,8 :8 -` ) 90v+%Z"!44l$&0*+6 {$: ; 86MO Z ?9 ""9 8 ? (.7 D*:x(LM 54r &S T  - -7O)AV  j93D3D&D E  @ @  C5' H y)11 MM*5==4 $ '0/h    $&  ! $   ! $."77!33!;;!557 $I?X*4 *G2/+dP8f < 8