grthtrhthjhtyjytjytkergtrhtrjytjerhrfhU iÛfñ%ã@sÀdZddlZdd„ZeeƒZedd„ƒZeejƒZeejƒZ eej ƒZ dd„Z ee ƒƒZ d d „ZeeƒƒZd d „ZeƒZeeƒZe ¡d d„ZeƒZeeƒZGdd„dƒZeeƒjƒZeeƒZegjƒZeejƒZeeƒjƒZ ee!j"ƒZ#ee$jdƒZ%eeƒZ&ze'‚Wn:e'k �rBe (¡dZ)ee)ƒZ*ee)j+ƒZ,dZ)[)YnXeejƒZ-eej.ƒZ/[[[[[[d$dd„Z0dd„Z1d%dd„Z2dd„Z3Gdd„dƒZ4Gdd„dƒZ5d d!„Z6d"d#„e7ƒDƒZ8dS)&zO Define names for built-in types that aren't directly accessible as a builtin. éNcCsdS©N©rrrú*/opt/alt/python38/lib64/python3.8/types.pyÚ_f órcCsdSrrrrrrÚ rrcsd‰‡fdd„}|jdS)NécsdSrrr©ÚarrÚfsz_cell_factory..fr)Ú __closure__)r rr rÚ _cell_factorys r ccs dVdS)NrrrrrrÚ_gsrcÃsdSrrrrrrÚ_crrcCs dVdSrrrrrrÚ_ag"src@seZdZdd„ZdS)Ú_CcCsdSrr©ÚselfrrrÚ_m(rz_C._mN)Ú__name__Ú __module__Ú __qualname__rrrrrr'srÚfromkeysércCsJt|ƒ}t|||ƒ\}}}|dk r*||ƒ||k r:||d<||||f|ŽS)zBCreate a class object dynamically using the appropriate metaclass.NÚ__orig_bases__)Ú resolve_basesÚ prepare_class)ÚnameÚbasesÚkwdsÚ exec_bodyÚresolved_basesÚmetaÚnsrrrÚ new_classEsr$cCs”t|ƒ}d}d}t|ƒD]j\}}t|tƒr,qt|dƒs8q| |¡}d}t|tƒsZtdƒ‚q||||||d…<|t|ƒd7}q|sŒ|St|ƒS)z8Resolve MRO entries dynamically as specified by PEP 560.FrÚ__mro_entries__Tz#__mro_entries__ must return a tupler) ÚlistÚ enumerateÚ isinstanceÚtypeÚhasattrr%ÚtupleÚ TypeErrorÚlen)rÚ new_basesÚupdatedÚshiftÚiÚbaseÚnew_baserrrrOs"     rcCs~|dkri}nt|ƒ}d|kr*| d¡}n|r|}|D]0}t|ƒ}t||ƒr qt||ƒr0|}qtdƒ‚q|S)z%Calculate the most derived metaclass.zxmetaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases)r)Ú issubclassr,)r"rÚwinnerr2Ú base_metarrrr8„s   r8c@sLeZdZdZddd„Zddd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dS)ÚDynamicClassAttributeaRoute attribute access on a class to __getattr__. This is a descriptor, used to define attributes that act differently when accessed through an instance and through a class. Instance access remains normal, but access to an attribute through a class will be routed to the class's __getattr__ method; this is done by raising AttributeError. This allows one to have properties active on an instance, and have virtual attributes on the class with the same name (see Enum for an example). NcCs>||_||_||_|p|j|_|dk|_tt|ddƒƒ|_dS)NÚ__isabstractmethod__F)ÚfgetÚfsetÚfdelÚ__doc__Ú overwrite_docÚboolÚgetattrr=)rr>r?r@ÚdocrrrÚ__init__¡s   zDynamicClassAttribute.__init__cCs6|dkr|jr|Stƒ‚n|jdkr,tdƒ‚| |¡S)Nzunreadable attribute)r=ÚAttributeErrorr>)rÚinstanceÚ ownerclassrrrÚ__get__«s zDynamicClassAttribute.__get__cCs"|jdkrtdƒ‚| ||¡dS)Nzcan't set attribute)r?rG)rrHÚvaluerrrÚ__set__´s zDynamicClassAttribute.__set__cCs |jdkrtdƒ‚| |¡dS)Nzcan't delete attribute)r@rG)rrHrrrÚ __delete__¹s z DynamicClassAttribute.__delete__cCs8|jr |jnd}t|ƒ||j|j|p(|jƒ}|j|_|Sr)rBrAr)r?r@)rr>ÚfdocÚresultrrrÚgetter¾szDynamicClassAttribute.gettercCs$t|ƒ|j||j|jƒ}|j|_|Sr)r)r>r@rArB)rr?rOrrrÚsetterÄszDynamicClassAttribute.settercCs$t|ƒ|j|j||jƒ}|j|_|Sr)r)r>r?rArB)rr@rOrrrÚdeleterÉszDynamicClassAttribute.deleter)NNNN)N) rrrrArFrJrLrMrPrQrRrrrrr<•s r<c@s€eZdZdd„Zdd„Zdd„Zdd„Zed d „ƒZed d „ƒZ ed d„ƒZ edd„ƒZ eZ e Z e Ze Zdd„Zdd„ZeZdS)Ú_GeneratorWrappercCs2||_|jtk|_t|ddƒ|_t|ddƒ|_dS)Nrr)Ú_GeneratorWrapper__wrappedÚ __class__Ú GeneratorTypeÚ_GeneratorWrapper__isgenrDrr)rÚgenrrrrFÑs z_GeneratorWrapper.__init__cCs |j |¡Sr)rTÚsend)rÚvalrrrrYÖsz_GeneratorWrapper.sendcGs|jj|f|žŽSr)rTÚthrow)rÚtpÚrestrrrr[Øsz_GeneratorWrapper.throwcCs |j ¡Sr)rTÚcloserrrrr^Úsz_GeneratorWrapper.closecCs|jjSr)rTÚgi_coderrrrr_Üsz_GeneratorWrapper.gi_codecCs|jjSr)rTÚgi_framerrrrr`ßsz_GeneratorWrapper.gi_framecCs|jjSr)rTÚ gi_runningrrrrraâsz_GeneratorWrapper.gi_runningcCs|jjSr)rTÚ gi_yieldfromrrrrrbåsz_GeneratorWrapper.gi_yieldfromcCs t|jƒSr)ÚnextrTrrrrÚ__next__ìsz_GeneratorWrapper.__next__cCs|jr |jS|Sr)rWrTrrrrÚ__iter__îsz_GeneratorWrapper.__iter__N)rrrrFrYr[r^Úpropertyr_r`rarbÚcr_codeÚcr_frameÚ cr_runningÚcr_awaitrdreÚ __await__rrrrrSÏs&    rScs’tˆƒstdƒ‚ˆjtkrftˆddƒjtkrfˆjj}|d@r@ˆS|d@rfˆj}|j|jdBd�ˆ_ˆSddl }ddl ‰|  ˆ¡‡‡fd d „ƒ}|S) z2Convert regular generator function to a coroutine.z$types.coroutine() expects a callableÚ__code__Ni€é é)Úco_flagsrcsRˆ||Ž}|jtks*|jtkr.|jjd@r.|St|ˆjƒrNt|ˆjƒsNt|ƒS|S)Nrn) rUÚ CoroutineTyperVr_ror(Ú GeneratorÚ CoroutinerS)ÚargsÚkwargsÚcoro©Ú_collections_abcÚfuncrrÚwrappeds  ÿ ÿ  ÿzcoroutine..wrapped) Úcallabler,rUÚ FunctionTyperDÚCodeTyperlroÚreplaceÚ functoolsrwÚwraps)rxroÚcor~ryrrvrÚ coroutineôs" ÿr�cCs g|]}|dd…dkr|‘qS)NrÚ_r)Ú.0ÚnrrrÚ (sr…)rNN)rN)9rAÚsysrr)r{Ú LambdaTyperlr|Ú__dict__ÚMappingProxyTypeÚimplementationÚSimpleNamespacer ÚCellTyperrVrrpr^rÚAsyncGeneratorTyperrÚ MethodTyper-ÚBuiltinFunctionTypeÚappendÚBuiltinMethodTypeÚobjectrFÚWrapperDescriptorTypeÚ__str__ÚMethodWrapperTypeÚstrÚjoinÚMethodDescriptorTyper6ÚClassMethodDescriptorTypeÚ ModuleTyper,Úexc_infoÚtbÚ TracebackTypeÚtb_frameÚ FrameTypeÚGetSetDescriptorTypeÚ __globals__ÚMemberDescriptorTyper$rrr8r<rSr�ÚglobalsÚ__all__rrrrÚs\                  :%4