Ë #$é‚Ô¯ïéãóÔ—dZddlZddlZddlZddlZddlZddlZddlmZddl m Z Gd„d«Z d„Z dZ d Zd Zej d «Zd Zd Zd„Zedk(rddlmZedd¬«yy)zúPop up a reminder of how to call a function. Call Tips are floating windows which display function, class, and method parameter and docstring information when you type an opening parenthesis, and which disappear when you type a closing parenthesis. éN)Ú calltip_w)Ú HyperParsercóF—eZdZd d„Zd„Zd„Zd d„Zd„Zd„Zd„Z d „Z d „Z y) ÚCalltipNcóx—|€d|_y||_|j|_d|_|j|_y©N)ÚeditwinÚtextÚactive_calltipÚ_make_tk_calltip_windowÚ_calltip_window)Úselfr s ú&/usr/lib/python3.12/idlelib/calltip.pyÚ__init__zCalltip.__init__s6€Ø ˆ?؈D�Là"ˆDŒLØŸ ™ ˆDŒIØ"&ˆDÔ Ø#'×#?Ñ#?ˆDÕ ócó—d|_yr)r ©rs rÚclosez Calltip.closes €Ø#ˆÕrcó@—tj|j«Sr)rÚ CalltipWindowr rs rr zCalltip._make_tk_calltip_window s€ä×&Ñ& t§y¡yÓ1Ð1rcó`—|jr"|jj«d|_yyr)r Úhidetip©rÚevents rÚremove_calltip_windowzCalltip.remove_calltip_window$s*€Ø × Ò Ø × Ñ × 'Ñ 'Ô )Ø"&ˆDÕ ð rcó&—|jd«y)z9The user selected the menu entry or hotkey, open the tip.TÚbreak©Ú open_calltiprs rÚforce_open_calltip_eventz Calltip.force_open_calltip_event)s€à ×ј$ÔØrcó&—|jd«y)zªHappens when it would be nice to open a calltip, but not really necessary, for example after an opening bracket, so function calls won't be made. FNrrs rÚtry_open_calltip_eventzCalltip.try_open_calltip_event.s€ð ×ј%Õ rcón—|jr)|jjr|jd«yyy)NF)r Ú tipwindowrrs rÚrefresh_calltip_eventzCalltip.refresh_calltip_event5s0€Ø × Ò  4×#6Ñ#6×#@Ò#@Ø × Ñ ˜eÕ $ð$AÐ rcó–—t|jd«}|jd«}|s|j«y|jrWt t |djd««\}}||f|jj|jjfk(ry|j|d« |j«}|sy|j«|s|jd«dk7ry|j|«}|sy|j«|_|jj!||d|d«y#t$rd}YŒ„wxYw)z’Maybe close an existing calltip and maybe open a new calltip. Called from (force_open|try_open|refresh)_calltip_event functions. ÚinsertÚ(NrÚ.éÿÿÿÿé)rr Úget_surrounding_bracketsrr ÚmapÚintÚsplitÚ parenlineÚparencolÚ set_indexÚget_expressionÚ ValueErrorÚfindÚ fetch_tipr Úshowtip)rÚ evalfuncsÚhpÚ sur_parenÚ opener_lineÚ opener_colÚ expressionÚargspecs rrzCalltip.open_calltip9sD€ô ˜Ÿ™ xÓ 0ˆØ×/Ñ/°Ó4ˆ ñØ × &Ñ &Ô (Ø ð × Ò Ü&)¬#¨y¸©|×/AÑ/AÀ#Ó/FÓ&GÑ #ˆK˜à˜jÐ)Ø×$Ñ$×.Ñ.°×0CÑ0C×0LÑ0LÐMòNðà � ‰ �Y˜q‘\Ô"ð Ø×*Ñ*Ó,ˆJñð ð ×"Ñ"Ô$ñ˜jŸo™o¨cÓ2°bÒ8Ø à—.‘. Ó,ˆÙØ Ø"×2Ñ2Ó4ˆÔØ ×Ñ×#Ñ# G¨Y°q©\¸9ÀQ¹<ÕHøô/ò ØŠJð úsÂ3D:Ä: EÅEcóä— |jjjjj}|r|j dd|fi«Stt|««S#t $rd}YŒ8wxYw)aDReturn the argument list and docstring of a function or class. If there is a Python subprocess, get the calltip there. Otherwise, either this fetch_tip() is running in the subprocess or it was called in an IDLE running without the subprocess. The subprocess environment is that of the most recently run script. If two unrelated modules are being edited some calltips in the current module may be inoperative if the module was not the last to run. To find methods, fetch_tip must be fed a fully qualified name. NÚexecÚget_the_calltip) r ÚflistÚpyshellÚinterpÚrpccltÚAttributeErrorÚ remotecallÚ get_argspecÚ get_entity)rr=rEs rr6zCalltip.fetch_tiplst€ð Ø—\‘\×'Ñ'×/Ñ/×6Ñ6×=Ñ=ˆFñ Ø×$Ñ$ VÐ->Ø&0 ]°Bó8ð 8ôœz¨*Ó5Ó6Ð 6øô ò ØŠFð ús‚4A!Á! A/Á.A/r) Ú__name__Ú __module__Ú __qualname__rrr rr r"r%rr6©rrrrs2„ó@ò$ò2ó'ò ò !ò%ò1Ióf7rrcó„—|r/itj¥tj¥} t ||«Sy#t $rYywxYw)zwReturn the object corresponding to expression evaluated in a namespace spanning sys.modules and __main.dict__. N)ÚsysÚmodulesÚ__main__Ú__dict__ÚevalÚ BaseException)r=Ú namespaces rrIrI…sM€ñØ8”s—{‘{Ð8¤h×&7Ñ&7Ð8ˆ ð ܘ  IÓ.Ð .ðøôò ñð ús ¦ 3³ ?¾?éUéz z(?<=\()\w*\,?\s*zSee source or doczinvalid method signaturecó— |j}t|tj«r|n|} t t j|««}t|t«r |dk(rt}t|«tkDr tj |tt"¬«n|r|gng}t j$|«}|rh|j'dt(«dt(D]H}|j+«}|sn4t|«tkDr|dtdz dz}|j-|«ŒJdj/|«}|xstS#t$rYywxYw#t$r8}t |«}|jt«r tcYd}~Sd}Yd}~�Œ9d}~wwxYw)a¡Return a string describing the signature of a callable object, or ''. For Python-coded functions and methods, the first line is introspected. Delete 'self' parameter for classes (.__init__) and bound methods. The next lines are the first lines of the doc string up to the first empty line or _MAX_LINES. For builtins, this typically includes the arguments in addition to the return value. ÚNz())Úsubsequent_indentÚ éz...)Ú__call__rTÚ isinstanceÚtypesÚ MethodTypeÚstrÚinspectÚ signatureÚ ExceptionÚ startswithÚ_invalid_methodÚtypeÚ_default_callable_argspecÚlenÚ _MAX_COLSÚtextwrapÚwrapÚ_INDENTÚgetdocr/Ú _MAX_LINESÚstripÚappendÚjoin) ÚobÚob_callÚfobr>ÚerrÚmsgÚlinesÚdocÚlines rrHrHšsV€ðØ—+‘+ˆô  ¬×)9Ñ)9Ô:‰'À€CðÜ”g×'Ñ'¨Ó,Ó-ˆô�#”tÔ ¨D¢ä+ˆô�G“ œyÒ(ô�]‰]˜7¤IÄÕ IÙ;B¨w©iÈð ô �.‰.˜Ó €CÙ Ø—I‘I˜d¤JÓ/° ´Ó<ˆDØ—:‘:“<ˆDÙÙÜ�4‹yœ9Ò$ؘOœi¨!™mÐ,¨uÑ4�Ø �L‰L˜Õ ð =ð�i‰i˜Ó€Gà Ò /Ô/Ð/øôE òÙðûô òÜ�#‹hˆØ �>‰>œ/Ô *Ü"Õ "àŽGûð ús4‚ D9­EÄ9 EÅEÅ F Å%FÅ6F Å<FÆF rQ)Úmainzidlelib.idle_test.test_calltipé)Ú verbosity)Ú__doc__rQrbÚrerOrkr_ÚidlelibrÚidlelib.hyperparserrrrIrjrormÚcompileÚ _first_paramrhrfrHrJÚunittestr{rMrrÚr…s†ðñó ÛÛ Û ÛÛ åÝ+÷p7ñp7òf ð € Ø € Ø €Øˆr�z‰zÐ-Ó.€ Ø/ÐØ,€ò.0ðb ˆzÒÝÙÐ )°QÖ7ðr