Ë v…žµ^þ•jãó˜—ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z gd¢Z dZ e ZGd„d«Ze«Zefd„Zej$dk\rd„Znej$d k\rd „Znd „Zdàd „Ze j*Ze j,d «Ze j,d«Ze j,d«Ze j,dd¬«Ze j,dd¬«Zej$dk\rddl mZnGd„de «ZGd„de¬«Ze j<ZGd„de j>d¬«Z e jBZ!ej$dk\r e jDZ"nd„Z"d„Z#ej$d k\r e jHZ$n3d!„Z%d"„Z&Gd#„d$e jNd¬«Z(Gd%„d&e d¬«Z)e)d'¬(«Z$e jTZ*e+e d)«r%e jXZ,e jZZ-e j\Z.n6ej^ej`ej^e1««Z2d*„Z,d+„Z-d,„Z.e jfZ3e jhZ4e jjZ5e jlZ6e jnZ7e jpZ8e jrZ9e jtZ:e jvZ;e jxZe j~Z?e j€Z@e j‚ZAgd-¢d.d/gd0gd1œZBhd2£ZCej$d k\reCj‰d3«ej$d4k\reCj‰d5«eEeC«ZCd6„ZFdád8„ZGej$d9k\r e j�ZHnDdâd:„ZId;„ZJd<„ZKGd=„d>e e j�««ZLeMd?„«ZNGd@„dAe jžeL¬«ZHej$d9k\r e j ZPndB„ZPePZQej$d4k\rUe j¤ZRe j¦ZSe j¨ZTe jªZUe j¬ZVe j®ZWe j°ZXnvePGdC„dDeH««ZRePGdE„dFeH««ZSePGdG„dHeH««ZTePGdI„dJeH««ZUePGdK„dLeH««ZVePGdM„dNeHe««ZWePGdO„dPeHe««ZXdQ„ZYe+e dR«r%e j´ZZe j¶Z[e j¸Z\n}dSejºe j¼«j¾vZ`dT„ZaGdU„dVe «Z[e jÅe[dWdXi«ZceYdY„«efddZd[œd\„«ZZe+e dV«re j¶e[fZdne[fZdd]„Z\e+e d^«r e jÊZend_„Zee+e d`«r e jÌZfnda„Zgdãdb„Zfe+e dc«re jÐZhe jÒZin!Gdd„dee jNd¬«ZiGdf„dc«Zhej$dd7dk\re jÔZje jÖZkn ddgl mlZl ddhl mnZodi„Zjdj„Zke+e dk«r e jàZpn%ej$dd7d k\r e dl„«Zpn e dkdm¬(«Zpdn„Zqdo„ZrGdp„dq«ZsGdr„dse «ZtGdt„duet¬«Ze+e dv«re jêZue jìZvn Gdw„dx«ZwGdy„dvew«ZuGdz„d{ew«Zve+e d|«r Gd}„d|et¬«Zxn Gd~„d|eyes«Zxe+e d«s Gd€„d�ey«Zze jöd‚„«Z|e+e d«re júZ}e jôZzn2ej$dd7d k\r e dƒ„«Z}nGd„„d…e d¬«Z~e~dd†¬(«Z}e+e d‡«r e jþZn2ej$dd7d k\r e dˆ„«ZnGd‰„dŠe d¬«Z€e€d‡d‹¬(«Ze+e dŒ«re �jZ�n2ej$dd7d k\r e d�„«Z�nGdŽ„d�e d¬«Z‚e‚dŒd�¬(«Z�Gd‘„d’e �jd¬«Ze+e d“«re �jZ„ned”„«Z„e+e d•«re �j Z…ned–„«Z…e+e d—«re �j Z†ned˜„«Z†e+e d`«re �jZ‡e �jZˆnDej$dd7d k\re d™„«Z‡e dš„«Zˆn!Gd›„dœe d¬«Z‰e‰d`d�¬(«Z‡e‰dždŸ¬(«Zˆe+e dR«re �jZŠn2ej$dd7d k\r e d „«ZŠnGd¡„d¢e d¬«Z‹e‹dRd£¬(«ZŠd¤ZŒej$d4k\re �jZ�d¥„ZŽnsej$dd7d k\r0Gd¦„d§e d¬«Z�Gd¨„d©e jNd¬«Z�e�dª„«Z�d«„ZŽn1Gd¬„d©e jNd¬«Z�Gd­„d®e d¬«Z‘e‘d¯eŒ¬(«Z�d°„ZŽe+e d±«r Gd²„d±et¬«Z’n Gd³„d±es«Z’e+e d´«re �j&Z“ndµed¶efd·„Z“e+e d¸«re �j(Z”nd¹e†d¶e†fdº„Z”ej$d4k\re �j*Z•n…ddZdZdZdXd»œd¼e–d½e–d¾e–d¿e–dÀe �j.e �j0e jfe j8e �j2dÁe j8ffdÁfdÂe j8d¶e �j2egeffdÄZ•e+e dÄ«re �j4Zšn6e j,dÅe �j2dÁe j8f¬Æ«Z›d¹e›d¶e›fdÇ„Zše+e dÈ«re �j8Zœne j,dÉ«Z�GdÊ„dÈ«Zœe+e d±«see _ee _ej$d9k\re �j<ZžnMdädË„ZŸe �j@Z¡eEhdÌ£«Z¢GdÍ„dÎe «Z£e jÅe£dÏdXi«Z¤dЄZ¥eYe¥«efdÑ„«Zže+ejd0«rej�jLZ¦nLGdÒ„d0e�jN«Z¦e¦�jQe©«e¦�jQeª«e¦�jQe««e+edÓ«re�jXZ¬ndÔ„Z¬ej$dk\re �jZZ­n GdÕ„dÖ«Z­e+e d׫re �j\Z®n dØ„Z¯GdÙ„d׫Z®e+e dÚ«re �j`Z°e �jbZ±ndÛe d¶e–fdÜ„Z°dÛe d¶e �jde³fdÝ„Z±e+e dÞ«re �jhZ´n Gdß„dÞ«Z´e �jjZµe �jlZ¶e �jnZ·e �j2Z™e �jpZ¸e �jrZ¹e �jtZºe �jvZ»e �jdZ²e �jxZ¼e jžZOe �jzZ½e �j|Z¾e �j~Z¿e �j€ZÀe �j‚ZÁe �j„ZÂe �j†ZÃe �jˆZÄe �jŠZÅe �jŒZÆe �jŽZÇe �j�ZÈe �j’ZÉe �j”ZÊe �j–ZËe �j˜ZÌe �jšZÍe �jœZÎe �jžZÏe �j ZÐe �j.Z—e �j0Z˜e �j¢ZÑe �j¤ZÒe �j¦ZÓe �j¨ZÔy#em$re jNZlY�ŒÏwxYw#em$re jNZoY�ŒàwxYw)åéN)lÚAnyÚClassVarÚ ConcatenateÚFinalÚ LiteralStringÚ ParamSpecÚ ParamSpecArgsÚParamSpecKwargsÚSelfÚTypeÚTypeVarÚ TypeVarTupleÚUnpackÚ AwaitableÚ AsyncIteratorÚ AsyncIterableÚ CoroutineÚAsyncGeneratorÚAsyncContextManagerÚBufferÚChainMapÚContextManagerÚCounterÚDequeÚ DefaultDictÚ NamedTupleÚ OrderedDictÚ TypedDictÚ SupportsAbsÚ SupportsBytesÚSupportsComplexÚ SupportsFloatÚ SupportsIndexÚ SupportsIntÚ SupportsRoundÚ AnnotatedÚ assert_neverÚ assert_typeÚclear_overloadsÚdataclass_transformÚ deprecatedÚDocÚ get_overloadsÚfinalÚget_argsÚ get_originÚget_original_basesÚget_protocol_membersÚget_type_hintsÚIntVarÚ is_protocolÚ is_typeddictÚLiteralÚNewTypeÚoverloadÚoverrideÚProtocolÚ reveal_typeÚruntimeÚruntime_checkableÚTextÚ TypeAliasÚ TypeAliasTypeÚ TypeGuardÚTypeIsÚ TYPE_CHECKINGÚNeverÚNoReturnÚReadOnlyÚRequiredÚ NotRequiredÚ AbstractSetÚAnyStrÚBinaryIOÚCallableÚ CollectionÚ ContainerÚDictÚ ForwardRefÚ FrozenSetÚ GeneratorÚGenericÚHashableÚIOÚ ItemsViewÚIterableÚIteratorÚKeysViewÚListÚMappingÚ MappingViewÚMatchÚMutableMappingÚMutableSequenceÚ MutableSetÚOptionalÚPatternÚ ReversibleÚSequenceÚSetÚSizedÚTextIOÚTupleÚUnionÚ ValuesViewÚcastÚ no_type_checkÚno_type_check_decoratorTcó—eZdZd„Zy)Ú _Sentinelcó—y)Nz ©©Úselfs ú6/usr/lib/python3.12/site-packages/typing_extensions.pyÚ__repr__z_Sentinel.__repr__�s€ØóN©Ú__name__Ú __module__Ú __qualname__rvrrrwrurprpŽs„órwrpc ó²—|st|›d�«‚|tur;t|d«r |jst|›d�«‚t |j«}t |«}||k7rot|d«rE|jD�cgc]}t |«rŒ|‘Œ}}t d„|D««}|dkDr |||z k\rytd||kDrdnd›d |›d |›d |›�«‚ycc}w) zŠCheck correct count for parameters of a generic cls (internal helper). This gives a nice error message in case of count mismatch. z is not a generic classÚ__parameters__c3ó<K—|]}t|t«–—Œy­w©N)Ú isinstancer)Ú.0Úps ruÚ z!_check_generic..¤sèø€ÐPÁZÀ¤ ¨1¬l× ;ÁZùó‚rNzToo ÚmanyÚfewz parameters for z ; actual z , expected )Ú TypeErrorÚ_markerÚhasattrr}ÚlenÚ _is_unpackÚsum)ÚclsÚ parametersÚelenÚalenr‚Ú num_tv_tupless ruÚ_check_genericr’–sþ€ñ ܘ3˜%Ð6Ð7Ó8Ð8Ø Œw�Ü�sÐ,Ô-°S×5GÒ5Gܘs˜eÐ#:Ð;Ó<Ð <Ü�3×%Ñ%Ó&ˆÜ ˆz‹?€DØ ˆt‚|Ü �3Ð(Ô )Ø%(×%7Ò%7ÓMÑ%7 ¼zÈ!½}š!Ð%7ˆJÐMÜÑPÁZÓPÓPˆMØ Ò!¨°°}Ñ0DÒ(DØÜ˜$¨°ª™v¸%Ð@Ð@PÐQTÐPUðV#Ø#' &¨ °D°6ð;ó<ð <ð ùâMs Á>CÂC©éé cót—t|tjtjtj f«Sr)r€ÚtypingÚ _GenericAliasÚ_typesÚ GenericAliasÚ UnionType©Úts ruÚ_should_collect_from_parametersrž¬s-€ÜØ ”×$Ñ$¤f×&9Ñ&9¼6×;KÑ;KÐLó ð rw©r”é cóV—t|tjtjf«Sr)r€r—r˜r™ršrœs ruržrž±s €Ü˜!œf×2Ñ2´F×4GÑ4GÐHÓIÐIrwcóT—t|tj«xr |j Sr)r€r—r˜Ú_specialrœs ruržrž´s €Ü˜!œV×1Ñ1Ó2ÒE¸1¿:¹:°~ÐErwcó$—|€tj}g}|D]h}t||«r ||vrt|«s|j |«t |«sŒ;|j |jD�cgc] }||vsŒ|‘Œ c}«Œjt|«Scc}w)z®Collect all type variable contained in types in order of first appearance (lexicographic order). For example:: _collect_type_vars((T, List[S, T])) == (T, S) ) r—r r€r‹ÚappendržÚextendr}Útuple)ÚtypesÚ typevar_typesÚtvarsr�s ruÚ_collect_type_varsr«¸sˆ€ð ÐÜŸ™ˆ Ø €EÛ ˆä �q˜-Ô (Ø �U‰Nܘ1” à �L‰L˜ŒOÜ *¨1Õ -Ø �L‰L Q×%5Ò%5ÓHÑ%5 ¸À%ºš!Ð%5ÑHÕ Iðô �‹<ÐùòIs Á+ B Á5B ÚTÚKTÚVTÚT_co)Ú covariantÚT_contra)Ú contravariant)r”é )rcó(‡—eZdZˆfd„Zˆfd„ZˆxZS)Ú_AnyMetacóH•—|tur td«‚t‰|� |«S)Nz6typing_extensions.Any cannot be used with isinstance())rr‡ÚsuperÚ__instancecheck__)rtÚobjÚ __class__s €rur¸z_AnyMeta.__instancecheck__Ýs&ø€Ø”s‰{ÜÐ XÓYÐYÜ‘7Ñ,¨SÓ1Ð 1rwcó2•—|turyt‰|� «S)Nztyping_extensions.Any)rr·rv)rtrºs €rurvz_AnyMeta.__repr__âsø€Ø”s‰{Ø.Ü‘7Ñ#Ó%Ð %rw)ryrzr{r¸rvÚ __classcell__©rºs@rurµrµÜsø„ô 2÷  &ð &rwrµcó"‡—eZdZdZˆfd„ZˆxZS)raqSpecial type indicating an unconstrained type. - Any is compatible with every type. - Any assumed to have all methods. - All values assumed to be instances of Any. Note that all the above statements are true from the point of view of static type checkers. At runtime, Any should not be used with instance checks. cóP•—|tur td«‚t‰|� |g|¢­i|¤ŽS)NzAny cannot be instantiated)rr‡r·Ú__new__©r�ÚargsÚkwargsrºs €rurÀz Any.__new__ðs/ø€Ø”c‰zÜÐ <Ó=Ð=Ü‘7‘? 3Ð8¨Ò8°Ñ8Ð 8rw)ryrzr{Ú__doc__rÀr¼r½s@rurrçsø„ñ ÷ 9ð 9rwr)Ú metaclasscó—eZdZd„Zy)Ú_ExtensionsSpecialFormcó —d|jzS©Nztyping_extensions.©Ú_namerss rurvz_ExtensionsSpecialForm.__repr__ús€Ø# d§j¡jÑ0Ð0rwNrxrrrwrurÇrÇùs„ó1rwrÇ)Ú_rootcóB— d|_|S#ttf$rY|SwxYw)aøThis decorator can be used to indicate to type checkers that the decorated method cannot be overridden, and decorated class cannot be subclassed. For example: class Base: @final def done(self) -> None: ... class Sub(Base): def done(self) -> None: # Error reported by type checker ... @final class Leaf: ... class Other(Leaf): # Error reported by type checker ... There is no runtime checking of these properties. The decorator sets the ``__final__`` attribute to ``True`` on the decorated object to allow runtime introspection. T)Ú __final__ÚAttributeErrorr‡)Úfs rur.r.s5€ð, ؈AŒKð ˆøô ¤ Ð*ò ð Øˆð  úó ‚ ‹�có,—tj|«Sr)r—r )Únames rur4r4&s€Ü �>‰>˜$Ó Ðrw)r”r•écó¤—g}|D]?}t|t«r|j|j«Œ/|j |«ŒAt |«S)zJAn internal helper for Literal creation: flatten Literals among parameters)r€Ú_LiteralGenericAliasr¦Ú__args__r¥r§)rŽÚparamsr‚s ruÚ_flatten_literal_paramsrÙ.sD€àˆÛˆAܘ!Ô1Ô2Ø— ‘ ˜aŸj™jÕ)à— ‘ ˜aÕ ð ô �V‹}Ðrwc#ó8K—|D]}|t|«f–—Œy­wr)Útype)rØr‚s ruÚ_value_and_type_iterrÜ8sèø€ÛˆAØ”T˜!“W�*Ó ñùs‚có—eZdZd„Zd„Zy)rÖcó°—t|t«stStt |j ««}tt |j ««}||k(Sr)r€rÖÚNotImplementedÚsetrÜr×)rtÚotherÚthese_args_dedupedÚother_args_dedupeds ruÚ__eq__z_LiteralGenericAlias.__eq__=sI€Ü˜eÔ%9Ô:Ü%Ð%Ü!$Ô%9¸$¿-¹-Ó%HÓ!IÐ Ü!$Ô%9¸%¿.¹.Ó%IÓ!JÐ Ø%Ð);Ñ;Ð ;rwcóP—ttt|j«««Sr)ÚhashÚ frozensetrÜr×rss ruÚ__hash__z_LiteralGenericAlias.__hash__Ds€Üœ Ô"6°t·}±}Ó"EÓFÓGÐ GrwN)ryrzr{rärèrrrwrurÖrÖ<s „ò <ó HrwrÖcó—eZdZdefd„Zd„Zy)Ú _LiteralFormÚdoccó.—d|_|x|_|_y)Nr7)rËÚ_docrÄ)rtrës ruÚ__init__z_LiteralForm.__init__Hs€Ø"ˆDŒJØ'*Ð *ˆDŒI˜� rwcór—t|t«s|f}t|«}tt |««} t |«}t |«t |«krHg}|D],}||vsŒ|j|d«|j|«Œ.|rJ|«‚t|«} t||«S#t$rYŒwxYw©Nr) r€r§rÙÚlistrÜràrŠr¥Úremover‡rÖ)rtrŽÚval_type_pairsÚ deduped_pairsÚnew_parametersÚpairs ruÚ __getitem__z_LiteralForm.__getitem__Ls€Ü˜j¬%Ô0Ø(˜]� ä0°Ó<ˆJä!Ô"6°zÓ"BÓCˆNð 7Ü # NÓ 3� ô �}Ó%¬¨NÓ(;Ò;Ø%'�NÛ .˜Ø =Ò0Ø*×1Ñ1°$°q±'Ô:Ø)×0Ñ0°Õ6ð!/ñ -Ð;¨mÓ;Ð,Ü!& ~Ó!6‘Jä'¨¨jÓ9Ð 9øôò áð ús´ B*Â* B6Â5B6N)ryrzr{Ústrrîr÷rrrwrurêrêGs„ð + ó +ó :rwrêaŠ A type that can be used to indicate to type checkers that the corresponding value has a value literally equivalent to the provided parameter. For example: var: Literal[4] = 4 The type checker understands that 'var' is literally equal to the value 4 and no other value. Literal[...] cannot be subclassed. There is no runtime checking verifying that the parameter is actually a value instead of a type.)rër-cóÀ—t|d|«} |t|j|j|jj <tS#t $rYtSwxYw)a¬Decorator for overloaded functions/methods. In a stub file, place two or more stub definitions for the same function in a row, each decorated with @overload. For example: @overload def utf8(value: None) -> None: ... @overload def utf8(value: bytes) -> bytes: ... @overload def utf8(value: str) -> bytes: ... In a non-stub file (i.e. a regular .py file), do the same but follow it with an implementation. The implementation should *not* be decorated with @overload. For example: @overload def utf8(value: None) -> None: ... @overload def utf8(value: bytes) -> bytes: ... @overload def utf8(value: str) -> bytes: ... def utf8(value): # implementation goes here The overloads for a function can be retrieved at runtime using the get_overloads() function. Ú__func__)ÚgetattrÚ_overload_registryrzr{Ú__code__Úco_firstlinenorÏÚ_overload_dummy)ÚfuncrÐs rur9r9�sg€ô< �D˜* dÓ +ˆð ðô ˜qŸ|™|Ñ ,¨Q¯^©^Ñ <Ø— ‘ ×)Ñ)ñ ô Ðøôò à ÜÐð ús�7A Á AÁAcóÖ—t|d|«}|jtvrgSt|j}|j|vrgSt ||jj ««S)z6Return all defined overloads for *func* as a sequence.rú)rûrzrür{rñÚvalues)rrÐÚmod_dicts rur-r-©s`€ô �D˜* dÓ +ˆØ �<‰<Ô1Ñ 1؈IÜ% a§l¡lÑ3ˆØ �>‰> Ñ )؈IÜ�H˜QŸ^™^Ñ,×3Ñ3Ó5Ó6Ð6rwcó,—tj«y)z$Clear all overloads in the registry.N)rüÚclearrrrwrur)r)´s€ä× Ñ Õ"rw) rMrrXrYrrUrgrOrNrdrÚAbstractContextManagerÚAbstractAsyncContextManagerr)zcollections.abcÚ contextlibÚtyping_extensions>rÄrÀÚ__dict__rîÚ __slots__rzÚ __weakref__Ú _is_protocolÚ__match_args__Ú__orig_bases__Ú__orig_class__r}Ú__annotations__Ú__subclasshook__Ú__protocol_attrs__Ú__abstractmethods__Ú_is_runtime_protocolÚ_MutableMapping__markerÚ__non_callable_proto_members__Ú__class_getitem__©r”é Ú__type_params__cóþ—t«}|jddD]`}|jdvrŒt|di«}g|j¢|¢­D].}|j d«rŒ|t vsŒ|j|«Œ0Œb|S)Néÿÿÿÿ>rTr;rÚ_abc_)ràÚ__mro__ryrûr Ú startswithÚ_EXCLUDED_ATTRSÚadd)r�ÚattrsÚbaseÚ annotationsÚattrs ruÚ_get_protocol_attrsr'êsz€Ü ‹E€EØ— ‘ ˜C˜RÓ ˆØ �=‰=Ð3Ñ 3Ø Ü˜dÐ$5°rÓ:ˆ Ø2�d—m‘mÐ2 kÔ2ˆDØ—O‘O GÕ,°¼_Ò1LØ— ‘ ˜$•ñ3ð !ð €LrwécóŒ— tj|«jjdd«S#tt f$rYywxYw)NryÚ__main__)ÚsysÚ _getframeÚ f_globalsÚgetrÏÚ ValueError©Údepths ruÚ_callerr2ös@€ðÜ�}‰}˜UÓ#×-Ñ-×1Ñ1°*¸jÓIÐIøÜ œJÐ 'òÙðús‚.1±AÁA©r”é có—t|«dvS)zåAllow instance and class checks for special stdlib modules. The abc and functools modules indiscriminately call isinstance() and issubclass() on the whole MRO of a user class, which may contain protocols. >NÚabcÚ functools)r2r0s ruÚ_allow_reckless_class_checksr8s€ô �u‹~Ð!;Ð;Ð;rwcóD—t|«jr td«‚y)Nz Protocols cannot be instantiated)rÛr r‡©rtrÂrÃs ruÚ_no_initr; s €Ü �‹:× "Ò "ÜÐ>Ó?Ð ?ð #rwcó:—t|t«s td«‚y)aûRaise TypeError if `arg` is not an instance of `type` in `issubclass(arg, )`. In most cases, this is verified by type.__subclasscheck__. Checking it again unnecessarily would slow down issubclass() checks, so, we don't perform this check unless we absolutely have to. For various error paths, however, we want to ensure that *this* error message is shown to the user where relevant, rather than a typing.py-specific error message. z"issubclass() arg 1 must be a classN)r€rÛr‡©Úargs ruÚ_type_check_issubclass_arg_1r? s€ô˜#œtÔ$äÐ@ÓAÐ Að%rwcó6—eZdZd„Zd„Zd„Zd„Zd„Zdefd„Z y) Ú _ProtocolMetac ó¨—|dk(rt|«dkrnœttjht|«zrz|D]u}|ttj ttjhvrŒ0|j tj|jg«vrŒ]t|«rŒitd|›�«‚tjj||||fi|¤ŽS)Nr;r(z5Protocols can only inherit from other protocols, got )rŠr;r—ràÚobjectrTryÚ_PROTO_ALLOWLISTr.rzr5r‡r6ÚABCMetarÀ)ÚmclsrÓÚbasesÚ namespacerÃr$s rurÀz_ProtocolMeta.__new__'s´€Ø�zÒ!¤c¨%£j°1¢nØÜœFŸO™OÐ,¬s°5«zÒ9Û!�Dब¯©¼Ä6Ç?Á?Ð SÒSØŸ=™=Ô,<×,@Ñ,@ÀÇÁÐRTÓ,UÒUÜ& tÕ,ä'ð#Ø#' (ð,óðð "ô—;‘;×&Ñ& t¨T°5¸)ÑNÀvÑNÐ Nrwcó†—tjj|g|¢­i|¤Žt|dd«rt |«|_yy)Nr F)r6rErîrûr'r©r�rÂrÃs rurîz_ProtocolMeta.__init__7s<€Ü �K‰K× Ñ  Ð 6 tÒ 6¨vÒ 6Ü�s˜N¨EÔ2Ü)<¸SÓ)A�Õ&ð3rwcó—|turtj||«St|dd«r•t «s‹t|dd«st |«t d«‚|jr\|jjd«tur;t |«t|j«}t dt|«dd›d �«‚tjj||«S) Nr FrúLInstance and class checks can only be used with @runtime_checkable protocolsrzRProtocols with non-method members don't support issubclass(). Non-method members: rÔrÚ.)r;rÛÚ__subclasscheck__rûr8r?r‡rr r.Ú _proto_hookÚsortedrør6rE)r�ráÚnon_method_attrss rurNz_ProtocolMeta.__subclasscheck__<s׀ؔh‰Ü×-Ñ-¨c°5Ó9Ð9䘘^¨UÔ3Ü4Ô6ä˜sÐ$:¸EÔBÜ0°Ô7Ü#ð7óðð ×6Ò6ØŸ ™ ×(Ñ(Ð);Ó<Ä ÑKä0°Ô7Ü'-¨c×.PÑ.PÓ'QÐ$Ü#ð0Ü03Ð4DÓ0EÀaÈÐ0KÐ/LÈAðOóðô—;‘;×0Ñ0°°eÓ<Ð .¨sèø€Ð&L¹m¸ q¬H¤}¹mùs‚r) r·Ú__init_subclass__r r.ÚanyÚ __bases__r rOrrîr;r;rÁs €rurdzProtocol.__init_subclass__£s„ø€Ü ‰GÑ % tÐ 6¨vÒ 6ð—<‘<×#Ñ# N°EÔ:Ü#&Ñ&L¸c¿mºmÓ&LÓ#L�Ô ð"¨¯©Ñ5Ü'2�Ô$ð×Ò C§L¡L´H×4EÑ4EÑ$EÜ'�• ð%FÐrw) ryrzr{r—r;rÄr r rrdr¼r½s@rur;r;�s,ø„Ø—/‘/×)Ñ)ˆØˆ ؈ Ø$Ð÷ (ð (rwr;cóŠ—t|tj«r t|dd«st d|z«‚d|_t |t«rUt«|_ |jD]7} tt||d««}|rŒ|jj|«Œ9|S#t$r}t d|›d�«|‚d}~wwxYw)ajMark a protocol class as a runtime protocol. Such protocol can be used with isinstance() and issubclass(). Raise TypeError if applied to a non-protocol class. This allows a simple-minded structural check very similar to one trick ponies in collections.abc such as Iterable. For example:: @runtime_checkable class Closable(Protocol): def close(self): ... assert isinstance(open('/some/file'), Closable) Warning: this will check only the presence of the required methods, not their type signatures! r FzB@runtime_checkable can be only applied to protocol classes, got %rTNz,Failed to determine whether protocol member z is a method member)Ú issubclassr—rTrûr‡rr€rAràrrÚcallabler"Ú Exception)r�r&Ú is_callableÚes rur>r>¶s×€ô&˜#œvŸ~™~Ô.´g¸cÀ>ÐSXÔ6YÜð&Ø(+ñ,ó-ð -à#'ˆÔ ô �cœ=Ô )ô 25³ˆCÔ .Ø×.Ô.�ð EÜ"*¬7°3¸¸dÓ+CÓ"D�Kò'Ø×:Ñ:×>Ñ>¸tÕDð/ðˆ øô!òÜ#ØFÀtÀhðO-ð-óððûðúsÁ,B$Â$ CÂ-B=Â=Ccó>—eZdZdZdZej defd„«Zy)r$z(An ABC with one abstract method __int__.rrrYcó—yrrrrss ruÚ__int__zSupportsInt.__int__øó€à rwN) ryrzr{rÄr r6Úabstractmethodr\rorrrwrur$r$ós)„á6؈ à × Ñ ð ˜Sò ó ñ rwr$có>—eZdZdZdZej defd„«Zy)r"z*An ABC with one abstract method __float__.rrrYcó—yrrrrss ruÚ __float__zSupportsFloat.__float__rprwN) ryrzr{rÄr r6rqÚfloatrtrrrwrur"r"üó)„á8؈ à × Ñ ð ˜uò ó ñ rwr"có>—eZdZdZdZej defd„«Zy)r!z,An ABC with one abstract method __complex__.rrrYcó—yrrrrss ruÚ __complex__zSupportsComplex.__complex__ rprwN) ryrzr{rÄr r6rqÚcomplexryrrrwrur!r!s)„á:؈ à × Ñ ð  ò ó ñ rwr!có>—eZdZdZdZej defd„«Zy)r z*An ABC with one abstract method __bytes__.rrrYcó—yrrrrss ruÚ __bytes__zSupportsBytes.__bytes__rprwN) ryrzr{rÄr r6rqÚbytesr}rrrwrur r rvrwr có:—eZdZdZej defd„«Zy)r#rrrYcó—yrrrrss ruÚ __index__zSupportsIndex.__index__rprwN)ryrzr{r r6rqr\r�rrrwrur#r#s&„àˆ à × Ñ ð ˜sò ó ñ rwr#có>—eZdZdZdZej defd„«Zy)rz_ An ABC with one abstract method __abs__ that is covariant in its return type. rrrYcó—yrrrrss ruÚ__abs__zSupportsAbs.__abs__&rprwN) ryrzr{rÄr r6rqr¯r„rrrwrurrs-„ñ ðˆ à × Ñ ð ˜Tò ó ñ rwrcóD—eZdZdZdZej ddedefd„«Z y)r%za An ABC with one abstract method __round__ that is covariant in its return type. rrÚndigitsrYcó—yrrr)rtr†s ruÚ __round__zSupportsRound.__round__1rprwN)r) ryrzr{rÄr r6rqr\r¯rˆrrrwrur%r%*s4„ñ ðˆ à × Ñ ñ  Sð °ò ó ñ rwr%có‡—ˆfd„}|S)Ncó•—tjjdk(r\tjdkrIt |«t ‰«dœ}t |j d|«}tj|«|«S‰|_ |S)NÚpypyrŸ)Ú__call__Ú__mro_entries__rr) r+ÚimplementationrÓÚ version_infoÚ staticmethodrÛryr7Úupdate_wrapperr�)rÚcls_dictr�Ú mro_entriess €ruÚinnerz#_ensure_subclassable..inner7sqø€Ü × Ñ × "Ñ " fÒ ,´×1AÑ1AÀFÒ1Jä(¨Ó.Ü#/° Ó#<ñˆHô�T—]‘] B¨Ó1ˆAÜ×+Ñ+©A«C°Ó6Ð 6à#.ˆDÔ ØˆKrwrr)r“r”s` ruÚ_ensure_subclassabler•6sø€ô ð €LrwrGÚmodulec#óK— t|«}|turt|«}|r|d}n\y|turt–—t|«\}n=|turt–—t|«\}n|t urt –—t|«\}nyŒƒ­wrð)r0r&r/rHrIrG)Úannotation_typeÚannotation_originÚannotation_argss ruÚ_get_typeddict_qualifiersr›Xs�èø€ØÜ *¨?Ó ;Ð Ø ¤IÑ-Ü"*¨?Ó";�Ù"Ø&5°aÑ&8‘OàØ"¤hÑ.Ü’Ü#+¨OÓ#<Ñ ‘Ø"¤kÑ1Ü!Ò!Ü#+¨OÓ#<Ñ ‘Ø"¤hÑ.Ü’Ü#+¨OÓ#<Ñ ‘àð%ùs‚BBcó(—eZdZdddœd„ZeZd„ZeZy)Ú_TypedDictMetaTF©ÚtotalÚclosedc óð—|D]1}t|«tusŒ|tjusŒ(t d«‚t d„|D««rtjf}nd}tj tdg|¢t‘­|«}||_|jdk(r||_ t|d«s||_ i} |jdi«} d} trD| j«D� � cic](\} } | tj| | |j ¬«“Œ*} } } n7| j«D� � cic]\} } | tj| | «“Œ} } } t#«}t#«}t#«}t#«}d }|D]Ê}|j$}| j'|jdi««|j'|jd d««|j'|jd d««|j'|jd d««|j'|jd d««|jdd «}|€ŒÉ|}ŒÌ|r|€t(}|rQd| vrM| j+d«}t#t-|««}t.|vr t d«‚t0|vr t d«‚|}| j'| «| j«D]¿\}}t#t-|««}t.|vr|j3|«n?t0|vr|j3|«n%|r|j3|«n|j3|«t4|vr#|j7|«|j3|«Œž|j3|«|j7|«ŒÁ| |_t;|«|_t;|«|_t;|«|_ t;|«|_!t|d«s||_"||_#||_$|Scc} } wcc} } w)aICreate new typed dict class object. This method is called when TypedDict is subclassed, or when TypedDict is instantiated. This way TypedDict supports all three syntax forms described in its docstring. Subclasses and instances of TypedDict return actual dictionaries. zHcannot inherit from both a TypedDict type and a non-TypedDict base classc3óPK—|]}t|tj«–—Œ y­wr)rhr—rTrbs rurƒz)_TypedDictMeta.__new__..{sèø€Ð@¹%°Q”:˜a¤§¡×0¹%ùs‚$&rrr;rrz?TypedDict('Name', {f0: t0, f1: t1, ...}); each t must be a type©r–NÚ__required_keys__Ú__optional_keys__Ú__readonly_keys__Ú__mutable_keys__Ú__extra_items__z5Special key __extra_items__ does not support Requiredz8Special key __extra_items__ does not support NotRequiredÚ __total__)%rÛr�r—rTr‡rerÀÚdictryr{r‰rr.Ú _TAKES_MODULEÚitemsÚ _type_checkrzràr ÚupdaterEÚpopr›rHrIr"rGÚdiscardrrçr¤r¥r¦r§r©Ú __closed__r¨)r�rÓrGÚnsrŸr r$Ú generic_baseÚtp_dictr%Úown_annotationsÚmsgÚnÚtpÚ required_keysÚ optional_keysÚ readonly_keysÚ mutable_keysÚextra_items_typeÚ base_dictÚbase_extra_items_typer˜Ú qualifiersÚannotation_keys rurÀz_TypedDictMeta.__new__nsÚ€ó�ܘ“:¤^Ò3¸ÄFÇNÁNÒ8RÜ#ð%EóFðFðô Ñ@¹%Ó@Ô@Ü &§¡Ð0‘ à!� ô—l‘l¤>°:Ð?TÀÐ?TÌtÑ?TÐVXÓYˆGØ#ˆGÔ Ø×#Ñ# zÒ1Ø'+�Ô$ä˜7Ð$4Ô5Ø).�Ô&àˆKØ Ÿf™fÐ%6¸Ó;ˆOØSˆCÝð"1×!6Ñ!6Ô!8ô#á!8™˜˜2ð”v×)Ñ)¨"¨c¸'×:LÑ:LÔMÑMØ!8ð ò#ð"1×!6Ñ!6Ô!8ô#á!8™˜˜2ð”v×)Ñ)¨"¨cÓ2Ñ2Ø!8ð ñ#ô ›EˆMÜ›EˆMÜ›EˆMÜ›5ˆLØ#Ð ã�Ø ŸM™M� à×"Ñ" 9§=¡=Ð1BÀBÓ#GÔHØ×$Ñ$ Y§]¡]Ð3FÈÓ%KÔLØ×$Ñ$ Y§]¡]Ð3FÈÓ%KÔLØ×$Ñ$ Y§]¡]Ð3FÈÓ%KÔLØ×#Ñ# I§M¡MÐ2DÀbÓ$IÔJØ(1¯ © Ð6GÈÓ(NÐ%Ø(Ñ4Ø'<Ñ$ðñÐ*Ð2Ü#(Ð ÙÐ+¨Ñ>Ø"1×"5Ñ"5Ð6GÓ"H�Ü Ô!:¸?Ó!KÓL� ܘzÑ)Ü#ð#óðô *Ñ,Ü#ð&óðð$3Ð à × Ñ ˜Ô /Ø3B×3HÑ3HÖ3JÑ/� Ü Ô!:¸?Ó!KÓL� ä˜zÑ)Ø!×%Ñ% nÕ5Ü  JÑ.Ø!×%Ñ% nÕ5ÙØ!×%Ñ% nÕ5à!×%Ñ% nÔ5ܘzÑ)Ø ×(Ñ(¨Ô8Ø!×%Ñ% nÕ5à ×$Ñ$ ^Ô4Ø!×)Ñ)¨.Õ9ð!4Kð$'2ˆGÔ #Ü(1°-Ó(@ˆGÔ %Ü(1°-Ó(@ˆGÔ %Ü(1°-Ó(@ˆGÔ %Ü'0°Ó'>ˆGÔ $ܘ7 KÔ0Ø$)�Ô!Ø!'ˆGÔ Ø&6ˆGÔ #؈NùóQ#ùó #s Ã!-O,Ä%!O2có—td«‚)Nz4TypedDict does not support instance and class checks©r‡rXs rurNz _TypedDictMeta.__subclasscheck__Ús€äÐRÓSÐ SrwN)ryrzr{rÀrªrŒrNr¸rrrwrur�r�ms#„Ø37Àôh ðTˆò Tð.Ñrwr�rrrcó—tfSr)Ú _TypedDict©rGs ruÚrÇâs€¬© rwFržc ó¾—|tus|€O|turd}nd}d|›d|›d�}|›d�|zdz}tj|td¬ «|d ur |d ur||d <d }|}n |r t d «‚|r:t j dk\r t d«‚tjdtd¬ «dt|«i}t«} | �| |d<t|d|||¬«} tf| _ | S)aqA simple typed namespace. At runtime it is equivalent to a plain dict. TypedDict creates a dictionary type such that a type checker will expect all instances to have a certain set of keys, where each key is associated with a value of a consistent type. This expectation is not checked at runtime. Usage:: class Point2D(TypedDict): x: int y: int label: str a: Point2D = {'x': 1, 'y': 2, 'label': 'good'} # OK b: Point2D = {'z': 3, 'label': 'bad'} # Fails type check assert Point2D(x=1, y=2, label='first') == dict(x=1, y=2, label='first') The type info can be accessed via the Point2D.__annotations__ dict, and the Point2D.__required_keys__ and Point2D.__optional_keys__ frozensets. TypedDict supports an additional equivalent form:: Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'label': str}) By default, all keys must be present in a TypedDict. It is possible to override this by specifying totality:: class Point2D(TypedDict, total=False): x: int y: int This means that a Point2D TypedDict can have any of the keys omitted. A type checker is only expected to support a literal False or True as the value of the total argument. True is the default, and makes all items defined in the class body be required. The Required and NotRequired special forms can also be used to mark individual keys as being required or not required:: class Point2D(TypedDict): x: int # the "x" key must always be present (Required is the default) y: NotRequired[int] # the "y" key can be omitted See PEP 655 for more details on Required and NotRequired. ú2Failing to pass a value for the 'fields' parameterú(Passing `None` as the 'fields' parameterÚ`z = TypedDict(z, {})`zœ is deprecated and will be disallowed in Python 3.15. To create a TypedDict class with 0 fields using the functional syntax, pass an empty dictionary, e.g. rMr(©Ú stacklevelFTr z@TypedDict takes either a dict or keyword arguments, but not bothr3z$TypedDict takes no keyword argumentsz§The kwargs-based syntax for TypedDict definitions is deprecated in Python 3.11, will be removed in Python 3.13, and may not be understood by third-party type checkers.rrzrrrž) rˆÚwarningsÚwarnÚDeprecationWarningr‡r+r�rªr2r�rr) ÚtypenameÚfieldsrŸr rÃÚdeprecated_thingÚexampleÚdeprecation_msgr²r–Útds rurrâs*€ð` ”WÑ   ØœÑ Ø#WÑ à#MÐ à˜(˜ =°° ¸HÐEˆGà#Ð$ð%OðOðñ ðñ ˆOô �M‰M˜/Ô+=È!Õ LؘUÑ" v°TÑ'9Ø#)��xÑ Ø�؉FÙ Üð,ó-ð -á Ü×Ñ 7Ò*ÜÐ FÓGÐGÜ �M‰Mð;ô#Øõ  ð ¤ f£Ð .ˆÜ“ˆØ Ð à%ˆBˆ|Ñ ä ˜H b¨"°EÀ&Ô IˆÜ&˜LˆÔ؈ rwcóh—ttd«r|tjuryt|t«S)aCheck if an annotation is a TypedDict class For example:: class Film(TypedDict): title: str year: int is_typeddict(Film) # => True is_typeddict(Union[list, str]) # => False rF)r‰r—rr€Ú_TYPEDDICT_TYPES©r¸s rur6r6@s,€ô ”6˜;Ô '¨B´&×2BÑ2BÑ,BØÜ˜"Ô.Ó/Ð/rwr(có—|S)aÊAssert (to the type checker) that the value is of the given type. When the type checker encounters a call to assert_type(), it emits an error if the value is not of the specified type:: def greet(name: str) -> None: assert_type(name, str) # ok assert_type(name, int) # type checker error At runtime this returns the first argument unchanged and otherwise does nothing. rr)rVÚtyps rur(r(Us €ðˆ rwrHcó\—t|t«rt|j«St |d«r0|jt t fvrt|jd«St|tj«r>td„|jD««}||jk(r|S|j|«St td«rgt|tj«rMtd„|jD««}||jk(r|Stj|j|«St td«rkt|tj«rQtd„|jD««}||jk(r|Stj t"j$|«S|S)z=Strips Annotated, Required and NotRequired from a given type.Ú __origin__rc3ó2K—|]}t|«–—Œy­wr©Ú _strip_extras©r�Úas rurƒz _strip_extras..póèø€Ð!G¹J°q¤-°×"2¹Jùó‚ršc3ó2K—|]}t|«–—Œy­wrrßrás rurƒz _strip_extras..urãrär›c3ó2K—|]}t|«–—Œy­wrrßrás rurƒz _strip_extras..zrãrä)r€Ú_AnnotatedAliasràrÝr‰rHrIr×r—r˜r§Ú copy_withr™ršr›r7ÚreduceÚoperatorÚor_)r�Ú stripped_argss ruràràis;€ä �aœÔ )Ü  §¡Ó.Ð .Ü �1�lÔ #¨¯ © ¼Ä;Ð8OÑ(OÜ  §¡¨A¡Ó/Ð /Ü �aœ×-Ñ-Ô .Ü!Ñ!G¸A¿JºJÓ!GÓGˆMØ § ¡ Ò*Ø�Ø—;‘;˜}Ó-Ð -Ü ”6˜>Ô *¬z¸!¼V×=PÑ=PÔ/QÜ!Ñ!G¸A¿JºJÓ!GÓGˆMØ § ¡ Ò*Ø�Ü×&Ñ& q§|¡|°]ÓCÐ CÜ ”6˜;Ô '¬J°q¼&×:JÑ:JÔ,KÜ!Ñ!G¸A¿JºJÓ!GÓGˆMØ § ¡ Ò*Ø�Ü×#Ñ#¤H§L¡L°-Ó@Ð @àˆrwcóô—ttd«rtj|||d¬«}ntj|||¬«}|r|S|j«D��cic]\}}|t |«“Œc}}Scc}}w)aˆReturn type hints for an object. This is often the same as obj.__annotations__, but it handles forward references encoded as string literals, adds Optional[t] if a default value equal to None is set and recursively replaces all 'Annotated[T, ...]', 'Required[T]' or 'NotRequired[T]' with 'T' (unless 'include_extras=True'). The argument may be a module, class, method, or function. The annotations are returned as a dictionary. For classes, annotations include also inherited members. TypeError is raised if the argument is not of a type that can contain annotations, and an empty dictionary is returned if no annotations are present. BEWARE -- the behavior of globalns and localns is counterintuitive (unless you are familiar with how eval() and exec() work). The search order is locals first, then globals. - If no dict arguments are passed, an attempt is made to use the globals from obj (or the respective module's globals for classes), and these are also used as the locals. If the object does not appear to have globals, an empty dictionary is used. - If one dict argument is passed, it is used for both globals and locals. - If two dict arguments are passed, they specify globals and locals, respectively. r&T)ÚglobalnsÚlocalnsÚinclude_extras)rîrï)r‰r—r3r¬rà)r¹rîrïrðÚhintÚkr�s rur3r3�sr€ô@ ”6˜;Ô 'Ü×(Ñ(ؘh°Èô‰Dô×(Ñ(¨°xÈÔQˆD٠؈KØ04· ± ´ Ô=± ©¨¨1�”= Ó#Ñ#° Ò=Ð=ùÓ=sÁA4r&có@‡—eZdZdZˆfd„Zd„Zd„Zd„Zd„Zd„Z ˆxZ S)rçaKRuntime representation of an annotated type. At its core 'Annotated[t, dec1, dec2, ...]' is an alias for the type 't' with extra annotations. The alias behaves like a normal typing alias, instantiating is the same as instantiating the underlying type, binding it to types is also the same. cóŠ•—t|t«r|j|z}|j}t‰|�||«||_yr)r€rçÚ __metadata__rÝr·rî)rtÚoriginÚmetadatarºs €rurîz_AnnotatedAlias.__init__¼s?ø€Ü˜&¤/Ô2Ø!×.Ñ.°Ñ9�Ø×*Ñ*�Ü ‰GÑ ˜V VÔ ,Ø (ˆDÕ rwcóX—t|«dk(sJ‚|d}t||j«S)NrÔr)rŠrçrõ)rtrØÚnew_types rurèz_AnnotatedAlias.copy_withÃs0€Ü�v“; !Ò#Ð #Ð#ؘa‘yˆHÜ" 8¨T×->Ñ->Ó?Ð ?rwcóŽ—dtj|j«›ddjd„|jD««›d�S)Nztyping_extensions.Annotated[ú, c3ó2K—|]}t|«–—Œy­wr)Úreprrás rurƒz+_AnnotatedAlias.__repr__..Êsèø€Ð DÑ2C¨Q¤ a§Ñ2CùräÚ])r—Ú _type_reprrÝÚjoinrõrss rurvz_AnnotatedAlias.__repr__ÈsE€Ø2´6×3DÑ3DÀTÇ_Á_Ó3UÐ2VÐVXØ—y‘yÑ D°$×2CÒ2CÓ DÓDÐEÀQðHð Irwcób—tjt|jf|jzffSr)rêÚgetitemr&rÝrõrss ruÚ __reduce__z_AnnotatedAlias.__reduce__Ìs1€Ü×#Ñ#ܘDŸO™OÐ-°×0AÑ0AÑAð&ðð rwcó”—t|t«stS|j|jk7ry|j|jk(S)NF)r€rçrßrÝrõ©rtrás ruräz_AnnotatedAlias.__eq__Ñs>€Ü˜e¤_Ô5Ü%Ð%Ø�‰ %×"2Ñ"2Ò2ØØ×$Ñ$¨×(:Ñ(:Ñ:Ð :rwcóD—t|j|jf«Sr)rærÝrõrss rurèz_AnnotatedAlias.__hash__Øs€Ü˜Ÿ™¨$×*;Ñ*;Ð<Ó=Ð =rw) ryrzr{rÄrîrèrvrrärèr¼r½s@rurçrç´s(ø„ñ ô )ò @ò  Iò ò  ;ö >rwrçcóD—eZdZdZdZd„Zejd„«Zd„Z y)r&a¡Add context specific metadata to a type. Example: Annotated[int, runtime_check.Unsigned] indicates to the hypothetical runtime_check module that this type is an unsigned int. Every other consumer of this type can ignore this metadata and treat this type as int. The first argument to Annotated must be a valid type (and will be in the __origin__ field), the remaining arguments are kept as a tuple in the __extra__ field. Details: - It's an error to call `Annotated` with less than two arguments. - Nested Annotated are flattened:: Annotated[Annotated[T, Ann1, Ann2], Ann3] == Annotated[T, Ann1, Ann2, Ann3] - Instantiating an annotated type is equivalent to instantiating the underlying type:: Annotated[C, Ann1](5) == C(5) - Annotated can be used as a generic type alias:: Optimized = Annotated[T, runtime.Optimize()] Optimized[int] == Annotated[int, runtime.Optimize()] OptimizedList = Annotated[List[T], runtime.Optimize()] OptimizedList[int] == Annotated[List[int], runtime.Optimize()] rrcó—td«‚)Nz&Type Annotated cannot be instantiated.rÃrJs rurÀzAnnotated.__new__þó€ÜÐDÓEÐ Erwcó—t|t«rt|«dkr td«‚tt f}t |d«|vr|d}nd}tj|d|«}t|dd«}t||«S)Nr(zUAnnotated[...] should be used with at least two arguments (a type and an annotation).rz$Annotated[t, ...]: t must be a type.rÔ) r€r§rŠr‡rrr0r—r­rç)r�rØÚallowed_special_formsrör¶r÷s rurzAnnotated.__class_getitem__sˆ€ä˜f¤eÔ,´°F³ ¸a²Üð!/ó0ð0ô&.¬uÐ$5Ð !ܘ& ™)Ó$Ð(=Ñ=Ø ™‘à<�Ü×+Ñ+¨F°1©I°sÓ;�ܘV A B˜ZÓ(ˆHÜ" 6¨8Ó4Ð 4rwcó4—td|j›d�«‚)NúCannot subclass z .Annotated)r‡rzrJs rurdzAnnotated.__init_subclass__s €ÜØ" 3§>¡>Ð"2°*Ð=óð rwN) ryrzr{rÄr rÀr—Ú _tp_cacherrdrrrwrur&r&Ûs4„ñ ð@ˆ ò Fð × Ñ ñ 5ó ð 5ó rw)Ú_BaseGenericAlias)ršcóê—t|t«rtSt|tjt t ttf«r |jS|tjurtjSy)a6Get the unsubscripted version of a type. This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar and Annotated. Return None for unsupported types. Examples:: get_origin(Literal[42]) is Literal get_origin(int) is None get_origin(ClassVar[int]) is ClassVar get_origin(Generic) is Generic get_origin(Generic[T]) is Generic get_origin(Union[T, int]) is Union get_origin(List[Tuple[T, T]][int]) == list get_origin(P.args) is P N) r€rçr&r—r˜Ú_typing_GenericAliasrr r rÝrTrÙs rur0r0(sY€ô �bœ/Ô *ÜÐ Ü �bœ6×/Ñ/Ô1EÔGXÜ(¬/ð;ô <à—=‘=Ð Ø ”—‘Ñ Ü—>‘>Ð !ØrwcóV—t|t«r|jf|jzSt|tj t f«r_t|dd«ry|j}t|«tjjur|dturt|dd«|df}|Sy)aÆGet type arguments with all substitutions performed. For unions, basic simplifications used by Union constructor are performed. Examples:: get_args(Dict[str, int]) == (str, int) get_args(int) == () get_args(Union[int, Union[T, int], str][int]) == (int, str) get_args(Union[int, Tuple[T, int]][str]) == (int, Tuple[str, int]) get_args(Callable[[], T][int]) == ([], int) r£FrrrNr)r€rçrÝrõr—r˜rrûr×r0r^r6rMÚEllipsisrñ)r¸Úress rur/r/@s“€ô �bœ/Ô *Ø—M‘MÐ# b§o¡oÑ5Ð 5Ü �bœ6×/Ñ/Ô1EÐFÔ GÜ�r˜: uÔ-ØØ—+‘+ˆCܘ"‹~¤§¡×!9Ñ!9Ñ9¸cÀ!¹fÌHÑ>TܘC  ˜H“~ s¨2¡wÐ/�؈JØrwr@có—t|›d�«‚)a&Special marker indicating that an assignment should be recognized as a proper type alias definition by type checkers. For example:: Predicate: TypeAlias = Callable[..., bool] It's invalid when used anywhere except as in the example above. ú is not subscriptablerértrŽs rur@r@\s€ô˜4˜&Ð 5Ð6Ó7Ð7rwa%Special marker indicating that an assignment should be recognized as a proper type alias definition by type checkers. For example:: Predicate: TypeAlias = Callable[..., bool] It's invalid when used anywhere except as in the example above.cóð—t|ttf«rtd„|D««|_y|tk7r8t|t «r |dur||_yt j|d«|_yd|_y)Nc3óHK—|]}tj|d«–—Œy­w)úDefault must be a typeN©r—r­)r�Úds rurƒz_set_default..|s&èø€ð(:Ù18¨Aô)/×(:Ñ(:¸1Ð>V×(WÙ18ùs‚ ".r)r€r§rñÚ __default__rˆrr—r­)Ú type_paramÚdefaults ruÚ _set_defaultr zsh€Ü�'œE¤4˜=Ô)Ü!&ñ(:Ù18ó(:ó";ˆ Õà ”GÒ Ü �j¤)Ô ,°¸C±Ø%,ˆJÕ "ä%+×%7Ñ%7¸ÐAYÓ%ZˆJÕ "à!%ˆ Õrwcó6—td¬«}|dk7r||_yy)Nr”r0r )r2rz)Ú typevarlikeÚdef_mods ruÚ _set_moduler$‡s"€ä˜AÔ€GØÐ%Ò%Ø!(ˆ Õð&rwcó—eZdZdZdZeZy)Ú _DefaultMixinzMixin for TypeVarLike defaults.rrN)ryrzr{rÄr r rîrrrwrur&r&Žs„Ù)à€IØ�Hrwr&có—eZdZdedefd„Zy)Ú_TypeVarLikeMetaÚ_TypeVarLikeMeta__instancerYcó.—t||j«Sr)r€Ú_backported_typevarlike)r�r)s rur¸z"_TypeVarLikeMeta.__instancecheck__—s€Ü˜* c×&AÑ&AÓBÐBrwN)ryrzr{rÚboolr¸rrrwrur(r(–s„ðC¨3ðC°4ôCrwr(cóD—eZdZdZej Zdddeddœd„Zdd„Z y)r zType variable.NF)Úboundr°r²rÚinfer_variancecóô—ttd«rtj|g|¢­||||dœŽ}n3tj|g|¢­|||dœŽ}|r|s|r td«‚||_t ||«t |«|S)NrA©r.r°r²r/©r.r°r²z1Variance cannot be specified with infer_variance.)r‰r—r r/Ú__infer_variance__r r$) r�rÓr.r°r²rr/Ú constraintsÚtypevars rurÀzTypeVar.__new__¡s‘€ô ”6˜?Ô +ä—n‘n TðD¨KñD¸uØ/8È Ø4BòD‰Gô—n‘n TðW¨KñW¸uØ/8È òWˆGá¡9± Ü Ð!TÓUÐUØ)7ˆGÔ &Ü�W˜gÔ&Ü�GÔØˆrwcó(—tdt›d�«‚)Nútype 'z(.TypeVar' is not an acceptable base type©r‡ryr[s rurdzTypeVar.__init_subclass__³s€Ü˜&¤  Ð*RÐSÓTÐTrw©rYN) ryrzr{rÄr—r r+rˆrÀrdrrrwrur r œs'„Ùà$Ÿn™nÐà/3بuذôô$Urwr r có —eZdZdZdZd„Zd„Zy)Ú _Immutablez3Mixin to indicate that object should not be copied.rrcó—|Srrrrss ruÚ__copy__z_Immutable.__copy__Áó€ØˆKrwcó—|Srrr)rtÚmemos ruÚ __deepcopy__z_Immutable.__deepcopy__Är>rwN)ryrzr{rÄr r=rArrrwrur;r;½s„ÙA؈ ò ó rwr;có"—eZdZdZd„Zd„Zd„Zy)r aQThe args for a ParamSpec object. Given a ParamSpec object P, P.args is an instance of ParamSpecArgs. ParamSpecArgs objects have a reference back to their ParamSpec: P.args.__origin__ is P This type is meant for runtime introspection and has no special meaning to static type checkers. có—||_yr©rÝ©rtrös rurîzParamSpecArgs.__init__Óó €Ø$ˆD�Orwcó4—|jj›d�S)Nz.args©rÝryrss rurvzParamSpecArgs.__repr__Ös€Ø—o‘o×.Ñ.Ð/¨uÐ5Ð 5rwcó`—t|t«stS|j|jk(Sr)r€r rßrÝrs ruräzParamSpecArgs.__eq__Ùs'€Ü˜e¤]Ô3Ü%Ð%Ø—?‘? e×&6Ñ&6Ñ6Ð 6rwN©ryrzr{rÄrîrvrärrrwrur r Çs„ñ ò %ò 6ó 7rwcó"—eZdZdZd„Zd„Zd„Zy)r a[The kwargs for a ParamSpec object. Given a ParamSpec object P, P.kwargs is an instance of ParamSpecKwargs. ParamSpecKwargs objects have a reference back to their ParamSpec: P.kwargs.__origin__ is P This type is meant for runtime introspection and has no special meaning to static type checkers. có—||_yrrDrEs rurîzParamSpecKwargs.__init__êrFrwcó4—|jj›d�S)Nz.kwargsrHrss rurvzParamSpecKwargs.__repr__ís€Ø—o‘o×.Ñ.Ð/¨wÐ7Ð 7rwcó`—t|t«stS|j|jk(Sr)r€r rßrÝrs ruräzParamSpecKwargs.__eq__ðs'€Ü˜e¤_Ô5Ü%Ð%Ø—?‘? e×&6Ñ&6Ñ6Ð 6rwNrJrrrwrur r Þs„ñ ò %ò 8ó 7rwr rcóD—eZdZdZej Zddddedœd„Zdd„Z y)rzParameter specification.NF©r.r°r²r/rcóÊ—ttd«rtj|||||¬«}n tj||||¬«}||_t ||«t |«|S)NrAr1r2)r‰r—rr3r r$)r�rÓr.r°r²r/rÚ paramspecs rurÀzParamSpec.__new__þsk€ô”v˜Ô/ä"×,Ñ,¨T¸Ø7@Ø;HØ� Ô,ä ˜ GÔ ,Ü ˜ Ô "ØÐ rwcó(—tdt›d�«‚)Nr7z*.ParamSpec' is not an acceptable base typer8r[s rurdzParamSpec.__init_subclass__s€Ü˜f¤X JÐ.XÐYÓZÐ Zrwr9) ryrzr{rÄr—rr+rˆrÀrdrrrwrurrùs)„Ù&à"(×"2Ñ"2Ðà(,Ø#°5Ø#(°'ô ô& [rwc󆇗eZdZdZej Zed„«Zed„«Z dddde dœˆfd„ Z d„Z d „Z d „Zd „Zd „ZˆxZS) ra'Parameter specification variable. Usage:: P = ParamSpec('P') Parameter specification variables exist primarily for the benefit of static type checkers. They are used to forward the parameter types of one callable to another callable, a pattern commonly found in higher order functions and decorators. They are only valid when used in ``Concatenate``, or s the first argument to ``Callable``. In Python 3.10 and higher, they are also supported in user-defined Generics at runtime. See class Generic for more information on generic types. An example for annotating a decorator:: T = TypeVar('T') P = ParamSpec('P') def add_logging(f: Callable[P, T]) -> Callable[P, T]: '''A type-safe decorator to add logging to a function.''' def inner(*args: P.args, **kwargs: P.kwargs) -> T: logging.info(f'{f.__name__} was called') return f(*args, **kwargs) return inner @add_logging def add_two(x: float, y: float) -> float: '''Add two numbers together.''' return x + y Parameter specification variables defined with covariant=True or contravariant=True can be used to declare covariant or contravariant generic types. These keyword arguments are valid, but their actual semantics are yet to be decided. See PEP 612 for details. Parameter specification variables can be introspected. e.g.: P.__name__ == 'T' P.__bound__ == None P.__covariant__ == False P.__contravariant__ == False Note that only parameter specification variables defined in global scope can be pickled. có—t|«Sr)r rss rurÂzParamSpec.argsJs €ä  Ó&Ð &rwcó—t|«Sr)r rss rurÃzParamSpec.kwargsNs €ä" 4Ó(Ð (rwNFrPcó8•—t‰|�|g«||_t|«|_t|«|_t|«|_|rtj|d«|_ nd|_ tj||«t«}|dk7r||_ yy)NzBound must be a type.r ) r·rîryr,Ú __covariant__Ú__contravariant__r3r—r­Ú __bound__r&r2rz) rtrÓr.r°r²r/rr#rºs €rurîzParamSpec.__init__RsŒø€ä ‰GÑ ˜d˜VÔ $Ø ˆDŒMÜ!% i£ˆDÔ Ü%)¨-Ó%8ˆDÔ "Ü&*¨>Ó&:ˆDÔ #ÙÜ!'×!3Ñ!3°EÐ;RÓ!S�•à!%�”Ü × "Ñ " 4¨Ô 1ô“iˆGØÐ-Ò-Ø")�•ð.rwcó~—|jrd}n |jrd}n|jrd}nd}||jzS)NÚÚ+Ú-Ú~)r3rXrYry)rtÚprefixs rurvzParamSpec.__repr__ds@€Ø×&Ò&Ø‘Ø×#Ò#Ø‘Ø×'Ò'Ø‘à�ؘDŸM™MÑ)Ð )rwcó,—tj|«Sr©rCrèrss rurèzParamSpec.__hash__oó€Ü—?‘? 4Ó(Ð (rwcó —||uSrrrrs ruräzParamSpec.__eq__ró €Ø˜5�=Ð rwcó—|jSr©ryrss rurzParamSpec.__reduce__uó €Ø—=‘=Ð rwcó—yrrrr:s rurŒzParamSpec.__call__yó€Ø rw)ryrzr{rÄr—r rºÚpropertyrÂrÃrˆrîrvrèrärrŒr¼r½s@rurrsfø„ñ, ð^—N‘Nˆ à ñ 'ó ð 'ð ñ )ó ð )ð+/¸%ÈuØ$)°7ö *ò$ *ò )ò !ò !ö rwrcó\‡—eZdZejZdZˆfd„Zd„Zd„Z d„Z e d„«Z ˆxZ S)Ú_ConcatenateGenericAliasFcó@•—t‰|�|«||_||_yr)r·rîrÝr×)rtrörÂrºs €rurîz!_ConcatenateGenericAlias.__init__ˆsø€Ü ‰GÑ ˜TÔ "Ø$ˆDŒOØ ˆD�Mrwc󘇗tjЉ|j«›ddjˆfd„|jD««›d�S)NÚ[rûc3ó.•K—|] }‰|«–—Œy­wrrr)r�r>rÿs €rurƒz4_ConcatenateGenericAlias.__repr__..�søèø€Ð!K¹]°c¡*¨S§/¹]ùsƒrþ)r—rÿrÝrr×)rtrÿs @rurvz!_ConcatenateGenericAlias.__repr__�sFø€Ü×*Ñ*ˆJÙ! $§/¡/Ó2Ð3ؘŸ ™ Ó!K¸T¿]º]Ó!KÓKÐLÈAðOð PrwcóD—t|j|jf«Sr)rærÝr×rss rurèz!_ConcatenateGenericAlias.__hash__’s€Ü˜Ÿ™¨$¯-©-Ð8Ó9Ð 9rwcó—yrrrr:s rurŒz!_ConcatenateGenericAlias.__call__–rjrwcó:—td„|jD««S)Nc3óbK—|]'}t|tjtf«sŒ$|–—Œ)y­wr)r€r—r r)r�r¸s rurƒz:_ConcatenateGenericAlias.__parameters__..›s&èø€ðÙ*�r¬j¸¼f¿n¹nÌiÐ=XÕ.Y”™]ùs‚%/¨/)r§r×rss rur}z'_ConcatenateGenericAlias.__parameters__™s €äñØ!Ÿ]š]óóð rw)ryrzr{r—r˜rºr£rîrvrèrŒrkr}r¼r½s@rurmrm€s@ø„ð×(Ñ(ˆ ðˆô !ò  Pò  :ò ð ñ ó ô rwrmcóʇ—|dk(r td«‚t|t«s|f}t|dt«s td«‚dŠtˆfd„|D««}t ||«S)Nrrz&Cannot take a Concatenate of no types.rzAThe last parameter to Concatenate should be a ParamSpec variable.z/Concatenate[arg, ...]: each arg must be a type.c3óJ•K—|]}tj|‰«–—Œy­wrr)r�r‚r¶s €rurƒz'_concatenate_getitem..«søèø€ÐF¹:°a”v×)Ñ)¨!¨S×1¹:ùsƒ #)r‡r€r§rrm)rtrŽr¶s @ruÚ_concatenate_getitemrx¡sjø€à�RÒÜÐ@ÓAÐAÜ �j¤%Ô (Ø �]ˆ Ü �j ‘n¤iÔ 0Üð.ó/ð /à ;€CÜÓF¹:ÓFÓF€JÜ # D¨*Ó 5Ð5rwcó—t||«S)á&Used in conjunction with ``ParamSpec`` and ``Callable`` to represent a higher order function which adds, removes or transforms parameters of a callable. For example:: Callable[Concatenate[int, P], int] See PEP 612 for detailed information. ©rxrs rurrµs€ô$ D¨*Ó5Ð5rwcó—eZdZd„Zy)Ú_ConcatenateFormcó—t||«Srr{rs rur÷z_ConcatenateForm.__getitem__Ås€Ü'¨¨jÓ9Ð 9rwN©ryrzr{r÷rrrwrur}r}Äs„ó :rwr}rzrBcób—tj||›d�«}tj||f«S)á Special typing form used to annotate the return type of a user-defined type guard function. ``TypeGuard`` only accepts a single type argument. At runtime, functions marked this way should return a boolean. ``TypeGuard`` aims to benefit *type narrowing* -- a technique used by static type checkers to determine a more precise type of an expression within a program's code flow. Usually type narrowing is done by analyzing conditional code flow and applying the narrowing to a block of code. The conditional expression here is sometimes referred to as a "type guard". Sometimes it would be convenient to use a user-defined boolean function as a type guard. Such a function should use ``TypeGuard[...]`` as its return type to alert static type checkers to this intention. Using ``-> TypeGuard`` tells the static type checker that for a given function: 1. The return value is a boolean. 2. If the return value is ``True``, the type of its argument is the type inside ``TypeGuard``. For example:: def is_str(val: Union[str, float]): # "isinstance" type guard if isinstance(val, str): # Type of ``val`` is narrowed to ``str`` ... else: # Else, type of ``val`` is narrowed to ``float``. ... Strict type narrowing is not enforced -- ``TypeB`` need not be a narrower form of ``TypeA`` (it can even be a wider form) and this may lead to type-unsafe results. The main reason is to allow for things like narrowing ``List[object]`` to ``List[str]`` even though the latter is not a subtype of the former, since ``List`` is invariant. The responsibility of writing type-safe type guards is left to the user. ``TypeGuard`` also works with type variables. For more information, see PEP 647 (User-Defined Type Guards). ú accepts only a single type.©r—r­r˜©rtrŽÚitems rurBrBÚs4€ôX×!Ñ! *°°Ð6RÐ.SÓTˆÜ×#Ñ# D¨4¨'Ó2Ð2rwcó—eZdZd„Zy)Ú_TypeGuardFormcóv—tj||j›d�«}tj||f«S©Nz accepts only a single type©r—r­rËr˜r„s rur÷z_TypeGuardForm.__getitem__ ó9€Ü×%Ñ% jØ)-¯©¨ Ð4OÐ&PóRˆDä×'Ñ'¨¨t¨gÓ6Ð 6rwNrrrrwrur‡r‡ ó„ó 7rwr‡r�rCcób—tj||›d�«}tj||f«S)ázSpecial typing form used to annotate the return type of a user-defined type narrower function. ``TypeIs`` only accepts a single type argument. At runtime, functions marked this way should return a boolean. ``TypeIs`` aims to benefit *type narrowing* -- a technique used by static type checkers to determine a more precise type of an expression within a program's code flow. Usually type narrowing is done by analyzing conditional code flow and applying the narrowing to a block of code. The conditional expression here is sometimes referred to as a "type guard". Sometimes it would be convenient to use a user-defined boolean function as a type guard. Such a function should use ``TypeIs[...]`` as its return type to alert static type checkers to this intention. Using ``-> TypeIs`` tells the static type checker that for a given function: 1. The return value is a boolean. 2. If the return value is ``True``, the type of its argument is the intersection of the type inside ``TypeGuard`` and the argument's previously known type. For example:: def is_awaitable(val: object) -> TypeIs[Awaitable[Any]]: return hasattr(val, '__await__') def f(val: Union[int, Awaitable[int]]) -> int: if is_awaitable(val): assert_type(val, Awaitable[int]) else: assert_type(val, int) ``TypeIs`` also works with type variables. For more information, see PEP 742 (Narrowing types with TypeIs). r‚rƒr„s rurCrCBs4€ôL×!Ñ! *°°Ð6RÐ.SÓTˆÜ×#Ñ# D¨4¨'Ó2Ð2rwcó—eZdZd„Zy)Ú _TypeIsFormcóv—tj||j›d�«}tj||f«Sr‰rŠr„s rur÷z_TypeIsForm.__getitem__mr‹rwNrrrrwrur�r�lrŒrwr�rŽcóp—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z ejd „«Zy )Ú _SpecialForm)rËrÄÚ_getitemcóV—||_|j|_|j|_yr)r”ryrËrÄ)rtrs rurîz_SpecialForm.__init__žs!€ØˆŒ Ø×%Ñ%ˆŒ Ø—‘ˆ� rwcó8—|dvr |jSt|«‚)N>ryr{)rËrÏ)rtr…s ruÚ __getattr__z_SpecialForm.__getattr__£s €Ø Ð/Ñ /Ø—:‘:Ð ä˜TÓ"Ð"rwcó—td|›�«‚)Nr rÃ)rtrGs rur�z_SpecialForm.__mro_entries__©s€ÜÐ*¨4¨(Ð3Ó4Ð4rwcó —d|j›�SrÉrÊrss rurvz_SpecialForm.__repr__¬s€Ø# D§J¡J <Ð0Ð0rwcó—|jSrrÊrss rurz_SpecialForm.__reduce__¯s €Ø�z‰zÐrwcó—td|›�«‚)NzCannot instantiate rértrÂÚkwdss rurŒz_SpecialForm.__call__²s€ÜÐ-¨d¨XÐ6Ó7Ð7rwcó,—tj||fSr©r—rjrs ruÚ__or__z_SpecialForm.__or__µs€Ü�|‰|˜D %˜KÑ(Ð(rwcó,—tj||fSrrŸrs ruÚ__ror__z_SpecialForm.__ror__¸s€Ü�|‰|˜E 4˜KÑ(Ð(rwcó—t|›d�«‚)Nz! cannot be used with isinstance()rértr¹s rur¸z_SpecialForm.__instancecheck__»ó€Ü˜4˜&Ð AÐBÓCÐCrwcó—t|›d�«‚)Nz! cannot be used with issubclass()rÃ)rtr�s rurNz_SpecialForm.__subclasscheck__¾r¥rwcó&—|j||«Sr)r”rs rur÷z_SpecialForm.__getitem__Ás€à�}‰}˜T :Ó.Ð.rwN)ryrzr{r rîr—r�rvrrŒr r¢r¸rNr—rr÷rrrwrur“r“›sU„Ø0€Iò'ò #ò 5ò1òò8ò)ò)òDòDð ×Ññ/óñ/rwr“rcó—t|›d�«‚)aDRepresents an arbitrary literal string. Example:: from typing_extensions import LiteralString def query(sql: LiteralString) -> ...: ... query("SELECT * FROM table") # ok query(f"SELECT * FROM {input()}") # not ok See PEP 675 for details. rrértrØs rurrÉs€ô"˜4˜&Ð 5Ð6Ó7Ð7rwr có—t|›d�«‚)zòUsed to spell the type of "self" in classes. Example:: from typing import Self class ReturnsSelf: def parse(self, data: bytes) -> Self: ... return self rrÃr©s rur r às€ô˜4˜&Ð 5Ð6Ó7Ð7rwrEcó—t|›d�«‚)a¬The bottom type, a type that has no members. This can be used to define a function that should never be called, or a function that never returns:: from typing_extensions import Never def never_call_me(arg: Never) -> None: pass def int_or_str(arg: int | str) -> None: never_call_me(arg) # type checker error match arg: case int(): print("It's an int") case str(): print("It's a str") case _: never_call_me(arg) # ok, arg is of type Never rrÃr©s rurErEõs€ô0˜4˜&Ð 5Ð6Ó7Ð7rwcóv—tj||j›d�«}tj||f«S)áêA special typing construct to mark a key of a total=False TypedDict as required. For example: class Movie(TypedDict, total=False): title: Required[str] year: int m = Movie( title='The Matrix', # typechecker error if key is omitted year=1999, ) There is no runtime checking that a required key is actually provided when instantiating a related TypedDict. r‚rŠr„s rurHrHs7€ô"×!Ñ! *°·±° Ð None: m["year"] = 1992 # allowed m["title"] = "The Matrix" # typechecker error There is no runtime checking for this property. r‚rŠr„s rurGrGds7€ô ×!Ñ! *°·±° Ð None: m["year"] = 1992 # allowed m["title"] = "The Matrix" # typechecker error There is no runtime checking for this propery. aÜType unpack operator. The type unpack operator takes the child types from some container type, such as `tuple[int, str]` or a `TypeVarTuple`, and 'pulls them out'. For example: # For some generic class `Foo`: Foo[Unpack[tuple[int, str]]] # Equivalent to Foo[int, str] Ts = TypeVarTuple('Ts') # Specifies that `Bar` is generic in an arbitrary number of types. # (Think of `Ts` as a tuple of an arbitrary number of individual # `TypeVar`s, which the `Unpack` is 'pulling out' directly into the # `Generic[]`.) class Bar(Generic[Unpack[Ts]]): ... Bar[int] # Valid Bar[int, str] # Also valid From Python 3.11, this can also be done using the `*` operator: Foo[*tuple[int, str]] class Bar(Generic[*Ts]): ... The operator can also be used along with a `TypedDict` to annotate `**kwargs` in a function signature. For instance: class Movie(TypedDict): name: str year: int # This function expects two keyword arguments - *name* of type `str` and # *year* of type `int`. def foo(**kwargs: Unpack[Movie]): ... Note that there is only some runtime checking of this operator. Not everything the runtime allows may be accepted by static type checkers. For more information, see PEP 646 and PEP 692. có$—t|«tuSr)r0r©r¹s rur‹r‹½s€Ü˜#‹¤&Ð(Ð(rwcó‡—eZdZˆfd„ZˆxZS)Ú_UnpackSpecialFormcó:•—t‰|�|«t|_yr)r·rîÚ _UNPACK_DOCrÄ)rtrrºs €rurîz_UnpackSpecialForm.__init__Âsø€Ü ‰GÑ ˜WÔ %Ü&ˆD�Lrw)ryrzr{rîr¼r½s@rur¼r¼Ás ø„÷ 'ð 'rwr¼có$—eZdZejZy©Ú _UnpackAliasN©ryrzr{r—r rºrrrwrurÁrÁÆó „Ø—N‘N‰ rwrÁcób—tj||j›d�«}t||f«Sr³©r—r­rËrÁr„s rurrÉs/€ä×!Ñ! *°·±° Ð Tuple[*Ts]: return self._shape shape = (Height(480), Width(640)) x: Array[Height, Width] = Array(shape) y = abs(x) # Inferred type is Array[Height, Width] z = x + x # ... is Array[Height, Width] x.get_shape() # ... is tuple[Height, Width] c#ó(K—|j–—y­wr)Ú __unpacked__rss ruÚ__iter__zTypeVarTuple.__iter__" sèø€Ø×#Ñ#Ó #ùs‚rÏcó†—||_tj||«t«}|dk7r||_t ||_y)Nr )ryr&rîr2rzrrÖ)rtrÓrr#s rurîzTypeVarTuple.__init__% s>€Ø ˆDŒMÜ × "Ñ " 4¨Ô 1ô“iˆGØÐ-Ò-Ø")�”ä & t¡ ˆDÕ rwcó—|jSrrgrss rurvzTypeVarTuple.__repr__0 rhrwcó,—tj|«Srrbrss rurèzTypeVarTuple.__hash__3 rcrwcó —||uSrrrrs ruräzTypeVarTuple.__eq__6 rerwcó—|jSrrgrss rurzTypeVarTuple.__reduce__9 rhrwcó"—d|vr td«‚y)NrÌrÓrÃrœs rurdzTypeVarTuple.__init_subclass__< s€Ø˜dÑ"ÜÐ HÓIÐIð#rwN)ryrzr{rÄr—r rºr×rˆrîrvrèrärrdrrrwrurrós<„ñ) ðX—N‘Nˆ ò $ð-4ô -ò !ò )ò !ò !ó Jrwr<r¹rYcóh—tdt|«j›�tj¬«|S)açReveal the inferred type of a variable. When a static type checker encounters a call to ``reveal_type()``, it will emit the inferred type of the argument:: x: int = 1 reveal_type(x) Running a static type checker (e.g., ``mypy``) on this example will produce output similar to 'Revealed type is "builtins.int"'. At runtime, the function prints the runtime type of the argument and returns it unchanged. zRuntime type is )Úfile)ÚprintrÛryr+Ústderrrºs rur<r<D s*€ô Ð ¤ c£×!3Ñ!3Ð 6Ð7¼c¿j¹jÕI؈ rwr'r>có—td«‚)a1Assert to the type checker that a line of code is unreachable. Example:: def int_or_str(arg: int | str) -> None: match arg: case int(): print("It's an int") case str(): print("It's a str") case _: assert_never(arg) If a type checker finds that a call to assert_never() is reachable, it will emit an error. At runtime, this throws an exception when called. zExpected code to be unreachable)ÚAssertionErrorr=s rur'r'[ s€ô(Ð>Ó?Ð?rw)Ú eq_defaultÚ order_defaultÚkw_only_defaultÚfrozen_defaultÚfield_specifiersrärårærçrè.rÃc ó&‡‡‡‡‡‡—ˆˆˆˆˆˆfd„}|S)a¥Decorator that marks a function, class, or metaclass as providing dataclass-like behavior. Example: from typing_extensions import dataclass_transform _T = TypeVar("_T") # Used on a decorator function @dataclass_transform() def create_model(cls: type[_T]) -> type[_T]: ... return cls @create_model class CustomerModel: id: int name: str # Used on a base class @dataclass_transform() class ModelBase: ... class CustomerModel(ModelBase): id: int name: str # Used on a metaclass @dataclass_transform() class ModelMeta(type): ... class ModelBase(metaclass=ModelMeta): ... class CustomerModel(ModelBase): id: int name: str Each of the ``CustomerModel`` classes defined in this example will now behave similarly to a dataclass created with the ``@dataclasses.dataclass`` decorator. For example, the type checker will synthesize an ``__init__`` method. The arguments to this decorator can be used to customize this behavior: - ``eq_default`` indicates whether the ``eq`` parameter is assumed to be True or False if it is omitted by the caller. - ``order_default`` indicates whether the ``order`` parameter is assumed to be True or False if it is omitted by the caller. - ``kw_only_default`` indicates whether the ``kw_only`` parameter is assumed to be True or False if it is omitted by the caller. - ``frozen_default`` indicates whether the ``frozen`` parameter is assumed to be True or False if it is omitted by the caller. - ``field_specifiers`` specifies a static list of supported classes or functions that describe fields, similar to ``dataclasses.field()``. At runtime, this decorator records its arguments in the ``__dataclass_transform__`` attribute on the decorated object. See PEP 681 for details. có$•—‰‰‰‰‰‰dœ|_|S)N)rärårærçrèrÃ)Ú__dataclass_transform__)Ú cls_or_fnrärèrçrærÃrås €€€€€€ruÚ decoratorz&dataclass_transform..decorator¿ s'ø€à(Ø!.Ø#2Ø"0Ø$4Ø ñ 1ˆIÔ -ðÐ rwrr)rärårærçrèrÃrís`````` rur*r*v sý€÷R ñ ðÐrwr:Ú_F)r.cóB— d|_|S#ttf$rY|SwxYw)aHIndicate that a method is intended to override a method in a base class. Usage: class Base: def method(self) -> None: pass class Child(Base): @override def method(self) -> None: super().method() When this decorator is applied to a method, the type checker will validate that it overrides a method with the same name on a base class. This helps prevent bugs that may occur when a base class is changed without an equivalent change to a child class. There is no runtime checking of these properties. The decorator sets the ``__override__`` attribute to ``True`` on the decorated object to allow runtime introspection. See PEP 698 for details. T)Ú __override__rÏr‡r=s rur:r:Ñ s6€ð4 Ø#ˆCÔ ð ˆ øô ¤ Ð*ò ð Øˆ ð  úrÑr+Ú_Tc ót—eZdZdZeddœdedejeje de ddfd „Z d e de fd „Z y) r+aIndicate that a class, function or overload is deprecated. When this decorator is applied to an object, the type checker will generate a diagnostic on usage of the deprecated object. Usage: @deprecated("Use B instead") class A: pass @deprecated("Use g instead") def f(): pass @overload @deprecated("int support is deprecated") def g(x: int) -> int: ... @overload def g(x: str) -> int: ... The warning specified by *category* will be emitted at runtime on use of deprecated objects. For functions, that happens on calls; for classes, on instantiation and on creation of subclasses. If the *category* is ``None``, no warning is emitted at runtime. The *stacklevel* determines where the warning is emitted. If it is ``1`` (the default), the warning is emitted at the direct caller of the deprecated object; if it is higher, it is emitted further up the stack. Static type checker behavior is not affected by the *category* and *stacklevel* arguments. The deprecation message passed to the decorator is saved in the ``__deprecated__`` attribute on the decorated object. If applied to an overload, the decorator must be after the ``@overload`` decorator for the attribute to exist on the overload as returned by ``get_overloads()``. See PEP 702 for details. rÔ©ÚcategoryrÍÚmessagerôrÍrYNcó�—t|t«s!tdt|«j›�«‚||_||_||_y)Nz2Expected an object of type str for 'message', not )r€rør‡rÛryrõrôrÍ)rtrõrôrÍs rurîzdeprecated.__init__$ sJ€ô˜g¤sÔ+ÜØHܘG“}×-Ñ-Ð0ð2óðð#ˆDŒLØ$ˆDŒMØ(ˆD�Orwr>c󇇇‡ ‡ ‡ —|jŠ|jŠ|jŠ ‰€ ‰‰_‰St ‰t «rÑddl}ddlm}‰jŠ |j‰ «ˆˆˆˆ ˆ fd„«}t|«‰_ ‰jŠ t ‰ |«r:‰ jŠ |j‰ «ˆˆˆ ˆ fd„«}t|«‰_ n$|j‰ «ˆˆˆ ˆ fd„«}|‰_ ‰x‰_|_‰|_‰St‰«r1ddl}|j‰«ˆˆˆˆ fd„«}‰x‰_|_|St!d‰›�«‚)Nr)Ú MethodTypecóþ•—|‰urtj‰‰‰dz¬«‰tjur ‰|g|¢­i|¤ŽS|jtjur|s|rt |j ›d�«‚‰|«S)NrÔróz() takes no arguments)rÎrÏrCrÀrîr‡ry)r�rÂrÃr>rôr¶Ú original_newrÍs €€€€€rurÀz$deprecated.__call__..__new__D svø€à˜c‘zÜ Ÿ ™  c°HÈÐVWÉÕXØ#¬6¯>©>Ñ9Ù+¨CÐA°$ÒA¸&ÑAÐAàŸ™¬¯©Ñ8¹dÁfÜ'¨3¯<©<¨.Ð8MÐ(NÓOÐOá+¨CÓ0Ð0rwcóJ•—tj‰‰‰dz¬«‰|i|¤ŽS©NrÔró©rÎrÏ©rÂrÃrôr¶Úoriginal_init_subclassrÍs €€€€rurdz.deprecated.__call__..__init_subclass__X ó(ø€ä Ÿ ™  c°HÈÐVWÉÕXÙ5°tÐF¸vÑFÐFrwcóJ•—tj‰‰‰dz¬«‰|i|¤ŽSrürýrþs €€€€rurdz.deprecated.__call__..__init_subclass__a rrwcóJ•—tj‰‰‰dz¬«‰|i|¤ŽSrürý)rÂrÃr>rôr¶rÍs €€€€ruÚwrapperz$deprecated.__call__..wrappern s(ø€ä—M‘M #°ÀZÐRSÁ^ÕTÙ Ð/¨Ñ/Ð/rwzY@deprecated decorator with non-None category must be applied to a class or callable, not )rõrôrÍÚ__deprecated__r€rÛr7r¨rørÀÚwrapsr�rdrúÚ classmethodrir‡) rtr>r7rørÀrdrrôr¶rÿrúrÍs ` @@@@@rurŒzdeprecated.__call__5 sqý€ð—,‘,ˆCØ—}‘}ˆHØŸ™ˆJØÐØ%(�Ô"Ø� ܘC¤Ô&Û Ý,à"Ÿ{™{� à �—‘ Ó.÷ 1ó/ð 1ô+¨7Ó3�” à),×)>Ñ)>Ð&ôÐ4°jÔAØ-C×-LÑ-LÐ*à$�Y—_‘_Ð%;Ó<öGó=ðGô-8Ð8IÓ,J�CÕ)ð%�Y—_‘_Ð%;Ó<öGó=ðGð->�CÔ)à>AÐA�Ô" WÔ%;Ø36Ð!Ô0Ø� ܘ#”Û à �—‘ Ó%ö0ó&ð0ð?BÐA�Ô" WÔ%;Ø�äð0Ø03¨wð8óðrw)ryrzr{rÄrÐrør—rbr ÚWarningr\rîrñrŒrrrwrur+r+ú sd„ñ( ð\?QØò  )àð )ð —o‘o f§k¡k°'Ñ&:Ñ;ð  )ð ð  )ðó )ð"D  ðD ¨"ôD rwc ó6—|D��cgc]\}}|‘Œ }}}|D��cic] \}}|tj|d|›d�«“Œ"}}}tj||||¬«}|x|_|j _t jdkr||_|Scc}}wcc}}w)Nzfield z annotation must be a type©Údefaultsr–rŸ) r—r­r^Ú namedtuplerrÀr+r�Ú _field_types) rÓr¨r–r r·r�rÒr%Únm_tpls ruÚ _make_nmtupler� s¯€Ù %Ô&¡™˜˜1’! ˆÑ&á#(ô*Ù#(™4˜1˜aðœ&×,Ñ,¨Q°&¸¸Ð;UÐ0VÓWÑWØ#(ð ñ*ä×'Ñ'¨¨fØ19À&ôJˆàBMÐMˆÔ §¡Ô!?ô × Ñ ˜fÒ $Ø"-ˆFÔ Øˆ ùó'ùó*s † Bš%B>ryrzrcó—eZdZd„Zy)Ú_NamedTupleMetac óÖ—t|vsJ‚|D](}|tusŒ |tjusŒtd«‚t d„|D««}|j di«}g}|D]M}||vr|j |«Œ|sŒtd|›dt|«dkDrdnd›d d j|«›�«‚t||j«|D�cgc]}||‘Œ c}|d ¬ «} || _ tj|vrcttd «rttj«| _n4tjjj } t| «| _|j«D]c\} } | t"vrt%d| z«‚| t&vsŒ%| | j(vrt+| | || « t-| «j.} | | | | «Œetj|vr| j=«| Scc}w#t0$rT}dt-| «j2›d| ›d|›�}t4j6dk\r|j9|«‚t;|«|‚d}~wwxYw#t$$rYŒúwxYw)Nz3can only inherit from a NamedTuple type and Genericc3ó<K—|]}|turtn|–—Œy­wr)Ú _NamedTupler§)r�r$s rurƒz*_NamedTupleMeta.__new__..§ sèø€ÐSÉUÀT 4¬;Ñ#6�%¸DÓ@ÉUùr„rzNon-default namedtuple field z cannot follow default fieldrÔÚsr\Ú rûrzr Ú_generic_class_getitemz&Cannot overwrite NamedTuple attribute zError calling __set_name__ on z instance z in r)rr—rTr‡r§r.r¥rŠrrr¬rfr‰rrrrúÚ_prohibited_namedtuple_fieldsrÏÚ_special_namedtuple_fieldsÚ_fieldsÚsetattrrÛÚ __set_name__Ú BaseExceptionryr+r�Úadd_noteÚ RuntimeErrorrd)r�rÑrGr²r$r¨Ú default_namesÚ field_namer·r Ú class_getitemÚkeyrVÚset_namerlr¶s rurÀz_NamedTupleMeta.__new__¡ sy€Ü %Ñ'Ð 'Ð'Û�Øœ{Ò*¨t¼6¿>¹>Ò/IÜ#ØMóOðOðôÑSÉUÓSÓSˆEØ—F‘FÐ,¨bÓ1ˆE؈MÛ#� Ø Ñ#Ø!×(Ñ(¨Õ4Ú"Ü#Ð&CÀJÀ<ðPBä.1°-Ó.@À1Ò.D¡sÈ"Ð&MÈQØ'+§y¡y°Ó'?Ð&@ð%BóCðCð $ô#ؘ%Ÿ+™+›-Ù)6Ó7© A˜"˜Q›%¨Ñ7ؘ,Ñ'ôˆFð %ˆFÔ Ü�~‰~ Ñ&Üœ6Ð#;Ô<Ü/:¼6×;XÑ;XÓ/Y�FÕ,ä$*§N¡N×$DÑ$D×$MÑ$M�MÜ/:¸=Ó/I�FÔ,àŸH™HžJ‘��SØÔ7Ñ7Ü(Ð)QÐTWÑ)WÓXÐXØÔ :Ò:Ø &§.¡.Ñ0Ü ¨¨R°©WÔ5ð?Ü#'¨£9×#9Ñ#9˜ð?Ù$ S¨&°#Õ6ð'ô:�~‰~ Ñ&Ø×(Ñ(Ô*؈MùòU8øô0 -ò?à"@ÄÀcÃ×ASÑASÐ@VðW,Ø,/¨7°$°x°lð!Dð ô #×/Ñ/°7Ò:Ø !§ ¡ ¨3¤Ø %ä&2°3Ó&7¸QÐ >ûð?ûô *òÙðús1à G7 Æ1IÇ G<Ç< IÈAIÉIÉ I(É'I(N)ryrzr{rÀrrrwrurr  s„ó= rwrrcó$—t|vsJ‚tfSr)rrrÆs ruÚ_namedtuple_mro_entriesr%â s€Ü˜UÑ"Ð"Ð"܈~Ðrwc ó~—|tur|rd}d}nDd}d|›d|›d�}d|zdz}n0|€!|r td «‚d }d|›d|›d�}d|zdz}n |r td «‚|tus|€=tjj d ¬ «t d¬«|j «}t||t«¬«}tf|_ |S)aoTyped version of namedtuple. Usage:: class Employee(NamedTuple): name: str id: int This is equivalent to:: Employee = collections.namedtuple('Employee', ['name', 'id']) The resulting class has an extra __annotations__ attribute, giving a dict that maps field names to types. (The field names are also in the _fields attribute, which is part of the namedtuple API.) An alternative equivalent functional syntax is also accepted:: Employee = NamedTuple('Employee', [('name', str), ('id', int)]) z3Creating NamedTuple classes using keyword argumentszq{name} is deprecated and will be disallowed in Python {remove}. Use the class-based or functional syntax instead.rÉrËz = NamedTuple(z, [])`z¡{name} is deprecated and will be disallowed in Python {remove}. To create a NamedTuple class with 0 fields using the functional syntax, pass an empty list, e.g. rMz\Cannot pass `None` as the 'fields' parameter and also specify fields using keyword argumentsrÊzIEither list of fields or keywords can be provided to NamedTuple, not bothz3.15)rÓròr(rÌr£) rˆr‡rÎrÏÚformatrÐr¬rr2rr)rÑrÒrÃrÓrÕrÔÚnts rurræ s%€ð* ”WÑ ÙØ#XÐ ðHñ ð $XРؘh˜Z ~°h°\ÀÐH�ð0ðñ #ð "ñ #"‘ð ˆ^ÙÜðFóðð $NРؘh˜Z ~°h°\ÀÐH�ð0ðñ #ð "ñ #"‘ñ ÜðGóHð Hà ”WÑ   Ü �M‰MØ×&Ñ&Ð,<ÀVÐ&ÓLÜ"Øõ ð —\‘\“^ˆFÜ ˜8 V´G³IÔ >ˆÜ'˜MˆÔ؈ rwcó—eZdZdZy)ra§Base class for classes that implement the buffer protocol. The buffer protocol allows Python objects to expose a low-level memory buffer interface. Before Python 3.12, it is not possible to implement the buffer protocol in pure Python code, or even to check whether a class implements the buffer protocol. In Python 3.12 and higher, the ``__buffer__`` method allows access to the buffer protocol from Python code, and the ``collections.abc.Buffer`` ABC allows checking whether a class implements the buffer protocol. To indicate support for the buffer protocol in earlier versions, inherit from this ABC, either in a stub file or at runtime, or use ABC registration. This ABC provides no methods, because there is no Python-accessible methods shared by pre-3.12 buffer classes. It is useful primarily for static checks. N)ryrzr{rÄrrrwrurr, s„ò rwr1có®— |jjd|j«S#t$r#t dt |«j ›�«d‚wxYw)aReturn the class's "original" bases prior to modification by `__mro_entries__`. Examples:: from typing import TypeVar, Generic from typing_extensions import NamedTuple, TypedDict T = TypeVar("T") class Foo(Generic[T]): ... class Bar(Foo[int], float): ... class Baz(list[str]): ... Eggs = NamedTuple("Eggs", [("a", int), ("b", str)]) Spam = TypedDict("Spam", {"a": int, "b": str}) assert get_original_bases(Bar) == (Foo[int], float) assert get_original_bases(Baz) == (list[str],) assert get_original_bases(Eggs) == (NamedTuple,) assert get_original_bases(Spam) == (TypedDict,) assert get_original_bases(int) == (object,) rz"Expected an instance of type, not N)r r.rfrÏr‡rÛryr[s rur1r1J sW€ð* Ø—<‘<×#Ñ#Ð$4°c·m±mÓDÐ DøÜò ÜØ4´T¸#³Y×5GÑ5GÐ4JÐKóàð ð ús ‚%(¨,AcóZ—eZdZdZd„Zd„Zd„Zd„Zd„Ze jdk\rd„Z d „Z y y ) r8aLNewType creates simple unique types with almost zero runtime overhead. NewType(name, tp) is considered a subtype of tp by static type checkers. At runtime, NewType(name, tp) returns a dummy callable that simply returns its argument. Usage:: UserId = NewType('UserId', int) def name_by_id(user_id: UserId) -> str: ... UserId('user') # Fails type check name_by_id(42) # Fails type check name_by_id(UserId(42)) # OK num = UserId(5) + 1 # type: int có—|Srrrr¤s rurŒzNewType.__call__z s€ØˆJrwcóŒ—||_d|vr|jd«d}||_||_t «}|dk7r||_yy)NrMrr )r{Ú rpartitionryÚ __supertype__r2rz)rtrÓr¸r#s rurîzNewType.__init__} sO€Ø $ˆDÔ Ø�d‰{Ø—‘ sÓ+¨BÑ/�Ø ˆDŒMØ!#ˆDÔ Ü“iˆGØÐ-Ò-Ø")�•ð.rwcó:‡—|jŠGˆfd„d«}|fS)Ncó•—eZdZˆfd„Zy)ú&NewType.__mro_entries__..Dummyc óF•—|j}td|›d|›d‰›d�«‚)NzGCannot subclass an instance of NewType. Perhaps you were looking for: `z = NewType(rûz)`)ryr‡)r�Ú subcls_nameÚ supercls_names €rurdz8NewType.__mro_entries__..Dummy.__init_subclass__� s8ø€Ø"%§,¡,�KÜ#ðà'˜=¨ °K°?À"À]ÀOÐSUðWóðrwN)ryrzr{rd)r5s€ruÚDummyr2Œ sø„õrwr6rg)rtrGr6r5s @rur�zNewType.__mro_entries__‡ s!ø€ð!ŸM™MˆM÷ ó ð�8ˆOrwcó8—|j›d|j›�S)NrM)rzr{rss rurvzNewType.__repr__— s€Ø—o‘oÐ& a¨×(9Ñ(9Ð':Ð;Ð ;rwcó—|jSr)r{rss rurzNewType.__reduce__š s€Ø×$Ñ$Ð $rwr“có,—tj||fSrrŸrs rur zNewType.__or__¡ s€Ü—|‘| D¨% KÑ0Ð0rwcó,—tj||fSrrŸrs rur¢zNewType.__ror__¤ s€Ü—|‘| E¨4 KÑ0Ð0rwN) ryrzr{rÄrŒrîr�rvrr+r�r r¢rrrwrur8r8l s?„ñ ò ò *ò ò  <ò %ð × Ñ ˜wÒ &ò 1ó 1ð 'rwr8rAcóv—|duxs4t|ttjtjt f«S)z:Corresponds to is_unionable() in unionobject.c in CPython.N)r€rÛr™ršr›rArºs ruÚ _is_unionabler<« s9€à�dˆ{ò œj¨Ü Ü × Ñ Ü × Ñ Ü ð / ó ð rwc󸇗eZdZdZddœdefd„Zdededdfˆfd „ Zdedefd „Z dedefd „Z defd „Z d „Z d„Z d„Zd„Zej"dk\r d„Zd„ZˆxZSˆxZS)rAaüCreate named, parameterized type aliases. This provides a backport of the new `type` statement in Python 3.12: type ListOrSet[T] = list[T] | set[T] is equivalent to: T = TypeVar("T") ListOrSet = TypeAliasType("ListOrSet", list[T] | set[T], type_params=(T,)) The name ListOrSet can then be used as an alias for the type it refers to. The type_params argument should contain all the type parameters used in the value of the type alias. If the alias is not generic, this argument is omitted. Static type checkers should only support type aliases declared using TypeAliasType that follow these rules: - The first argument (the name) must be a string literal. - The TypeAliasType instance must be immediately assigned to a variable of the same name. (For example, 'X = TypeAliasType("Y", int)' is invalid, as is 'X, Y = TypeAliasType("X", int), TypeAliasType("Y", int)'). rr)Ú type_paramsrÓcó(—t|t«s td«‚||_||_g}|D]5}t|t «r|j |«Œ%|j|«Œ7t|«|_ t«}|dk7r||_ ||_ y)Nz#TypeAliasType name must be a stringr ) r€rør‡Ú __value__rrr¦r¥r§r}r2rzry)rtrÓÚvaluer>rŽrr#s rurîzTypeAliasType.__init__Ð s‰€Ü˜d¤CÔ(ÜÐ EÓFÐFØ"ˆDŒNØ#.ˆDÔ àˆJÛ)� ܘj¬,Ô7Ø×%Ñ% jÕ1à×%Ñ% jÕ1ð *ô #(¨ Ó"3ˆDÔ Ü“iˆGØÐ-Ò-Ø")�”à ˆD�MrwrArYNcó`•—t|d«r|j|«t‰|� ||«y)Nry)r‰Ú_raise_attribute_errorr·Ú __setattr__)rtrÓrArºs €rurDzTypeAliasType.__setattr__ã s*ø€Ü�t˜ZÔ(Ø×+Ñ+¨DÔ1Ü ‰GÑ   eÕ ,rwcó&—|j|«yr)rC©rtrÓs ruÚ __delattr__zTypeAliasType.__delattr__è s€Ø × 'Ñ '¨Õ -rwcóf—|dk(r td«‚|dvrtd|›d�«‚td|›d�«‚)Nryzreadonly attribute>r@rzr}rz attribute 'z3' of 'typing.TypeAliasType' objects is not writablez0'typing.TypeAliasType' object has no attribute 'Ú')rÏrFs rurCz$TypeAliasType._raise_attribute_errorë sX€à�zÒ!Ü$Ð%9Ó:Ð:ØÐYÑYÜ$Ø! $ ð(&ð&óðô %ØFÀtÀfÈAÐNóðrwcó—|jSrrgrss rurvzTypeAliasType.__repr__ù rhrwc óÒ—t|t«s|f}|D�cgc]&}tj|d|j›d�«‘Œ(}}tj |t|««Scc}w)Nz Subscripting z requires a type.)r€r§r—r­ryr˜r„s rur÷zTypeAliasType.__getitem__ü sv€Ü˜j¬%Ô0Ø(˜]� ñ 'ó ñ'�Dô×"Ñ"ؘM¨$¯-©-¨Ð8IÐJõð'ð ðô ×'Ñ'¨¬e°JÓ.?Ó@Ð @ùò s˜+A$có—|jSrrgrss rurzTypeAliasType.__reduce__ rhrwcó—td«‚)NzEtype 'typing_extensions.TypeAliasType' is not an acceptable base typerÃrJs rurdzTypeAliasType.__init_subclass__ s€ÜØWóð rwcó—td«‚)NzType alias is not callablerÃrss rurŒzTypeAliasType.__call__ s€ÜÐ8Ó9Ð 9rwr“cóN—t|«stStj||fSr©r<rßr—rj)rtÚrights rur zTypeAliasType.__or__ s%€ô% UÔ+Ü)Ð)Ü—|‘| D¨% KÑ0Ð0rwcóN—t|«stStj||fSrrP)rtÚlefts rur¢zTypeAliasType.__ror__ s#€Ü$ TÔ*Ü)Ð)Ü—|‘| D¨$ JÑ/Ð/rw)ryrzr{rÄrørîrCrDrErGrCrvr÷rrdrŒr+r�r r¢r¼r½s@rurArA´ s™ø„ñ ð6=?ò ! ó !ð& - Cð -°ð -¸dõ -ð  . Cð .¨uó .ð ¨sð °uó ð !˜có !ò Aò !ò ò :ð × Ñ ˜wÒ &ò 1ö 0ó 'rwr5r¸có|—t|t«xr+t|dd«xr|tuxr|tjuS)aZReturn True if the given type is a Protocol. Example:: >>> from typing_extensions import Protocol, is_protocol >>> class P(Protocol): ... def a(self) -> str: ... ... b: int >>> is_protocol(P) True >>> is_protocol(int) False r F)r€rÛrûr;r—rÙs rur5r5& sD€ô �rœ4Ó ò *ܘ˜N¨EÓ2ò *àœ(Ð"ò *ðœ&Ÿ/™/Ð)ð  rwcóž—t|«st|›d�«‚t|d«rt|j«Stt |««S)a�Return the set of members defined in a Protocol. Example:: >>> from typing_extensions import Protocol, get_protocol_members >>> class P(Protocol): ... def a(self) -> str: ... ... b: int >>> get_protocol_members(P) frozenset({'a', 'b'}) Raise a TypeError for arguments that are not Protocols. z is not a Protocolr)r5r‡r‰rçrr'rÙs rur2r2; sK€ô˜2ŒÜ˜r˜fÐ$6Ð7Ó8Ð 8Ü �2Ð+Ô ,ܘR×2Ñ2Ó3Ð 3ÜÔ,¨RÓ0Ó1Ð1rwr,cóH—eZdZdZdeddfd„Zdefd„Zdefd„Zde de fd „Z y) r,afDefine the documentation of a type annotation using ``Annotated``, to be used in class attributes, function and method parameters, return values, and variables. The value should be a positional-only string literal to allow static tools like editors and documentation generators to use it. This complements docstrings. The string value passed is available in the attribute ``documentation``. Example:: >>> from typing_extensions import Annotated, Doc >>> def hi(to: Annotated[str, Doc("Who to say hi to")]) -> None: ... Ú documentationrYNcó—||_yr©rW)rtrWs rurîz Doc.__init__d s €Ø!.ˆDÕ rwcó"—d|j›d�S)NzDoc(Ú)rYrss rurvz Doc.__repr__g s€Ø˜$×,Ñ,Ð/¨qÐ1Ð 1rwcó,—t|j«Sr)rærWrss rurèz Doc.__hash__j s€Ü˜×*Ñ*Ó+Ð +rwrácó`—t|t«stS|j|jk(Sr)r€r,rßrWrs ruräz Doc.__eq__m s)€Ü˜e¤SÔ)Ü%Ð%Ø×%Ñ%¨×)<Ñ)<Ñ<Ð r=r$r"r!r r#rr%r•rr�r6Ú signaturer­rŽr«r›rÀrÅrØr(r3ràr&rçr0r/rÚ ImportErrorršrr@r r$r&r(r r r;rrñrmrrxrr}rBr‡rCr�Ú_Finalrr rErHrIr±rGr·r¾rr‹r¼rÁrËrr<r'r*r,rirjrMr:rîr+rñrrÚ _prohibitedrrrrr%rÚABCÚregisterÚ memoryviewÚ bytearrayr~r1r8rAr<r5r2rRrør,rJrKrLrNrOrPrQrSrUrVrWrXrYrZr[r\r]r^r_r`rarbrcrdrerfrgrhrkrlrmrnrrrwruÚrlseðÛ ÛÛÛÛÛÛ ÛÛ Ûòx €ðv €Ø€ ÷ ññ ‹+€ð*1ó<ð*×Ñ�wÒó ð ×јÒóJòFóð* �?‰?€ð€F‡N�N�3Ӏ؀V‡^�^�DӀ؀V‡^�^�DӀ؀v‡~�~�f¨Ô-€Ø ˆ6�>‰>˜*°DÔ 9€ð×Ñ�wÒÞô &�4ô &ô 9˜õ 9ð �?‰?€ô1˜V×0Ñ0¸õ1ð � ‰ €à×Ñ�wÒØ �L‰L�Eò ò@ ð ×Ñ�zÒ!Ø�n‰n�Gòòô H˜v×3Ñ3¸4õ Hô:Ð-°Tõ:ñ<ð 1ô 2€Gð×(Ñ(€ñ ˆ6�?Ô#Ø�‰€HØ×(Ñ(€MØ×,Ñ,�Oð1˜×0Ñ0؈ ×ј+×1Ñ1°4Ó8óÐò&òP 7ò#ð ‡{�{€ð × Ñ € Ø × Ñ € Ø×$Ñ$€ Ø×$Ñ$€ Ø� ‰ €Ø×&Ñ&€Ø×0Ñ0ÐØ× Ñ € Ø× Ñ € Ø �.‰.€Ø �?‰?€Ø×&Ñ&€Ø ‡{�{€Ø×$Ñ$€ òð,Ð-JÐKØ"˜ñ Ðò€ð×Ñ�vÒØ×ÑÐ+Ô,à×Ñ�wÒØ×ÑÐ)Ô*á˜OÓ,€ò óð×Ñ�wÒØ�‰�Hó<ò@òBô&b&™˜VŸ_™_Ó-ôb&ðHñóðô0(�6—>‘>¨]õ(ð,×Ñ�wÒØ×0Ñ0Ñò,ð` €ð×Ñ�wÒØ×$Ñ$€KØ×(Ñ(€MØ×,Ñ,€OØ×(Ñ(€MØ×(Ñ(€MØ×$Ñ$€KØ×(Ñ(�Màô�hóóððô˜óóððô˜(óóððô˜óóððô˜óóððô�h˜t‘nóóððô˜ ™óóðò ñ ˆ6�:Ôð× Ñ €IØ×*Ñ*€NØ×&Ñ&�LðÐ 1 × 1Ñ 1°&×2DÑ2DÓ E× PÑ PÐP€Mòô*q.˜ôq.ðf—‘˜n¨k¸2¸rÓB€JáÑ5Ó6Ø#*ðV¸ÀUóVó7ðVñpˆvÐ'Ô(Ø"×1Ñ1°>ÐBÑà*Ð,Ðò0ñ" ˆ6�=Ô!Ø×$Ñ$�Kò ñ  ˆ6�:ÔØ×*Ñ*�Nòó0(>ñX ˆ6�;ÔØ× Ñ €Ið×,Ñ,�Oô%>˜&×.Ñ.°dõ%>÷N8ñ8ðz×Ñ�B�QИ7Ò"Ø×"Ñ"€JØ�‰�Hð1å,ð4å?òò0ñ0 ˆ6�;ÔØ× Ñ �Ià×Ñ�b�qИVÒ#Øñ 8óñ 8ñ'Øð ô €Iò &ò)÷ñôC�tôCô UÐ(õUñ8 ˆ6�?Ô#Ø×(Ñ(€MØ×,Ñ,�O÷ñô7˜ ô7ô.7˜*ô7ñ0 ˆ6�;Ôô[Ð.ö[ô>b�D˜-ôbñLˆv�}Ô%ô 4ôðB×Ññ 6óð 6ñ ˆ6�=Ô!Ø×$Ñ$€KØ%×>Ñ>Ñà×Ñ�b�qИVÒ#Øñ 6óñ 6ô:Ð1¸õ:ñ#Øð ô  €Kñ ˆ6�;ÔØ× Ñ �Ià×Ñ�b�qИVÒ#Øñ,3óñ,3ô^7Ð/°tõ7ñ Øð) ô+ €Iñ\ ˆ6�8ÔØ �]Š]�Fà×Ñ�b�qИVÒ#Øñ&3óñ&3ôR7Ð,°Dõ7ñ Øð# ô% €FôR(/�6—=’=¨õ(/ñV ˆ6�?Ô#Ø×(Ò(�Màñ8óð8ñ& ˆ6�6ÔØ �;Š;�Dàñ8óð8ñ" ˆ6�7ÔØ �LŠL�Eàñ8óð8ñ4 ˆ6�:ÔØ�Š€HØ×$Ò$�KØ×Ñ�b�qИVÒ#Øñ3óð3ð&ñ3óñ3ô"7Ð.°dõ7ñ Øð ô €Hñ" Øð ô  €Kñ  ˆ6�:ÔØ�Š�HØ×Ñ�b�qИVÒ#Øñ3óñ3ô&7Ð.°dõ7ñ Øð ô €Hð$'€ ðT×Ñ�wÒØ �]Š]€Fó)ð ×Ñ�b�qИVÒ#ô'Ð3¸4õ'ô #�v×+Ñ+°4õ#ðñ+óð+ó-ô#�v×+Ñ+°4õ#ô/Ð,°Dõ/ñ ˜ {Ô 3€Fò-ñ ˆ6�>Ô"ô FÐ!1ö FôKJ�}ôKJñ\ ˆ6�=Ô!Ø×$Ò$�Kð˜ð !óñ( ˆ6�>Ô"Ø×&Ò&�Lð@˜%ð@ uó@ð.×Ñ�wÒà ×4Ò4Ñð Ø#Ø %Ø$ð òSàðSððSðð Sð ð Sð !Ÿ,š,Ø �LŠL˜Ÿ™ V§Z¡ZÑ0°&·/²/À#ÀvÇzÁzÀ/Ñ2RÐRÑ SØ ð ñ ð Sð—*‘*ðSð �Š˜!˜˜a˜Ñ óSñl ˆ6�:ÔØ�Š�Hà ˆ�‰˜ F§O¢O°C¸¿¹°OÑ$DÔ E€Bð!�bð! ó!ñH ˆ8�\Ô"Ø×$Ò$�Jà ˆ�‰˜Ó €B÷ññRˆv�~Ô&Ø 2€FÔØ*€FÔð×Ñ�wÒØ×"Ò"�Jó ð%+×$6Ò$6Ð!Ù!*Ò+XÓ!YÐô>˜$ô>ð@—,‘,˜° ¸bÀ"ÓE€KòñÐ1Ó2Ø$+ò?ó3ð?ñD ˆ;�?‰?˜HÔ%Ø �_‰_× #Ò #�Fô �—’ô ð* ‡O‚O�JÔØ ‡O‚O�IÔØ ‡O‚O�EÔñ ˆ6Ð'Ô(Ø×2Ò2Ñòð>×Ñ�wÒØ�nŠn�G÷91ñ91ñx ˆ6�?Ô#Ø×(Ò(�Mò ÷k0ñk0ñ\ ˆ6�=Ô!Ø×$Ò$€KØ!×6Ò6Ñð ˜ð  Dó ð*2 ð2¨V×-=Ò-=¸cÑ-Bó2ñ* ˆ6�5ÔØ �*Š*�C÷=ñ=ðH× Ò € Ø �Š€Ø �?Š?€Ø �?Š?€Ø × Ò € Ø × Ò € Ø ‡{‚{€Ø × Ò € Ø × Ò € Ø × Ò € Ø �.‰.€Ø �?Š?€Ø ‡Y‚Y€Ø × Ò € Ø �?Š?€Ø �?Š?€Ø �?Š?€Ø ‡{‚{€Ø �.Š.€Ø× Ò € Ø� Š €Ø×&Ò&€Ø×(Ò(€Ø × Ò € Ø �?Š?€Ø �.Š.€Ø × Ò € Ø �?Š?€Ø ‡j‚j€Ø� Š €Ø �Š€Ø� Š €Ø� Š €Ø × Ò € Ø ‡{‚{€Ø×$Ò$€ Ø ×8Ò8Ñøðw; ò1Ø"×0Ñ0Óð1ûð ò4Ø%×3Ñ3Óð4ús$×z×"z4úz1ú0z1ú4{ û{