Ë ‚Ö¦i4Ðãóœ—dZddlmZmZddlZddlmZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddlZddlZddlmZmZmZmZddlmZmZmZmZmZmZmZmZgd¢Zdèdd œd „Zdédd œd „Zd „Z d„Z!d„Z"d„Z#d„Z$d„Z%ddœd„Z&d„Z'd„Z(d„Z)d„Z*gZ+iZ,dèddœd„Z-dèe.«dœd„Z/Gd„d«Z0Gd„d «Z1Gd!„d"e0e1d ¬#«Z2Gd$„d%e2d ¬#«Z3Gd&„d'e4«Z5Gd(„d)e5¬*«Z6e2d+„«Z7e2d,„«Z8e2d-„«Z9e2d.„«Z:e2d/„«Z;e2d0„«Ze2d3„«Z?e3e-d ¬«d4„««Z@e2d5„«ZAe2d6„«ZBe2d7„«ZCGd8„d9e0d ¬#«ZDd:e6d;eEfd<„ZFd:e6d;eEfd=„ZGGd>„d?«ZHd@„ZIdA„ZJdB„ZKdC„ZLe-dD„«ZMdE„ZNdF„ZOGdG„dHe0d ¬#«ZPGdI„dJePd ¬#«ZQGdK„dLe1ePd ¬#«ZRGdM„dNeRd ¬#«ZSGdO„dPe1eQd ¬#«ZTGdQ„dReRd ¬#«ZUGdS„dTeRd ¬#«ZVGdU„dVe1eQd ¬#«ZWdW„ZXGdX„dYeQd ¬#«ZYGdZ„d[eQd ¬#«ZZe2d\„«Z[Gd]„d^eQd ¬#«Z\Gd_„d`«Z]e.hda£«Z^e.hdb£«Z_e^e_zdchzZ`dd„Zade„Zbdêdg„Zcdëdi„Zdgdj¢dkdlgdmœZee jÌdn„«Zge+jÑegjÒ«do„ZjejÖeej«dp„ZlejÖeel«[j[lGdq„dre«Zmends„«ZoGdt„dueem¬*«ZpGdv„dwe1eQd ¬#«ZqGdx„dy«Zrdz„Zsd{„Ztd|„ZuejìejîejðejòeeefZzdìd}„Z{d~„Z|d„Z}d€„Z~d�„Zd‚Z€dƒe8d;e8fd„„Z�d…„Z‚d†„Zƒd‡„Z„ee �j ee†««Z‡dˆ„Zˆd‰„Z‰dŠ„ZŠd‹„Z‹edŒ«ZŒed�«Z�edŽ«ZŽed�d ¬�«Z�ed‘d ¬�«Z�ed’d ¬�«Z‘ed“d ¬”«Z’ed•d e4¬–«Z“ed—e”e•«Z–eRZ—e—ej�j0d«Z˜e—ej�j2df«Z™e—ej�j4d˜«Zše—ej�j6df«Z›e—ej�j8df«Zœe—ej�j:df«Z�e—ej�j<df«Zže—ej�j>df«ZŸe—ej�j@d«Z e—ej�jBdf«Z¡e—ej�jDdf«Z¢eUej�jFdh«Z£d™e£_e—ej�jHdfd𬛫Z¥e—ej�jLdf«Z¦e—ej�jNdh«Z§e—ej�jPdh«Z¨e—ej�jRdf«Z©e—ej�jTdf«ZªeSej�jVddœ¬�«Z«eVe¬džddŸ¬ «Z­d¡e­_e—e®dfdd¢¬ «Z¯e—e�j`dfd£¬›«Z±e—e²dfdd¤¬ «Z¤e—e.dfdd¥¬ «Z³e—ej�jhdf«Z´e—ej�jjdf«Zµe—ej�jldh«Z¶e—ej�jndf«Z·e—e�jpdfd¦¬›«Z¹e—e�jtdfd§¬›«Z»e—e†dhdd¨¬ «Z¼e—ej dhd©¬›«Z½e—e�j|dh«Z¾e—e�j~df«Z¿e—e�j€dh«ZÀe—ej�j‚d˜«ZÁe—ej�j„dh«ZÂe—e4dfddª¬ «ZÃd«eÃ_esGd¬„d­ep««ZÄesGd®„d¯ep««ZÅesGd°„d±ep««ZÆesGd²„d³ep««ZÇesGd´„dµep««ZÈesd¶„««ZÉesd·„««ZÊdíd¹„ZËe.hdº£«ZÌe.hd»£«ZÍGd¼„d½e4«ZÎdèd¾„ZÏe4�j¡eÎd¿d¸i«ZÑdÀ„ZÒeÒeÏ_ÓGdÁ„dÂe4«ZÔdèd dÜdÄ„ZÕe4�j¡eÔdÅd¸i«ZÖdÆ„eÕ_Óe2dÇ„«Z×e2dÈ„«ZØGdÉ„dÊ«ZÙe•ZÚdZÛGdË„dÌee–«ZÜGdÍ„dÎeÜe”«ZÝGdÏ„dÐeÜe•«ZÞGdÑ„dÒe4«ZßGdÓ„dÔe߬*«ZàeádÕzeà_áeàe �jÄeà�jÂ<e—e �jÆdf«Zãe—e �jÈdf«ZäGdÖ„d×e߬*«Z eádØze _áe e �jÄe �jÂ<dÙ„«ZåGdÚ„dÛep«Zæd dddd¸dÜœdÝeEdÞeEdßeEdàeEdáe¬e4e6e£dâe6fzdâfdãe6d;eæfdä„Zçdåddæ„f­ Zèdç„«Zéy)îa The typing module: Support for gradual typing as defined by PEP 484 and subsequent PEPs. Among other things, the module includes the following: * Generic, Protocol, and internal machinery to support generic aliases. All subscripted types like X[int], Union[int, str] are generic aliases. * Various "special forms" that have unique meanings in type annotations: NoReturn, Never, ClassVar, Self, Concatenate, Unpack, and others. * Classes whose instances can be type arguments to generic classes and functions: TypeVar, ParamSpec, TypeVarTuple. * Public helper functions: get_type_hints, overload, cast, final, and others. * Several protocols to support duck-typing: SupportsFloat, SupportsIndex, SupportsAbs, and others. * Special types: NewType, NamedTuple, TypedDict. * Deprecated wrapper submodules for re and io related types. * Deprecated aliases for builtin types and collections.abc ABCs. Any name not present in __all__ is an implementation detail that may be changed without notice. Use at your own risk! é)ÚabstractmethodÚABCMetaN)Ú defaultdict)ÚWrapperDescriptorTypeÚMethodWrapperTypeÚMethodDescriptorTypeÚ GenericAlias)Ú_idfuncÚTypeVarÚ ParamSpecÚ TypeVarTupleÚ ParamSpecArgsÚParamSpecKwargsÚ TypeAliasTypeÚGeneric)cÚ AnnotatedÚAnyÚCallableÚClassVarÚ ConcatenateÚFinalÚ ForwardRefrÚLiteralÚOptionalr ÚProtocolÚTupleÚTyper r ÚUnionÚ AbstractSetÚ ByteStringÚ ContainerÚContextManagerÚHashableÚ ItemsViewÚIterableÚIteratorÚKeysViewÚMappingÚ MappingViewÚMutableMappingÚMutableSequenceÚ MutableSetÚSequenceÚSizedÚ ValuesViewÚ AwaitableÚ AsyncIteratorÚ AsyncIterableÚ CoroutineÚ CollectionÚAsyncGeneratorÚAsyncContextManagerÚ ReversibleÚ SupportsAbsÚ SupportsBytesÚSupportsComplexÚ SupportsFloatÚ SupportsIndexÚ SupportsIntÚ SupportsRoundÚChainMapÚCounterÚDequeÚDictÚ DefaultDictÚListÚ OrderedDictÚSetÚ FrozenSetÚ NamedTupleÚ TypedDictÚ GeneratorÚBinaryIOÚIOÚMatchÚPatternÚTextIOÚAnyStrÚ assert_typeÚ assert_neverÚcastÚclear_overloadsÚdataclass_transformÚfinalÚget_argsÚ get_originÚ get_overloadsÚget_type_hintsÚ is_typeddictÚ LiteralStringÚNeverÚNewTypeÚ no_type_checkÚno_type_check_decoratorÚNoReturnÚ NotRequiredÚoverloadÚoverriderrÚRequiredÚ reveal_typeÚruntime_checkableÚSelfÚTextÚ TYPE_CHECKINGÚ TypeAliasÚ TypeGuardrÚUnpackF©Úallow_special_formscó\—|€ td«St|t«rt|||¬«S|S)z=For converting None to type(None), and strings to ForwardRef.N)ÚmoduleÚis_class)ÚtypeÚ isinstanceÚstrr)Úargrqros ú/usr/lib64/python3.12/typing.pyÚ _type_convertrx¦s0€à €{Ü�D‹zÐÜ�#”sÔܘ# fÐ7JÔKÐKØ €JóTcóΗttf}|s|tfz }|r |tfz }t |||¬«}t |t «r|j|vrt|›d�«‚|ttttttfvr|S|r|ttfvr|St |t«s|ttfvrtd|›d�«‚t!|«t"urt|›d|d›d�«‚|S)aôCheck that the argument is a type, and return it (internal helper). As a special case, accept None and return type(None) instead. Also wrap strings into ForwardRef instances. Consider several corner cases, for example plain special forms like Union are not valid, while Union[int, str] is OK, etc. The msg argument is a human-readable error message, e.g.:: "Union[arg, ...]: arg should be a type." We append the repr() of the actual value (truncated to 100 chars). )rqroú is not valid as type argumentzPlain z Got z.100Ú.)rrrrrxrtÚ _GenericAliasÚ __origin__Ú TypeErrorrr\rar]rhrkÚ _SpecialFormrsÚtuple)rvÚmsgÚ is_argumentrqroÚinvalid_generic_formss rwÚ _type_checkr…¯sì€ô%¤hÐ/Ð٠ؤ( Ñ,ÐÙ Ø !¤e XÑ -Ð !ä ˜ FÐ@SÔ T€CÜ�3œ Ô&Ø �N‰NÐ3Ñ 3ܘ3˜%Ð=Ð>Ó?Ð?Ø Œs”M¤8¬U´D¼)ÐDÑD؈ Ù˜s¤x´Ð&7Ñ7؈ Ü�#”|Ô$¨´¼Ð/BÑ(Bܘ&  Ð%CÐDÓEÐEÜ ˆCƒy”EÑܘ3˜%˜u S¨4 L°Ð2Ó3Ð3Ø €JrycóN—|duxs t|ttttf«S©N.)rtr�Úlistr Ú_ConcatenateGenericAlias)rvs rwÚ_is_param_exprrŠÐs,€Ø �#ˆ:ò @œ CÜ ”Dœ)Ô%=Ð >ó@ð@rycó�—|jtjjuxrt |«dk(xrt |d« S)aCInternal helper for munging collections.abc.Callable's __args__. The canonical representation for a Callable's __args__ flattens the argument types, see https://github.com/python/cpython/issues/86361. For example:: >>> import collections.abc >>> P = ParamSpec('P') >>> collections.abc.Callable[[int, int], str].__args__ == (int, int, str) True >>> collections.abc.Callable[P, str].__args__ == (P, str) True As a result, if we need to reconstruct the Callable from its __args__, we need to unflatten it. ér)r~Ú collectionsÚabcrÚlenrŠ)ÚtypÚargss rwÚ_should_unflatten_callable_argsr’Õs@€ð& �‰œ+Ÿ/™/×2Ñ2Ð2ò =Ü�T“˜a‘Ò;¤N°4¸±7Ó$;Ð <ðrycóV—t|t«r6|jdk(r |jS|j›d|j›�S|duryt|tj «r |j St|t«rddjd„|D««zdzSt|«S) a;Return the repr() of an object, special-casing types (internal helper). If obj is a type, we return a shorter version than the default type.__repr__, based on the module and qualified name, which is typically enough to uniquely identify a type. For everything else, we fall back on repr(obj). Úbuiltinsr|.ú...Ú[ú, c3ó2K—|]}t|«–—Œy­w©N)Ú _type_repr)Ú.0Úts rwÚ z_type_repr..sèø€Ð:±c°œz¨!Ÿ}±cùó‚Ú]) rtrsÚ __module__Ú __qualname__ÚtypesÚ FunctionTypeÚ__name__r�ÚjoinÚrepr©Úobjs rwršršísš€ô�#”tÔØ �>‰>˜ZÒ 'Ø×#Ñ#Ð #Ø—.‘.Ð!  3×#3Ñ#3Ð"4Ð5Ð5Ø ˆc�zØÜ�#”u×)Ñ)Ô*Ø�|‰|ÐÜ�#”uÔà�T—Y‘YÑ:±cÓ:Ó:Ñ:¸SÑ@Ð@Ü �‹9Ðrycó`—g}|D]�}t|t«rŒt|t«r/|D])}t|g«D]}||vsŒ|j |«ŒŒ+ŒSt |d«r||vsŒd|j |«Œvt |dd«D]}||vsŒ|j |«ŒŒŸt|«S)aCollect all type variables and parameter specifications in args in order of first appearance (lexicographic order). For example:: >>> P = ParamSpec('P') >>> T = TypeVar('T') >>> _collect_parameters((T, Callable[P, T])) (~T, ~P) Ú__typing_subst__Ú__parameters__©)rtrsr�Ú_collect_parametersÚappendÚhasattrÚgetattr)r‘Ú parametersrœÚxÚ collecteds rwr­r­s·€ð€JÛ ˆÜ �aœÔ à Ü ˜œ5Ô !ó�Ü!4°a°SÖ!9�IØ ¨ Ò2Ø"×)Ñ)¨)Õ4ñ":ñô�QÐ*Ô +ؘ Ò"Ø×!Ñ! !Õ$ä˜QÐ 0°"Ö5�ؘJÒ&Ø×%Ñ% aÕ(ñ6ðô$ �Ó Ðryc ó€—|st|›d�«‚t|«}||k7rtd||kDrdnd›d|›d|›d|›�«‚y) z‹Check correct count for parameters of a generic cls (internal helper). This gives a nice error message in case of count mismatch. ú is not a generic classúToo ÚmanyÚfewú arguments for ú ; actual ú , expected N)rr�)Úclsr±ÚelenÚalens rwÚ_check_genericr¿'sh€ñ ܘ3˜%Ð6Ð7Ó8Ð8Ü ˆz‹?€DØ ˆt‚|ܘ$¨°ª™v¸%Ð@ÀÐPSÈuðU#Ø#' &¨ °D°6ð;ó<ð <ðrycóŽ—g}|D]=}t|dd«}|�|r|ddus|j|«Œ-|j|«Œ?|S)NÚ__typing_unpacked_tuple_args__éÿÿÿÿ.)r°Úextendr®)r‘ÚnewargsrvÚsubargss rwÚ _unpack_argsrÆ3sR€Ø€Gۈܘ#Ð?ÀÓFˆØ Ð ©°G¸B±KÀ3Ñ4FØ �N‰N˜7Õ #à �N‰N˜3Õ ð ð €Nry©Úunhashable_fallbackcóh— tj|«S#t$r|s‚t|«cYSwxYwr™)ÚdictÚfromkeysrÚ_deduplicate_unhashable)ÚparamsrÈs rwÚ _deduplicaterÎ=s6€ð/Ü�}‰}˜VÓ$Ð$øÜ ò/Ù"Ø ä& vÓ.Ò.ð /ús ‚—1°1cóD—g}|D]}||vsŒ|j|«Œ|Sr™)r®)Úunhashable_paramsÚnew_unhashablerœs rwrÌrÌGs/€Ø€NÛ ˆØ �NÒ "Ø × !Ñ ! !Õ $ðð Ðrycóœ—t|«}t|«}t|«} |D]}|j|«Œ | S#t$rYywxYw)NF)rÌrˆÚremoveÚ ValueError)Ú first_argsÚ second_argsÚfirst_unhashableÚsecond_unhashablerœÚelems rwÚ_compare_args_orderlessrÚNsZ€Ü.¨zÓ:ÐÜ/° Ó<ÐÜ Ð Ó€AðÛ$ˆDØ �H‰H�T�Nñ%ðˆ5€Løô òÙðús£?¿ A Á A cóÚ—g}|D]O}t|ttjf«r|j |j «Œ?|j |«ŒQtt|d¬««S)zwInternal helper for Union creation and substitution. Flatten Unions among parameters, then remove duplicates. TrÇ) rtÚ_UnionGenericAliasr¢Ú UnionTyperÃÚ__args__r®r�rΩr±rÍÚps rwÚ_remove_dups_flattenráYsW€ð €FÛ ˆÜ �aÔ,¬e¯o©oÐ>Ô ?Ø �M‰M˜!Ÿ*™*Õ %à �M‰M˜!Õ ð ô ”˜f¸$Ô?Ó @Ð@rycó¤—g}|D]?}t|t«r|j|j«Œ/|j |«ŒAt |«S)zHInternal helper for Literal creation: flatten Literals among parameters.)rtÚ_LiteralGenericAliasrÃrÞr®r�rßs rwÚ_flatten_literal_paramsräisD€à €FÛ ˆÜ �aÔ-Ô .Ø �M‰M˜!Ÿ*™*Õ %à �M‰M˜!Õ ð ô �‹=Ðry©Útypedcó&‡—ˆfd„}|�||«S|S)z‰Internal wrapper caching __getitem__ of generic types. For non-hashable arguments, the original function is used as a fallback. cóΕ‡—tj‰¬«‰«}|t‰<tj |j «~tj ‰«ˆfd„«}|S)NråcóP•— t‰|i|¤ŽS#t$rYnwxYw‰|i|¤ŽSr™)Ú_cachesr)r‘ÚkwdsÚfuncs €rwÚinnerz+_tp_cache..decorator..innerˆs>ø€ð ܘt‘} dÐ3¨dÑ3Ð3øÜò Ùð úá˜Ð& Ñ&Ð &s ƒ ‘ œ)Ú functoolsÚ lru_cacherêÚ _cleanupsr®Ú cache_clearÚwraps)rìÚcacheríræs` €rwÚ decoratorz_tp_cache..decorator}s^ù€ð 1” ×#Ñ#¨%Ô0°Ó6ˆØŒ�‰ Ü×ј×*Ñ*Ô+Ø ä �‰˜Ó ó 'ó ð 'ð ˆ ryr¬)rìrærôs ` rwÚ _tp_cacherõxs ø€ô ð( ÐÙ˜‹Ðà Ðry©Úrecursive_guardcóÞ‡‡‡‡—t|t«r|j‰‰‰‰¬«St|ttt j f«�rt|t«rftd„|jD««}|j}t||«r|j|dd|df}n|j|}|r t|}tˆˆˆˆfd„|jD««}||jk(r|St|t«rt |j|«St|t j «r$tjtj |«S|j#|«S|S)záEvaluate all forward references in the given type t. For use of globalns and localns see the docstring for get_type_hints(). recursive_guard is used to prevent infinite recursion with a recursive ForwardRef. röc3óVK—|]!}t|t«r t|«n|–—Œ#y­wr™)rtrur©r›rvs rwr�z_eval_type..¢s*èø€ðá%�Cô$.¨c´3Ô#7” ˜3”¸SÓ@Ù%ùs‚')NrÂc3ó>•K—|]}t|‰‰‰‰¬«–—Œy­w)röN)Ú _eval_type)r›ÚaÚglobalnsÚlocalnsr÷Ú type_paramss €€€€rwr�z_eval_type..®s2øèø€ð ñ �ô Ø�8˜W kÀ?÷ ð ñ ùsƒ)rtrÚ _evaluater}r r¢rÝr�rÞÚ __unpacked__r’r~rmrîÚreduceÚoperatorÚor_Ú copy_with)rœrþrÿrr÷r‘Ú is_unpackedÚev_argss ```` rwrürü—s0û€ô�!”ZÔ Ø�{‰{˜8 W¨kÈ?ˆ{Ó[Ð[Ü�!”m¤\´5·?±?ÐCÕDÜ �aœÔ &ÜñàŸ:š:óóˆDðŸ.™.ˆKÜ.¨q°$Ô7Ø—L‘L $ s¨ )¨T°"©XÐ!6Ñ7‘à—L‘L Ñ&�Ùܘ1‘I�äö ð—Z’Zó  ó ˆð �a—j‘jÒ ØˆHÜ �aœÔ &Ü § ¡ ¨gÓ6Ð 6Ü �aœŸ™Ô )Ü×#Ñ#¤H§L¡L°'Ó:Ð :à—;‘;˜wÓ'Ð 'Ø €Hrycó—eZdZdZdZd„Zy)Ú_FinalzMixin to prohibit subclassing.)Ú __weakref__có"—d|vr td«‚y)NÚ_rootz&Cannot subclass special typing classes©r)r¼r‘rës rwÚ__init_subclass__z_Final.__init_subclass__Äs€Ø ˜$Ñ ÜÐDÓEÐ Eð ryN)r¤r r¡Ú__doc__Ú __slots__rr¬ryrwr r ¿s„Ù(à €IóFryr có—eZdZdZdZdZy)Ú _NotIterableaŽMixin to prevent iteration, without being compatible with Iterable. That is, we could do:: def __iter__(self): raise TypeError() But this would make users of this mixin duck type-compatible with collections.abc.Iterable - isinstance(foo, Iterable) would be True. Luckily, we can instead prevent iteration by setting __iter__ to None, which is treated specially. r¬N)r¤r r¡rrÚ__iter__r¬ryrwrrÉs„ñ ð€IØ�Hryrcó\—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z ed „«Zy )r€)Ú_namerÚ_getitemcóV—||_|j|_|j|_yr™)rr¤rr)ÚselfÚgetitems rwÚ__init__z_SpecialForm.__init__às!€ØˆŒ Ø×%Ñ%ˆŒ Ø—‘ˆ� rycó8—|dvr |jSt|«‚)N>r¤r¡)rÚAttributeError)rÚitems rwÚ __getattr__z_SpecialForm.__getattr__ås €Ø Ð/Ñ /Ø—:‘:Ð ä˜TÓ"Ð"rycó—td|›�«‚)NúCannot subclass r©rÚbasess rwÚ__mro_entries__z_SpecialForm.__mro_entries__ës€ÜÐ*¨4¨(Ð3Ó4Ð4rycó —d|jzS©Nútyping.©r©rs rwÚ__repr__z_SpecialForm.__repr__îó€Ø˜4Ÿ:™:Ñ%Ð%rycó—|jSr™r(r)s rwÚ __reduce__z_SpecialForm.__reduce__ñó €Ø�z‰zÐrycó—td|›�«‚)NzCannot instantiate r)rr‘rës rwÚ__call__z_SpecialForm.__call__ôs€ÜÐ-¨d¨XÐ6Ó7Ð7rycó—t||fSr™©r©rÚothers rwÚ__or__z_SpecialForm.__or__÷ó€Ü�T˜5�[Ñ!Ð!rycó—t||fSr™r2r3s rwÚ__ror__z_SpecialForm.__ror__úó€Ü�U˜D�[Ñ!Ð!rycó—t|›d�«‚)Nz! cannot be used with isinstance()r©rr¨s rwÚ__instancecheck__z_SpecialForm.__instancecheck__ýó€Ü˜4˜&Ð AÐBÓCÐCrycó—t|›d�«‚)Nz! cannot be used with issubclass()r©rr¼s rwÚ__subclasscheck__z_SpecialForm.__subclasscheck__r=rycó&—|j||«Sr™)r©rr±s rwÚ __getitem__z_SpecialForm.__getitem__s€à�}‰}˜T :Ó.Ð.ryN)r¤r r¡rrrr$r*r-r0r5r8r<r@rõrCr¬ryrwr€r€ÝsO„Ø0€Iò'ò #ò 5ò&òò8ò"ò"òDòDðñ/óñ/ryr€)r có—eZdZd„Zy)Ú_LiteralSpecialFormcóN—t|t«s|f}|j|g|¢­ŽSr™)rtr�rrBs rwrCz_LiteralSpecialForm.__getitem__ s)€Ü˜*¤eÔ,Ø$˜ˆJ؈t�}‰}˜TÐ/ JÒ/Ð/ryN)r¤r r¡rCr¬ryrwrErEs„ó0ryrEcó(‡—eZdZˆfd„Zˆfd„ZˆxZS)Ú_AnyMetacóH•—|tur td«‚t‰|� |«S)Nz+typing.Any cannot be used with isinstance())rrÚsuperr<)rr¨Ú __class__s €rwr<z_AnyMeta.__instancecheck__s&ø€Ø ”3‰;ÜÐIÓJÐ J܉wÑ(¨Ó-Ð-rycó2•—|turyt‰|� «S)Nz typing.Any)rrJr*)rrKs €rwr*z_AnyMeta.__repr__sø€Ø ”3‰;ØÜ‰wÑÓ!Ð!ry)r¤r r¡r<r*Ú __classcell__©rKs@rwrHrHsø„ô.÷ "ð"ryrHcó"‡—eZdZdZˆfd„ZˆxZS)raWSpecial 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óH•—|tur td«‚t‰|� |«S)NzAny cannot be instantiated)rrrJÚ__new__©r¼r‘ÚkwargsrKs €rwrQz Any.__new__'s%ø€Ø ”#‰:ÜÐ8Ó9Ð 9܉w‰˜sÓ#Ð#ry)r¤r r¡rrQrMrNs@rwrrsø„ñ ÷$ð$ryr)Ú metaclasscó—t|›d�«‚)aŽSpecial type indicating functions that never return. Example:: from typing import NoReturn def stop() -> NoReturn: raise Exception('no way') NoReturn can also be used as a bottom type, a type that has no values. Starting in Python 3.11, the Never type should be used for this concept instead. Type checkers should treat the two equivalently. ú is not subscriptablerrBs rwrara-s€ô �t�fÐ1Ð2Ó 3Ð3rycó—t|›d�«‚)adThe 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 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 rVrrBs rwr]r]Bs€ô, �t�fÐ1Ð2Ó 3Ð3rycó—t|›d�«‚)asUsed to spell the type of "self" in classes. Example:: from typing import Self class Foo: def return_self(self) -> Self: ... return self This is especially useful for: - classmethods that are used as alternative constructors - annotating an `__enter__` method which returns self rVrrBs rwrhrh[s€ô" �t�fÐ1Ð2Ó 3Ð3rycó—t|›d�«‚)a Represents an arbitrary literal string. Example:: from typing import LiteralString def run_query(sql: LiteralString) -> None: ... def caller(arbitrary_string: str, literal_string: LiteralString) -> None: run_query("SELECT * FROM students") # OK run_query(literal_string) # OK run_query("SELECT * FROM " + literal_string) # OK run_query(arbitrary_string) # type checker error run_query( # type checker error f"SELECT * FROM students WHERE name = {arbitrary_string}" ) Only string literals and other LiteralStrings are compatible with LiteralString. This provides a tool to help prevent security issues such as SQL injection. rVrrBs rwr\r\os€ô0 �t�fÐ1Ð2Ó 3Ð3rycó:—t||›d�«}t||f«S)a>Special type construct to mark class variables. An annotation wrapped in ClassVar indicates that a given attribute is intended to be used as a class variable and should not be set on instances of that class. Usage:: class Starship: stats: ClassVar[dict[str, int]] = {} # class variable damage: int = 10 # instance variable ClassVar accepts only types and cannot be further subscribed. Note that ClassVar is not a class itself, and should not be used with isinstance() or issubclass(). ú accepts only single type.©r…r}©rr±rs rwrrŠó'€ô& �z d VÐ+EÐ#FÓ G€DÜ ˜ ˜wÓ 'Ð'rycó:—t||›d�«}t||f«S)aÒSpecial typing construct to indicate final names to type checkers. A final name cannot be re-assigned or overridden in a subclass. For example:: MAX_SIZE: Final = 9000 MAX_SIZE += 1 # Error reported by type checker class Connection: TIMEOUT: Final[int] = 10 class FastConnector(Connection): TIMEOUT = 1 # Error reported by type checker There is no runtime checking of these properties. r[r\r]s rwrr r^rycó‡—|dk(r td«‚t|t«s|f}dŠtˆfd„|D««}t|«}t |«dk(r|dSt |«dk(rt d«|vrt ||d ¬ «St ||«S) aÛUnion type; Union[X, Y] means either X or Y. On Python 3.10 and higher, the | operator can also be used to denote unions; X | Y means the same thing to the type checker as Union[X, Y]. To define a union, use e.g. Union[int, str]. Details: - The arguments must be types and there must be at least one. - None as an argument is a special case and is replaced by type(None). - Unions of unions are flattened, e.g.:: assert Union[Union[int, str], float] == Union[int, str, float] - Unions of a single argument vanish, e.g.:: assert Union[int] == int # The constructor actually returns int - Redundant arguments are skipped, e.g.:: assert Union[int, str, int] == Union[int, str] - When comparing unions, the argument order is ignored, e.g.:: assert Union[int, str] == Union[str, int] - You cannot subclass or instantiate a union. - You can use Optional[X] as a shorthand for Union[X, None]. r¬z Cannot take a Union of no types.z)Union[arg, ...]: each arg must be a type.c3ó6•K—|]}t|‰«–—Œy­wr™©r…©r›ràr‚s €rwr�zUnion..Úsøèø€Ð?±J¨q”{ 1 c×*±JùóƒérrŒNr©Úname)rrtr�rár�rsrÜ©rr±r‚s @rwrr¶s’ø€ð>�RÒÜÐ:Ó;Ð;Ü �j¤%Ô (Ø �]ˆ Ø 5€CÜÓ?±JÓ?Ó?€JÜ% jÓ1€JÜ ˆ:ƒ˜!ÒØ˜!‰}ÐÜ ˆ:ƒ˜!Ò¤ T£ ¨jÑ 8Ü! $¨ ¸ÔDÐDÜ ˜d JÓ /Ð/rycó—t||fS)zÎUsed from the C implementation of TypeVar. TypeVar.__or__ calls this instead of returning types.UnionType because we want to allow unions between TypeVars and strings (forward references). r2)ÚleftÚrights rwÚ _make_unionrlâs€ô ��u�Ñ ÐrycóH—t||›d�«}t|td«fS)z,Optional[X] is equivalent to Union[X, None].z requires a single type.N)r…rrs)rr±rvs rwrrës+€ô �j T FÐ*BÐ"CÓ D€CÜ �”d˜4“j�Ñ !Ð!ryc óª—t|«} td„ttt |«««D««}t ||«S#t $rYŒwxYw)aSpecial typing form to define literal types (a.k.a. value types). This form can be used to indicate to type checkers that the corresponding variable or function parameter has a value equivalent to the provided literal (or one of several literals):: def validate_simple(data: Any) -> Literal[True]: # always returns True ... MODE = Literal['r', 'rb', 'w', 'wb'] def open_helper(file: str, mode: MODE) -> str: ... open_helper('/some/path', 'r') # Passes type check open_helper('/other/path', 'typo') # Error in type checker Literal[...] cannot be subclassed. At runtime, an arbitrary value is allowed as type argument to Literal[...], but type checkers may impose restrictions. c3ó&K—|] \}}|–—Œ y­wr™r¬)r›ràÚ_s rwr�zLiteral.. sèø€Ð^Ñ)]¡  Aœ1Ñ)]ùs‚)rär�rÎrˆÚ_value_and_type_iterrrãrBs rwrrñsW€ô2)¨Ó4€Jð ÜÑ^¬´dÔ;OÐPZÓ;[Ó6\Ô)]Ó^Ó^ˆ ô   jÓ 1Ð1øô ò Ù ð ús�-AÁ AÁAcó—t|›d�«‚)a:Special form for marking type aliases. Use TypeAlias to indicate 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. rVrrBs rwrkrks€ô �t�fÐ1Ð2Ó 3Ð3rycó܇—|dk(r td«‚t|t«s|f}|ddust|dt«s td«‚dŠgˆfd„|ddD«¢|d‘­}t ||«S) acSpecial form for annotating higher-order functions. ``Concatenate`` can be used in conjunction with ``ParamSpec`` and ``Callable`` to represent a higher-order function which adds, removes or transforms the parameters of a callable. For example:: Callable[Concatenate[int, P], int] See PEP 612 for detailed information. r¬z&Cannot take a Concatenate of no types.rÂ.zMThe last parameter to Concatenate should be a ParamSpec variable or ellipsis.z/Concatenate[arg, ...]: each arg must be a type.c3ó6•K—|]}t|‰«–—Œy­wr™rbrcs €rwr�zConcatenate..;søèø€ÐA±¨A”K  3×'±ùrdN)rrtr�r r‰rhs @rwrr%s†ø€ð�RÒÜÐ@ÓAÐAÜ �j¤%Ô (Ø �]ˆ Ø �r‰N˜cÑ !¤Z° ¸2±Ä Ô%JÜð:ó;ð ;à ;€CØRÓA°¸C¸R±ÓAÐRÀ:ÈbÁ>ÑR€JÜ # D¨*Ó 5Ð5rycó:—t||›d�«}t||f«S)a§Special typing construct for marking user-defined type guard functions. ``TypeGuard`` can be 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_list(val: list[object]) -> TypeGuard[list[str]]: '''Determines whether all objects in the list are strings''' return all(isinstance(x, str) for x in val) def func1(val: list[object]): if is_str_list(val): # Type of ``val`` is narrowed to ``list[str]``. print(" ".join(val)) else: # Type of ``val`` remains as ``list[object]``. print("Not a list of strings!") 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). r[r\r]s rwrlrl?s(€ôb �z d VÐ+EÐ#FÓ G€DÜ ˜ ˜wÓ 'Ð'rycóH—eZdZdZdZd ddœd„Zdd„Zd„Zd „Zd „Z d „Z d „Z y)rz-Internal wrapper to hold a forward reference.)Ú__forward_arg__Ú__forward_code__Ú__forward_evaluated__Ú__forward_value__Ú__forward_is_argument__Ú__forward_is_class__Ú__forward_module__NF)rrcó(—t|t«std|›�«‚|jd«rd|›d�}n|} t |dd«}||_||_d|_d|_ ||_ ||_ ||_ y#t $rt d|›�«‚wxYw) Nz*Forward reference must be a string -- got Ú*Ú(z,)[0]zÚevalz/Forward reference must be an expression -- got F) rtrurÚ startswithÚcompileÚ SyntaxErrorrwrxryrzr{r|r})rrvrƒrqrrÚarg_to_compileÚcodes rwrzForwardRef.__init__|s´€Ü˜#œsÔ#ÜÐHÈÈÐPÓQÐ Qð �>‰>˜#Ô Ø    U˜^‰Nà ˆNð Yܘ>¨:°vÓ>ˆDð #ˆÔØ $ˆÔØ%*ˆÔ"Ø!%ˆÔØ'2ˆÔ$Ø$,ˆÔ!Ø"(ˆÕøôò YÜÐ OÐPSÈwÐWÓXÐ Xð Yús º A9Á9Bcól—|j|vr|S|jr||u�r|€|€ix}}n |€|}n|€|}|j�5ttj j |jd«d|«}|rQt|«t|«}}|D]6}|j}|jr||vsŒ |||<|j|d«Œ8tt|j||«d|j|j¬«}t||||||jhz¬«|_d|_|j S)NÚ__dict__z*Forward references must evaluate to types.)rƒroröT)rwryr}r°ÚsysÚmodulesÚgetrÊr¤r|Úpopr…r�rxr{rürz)rrþrÿrr÷ÚparamÚ param_nameÚtype_s rwrzForwardRef._evaluate”sG€Ø × Ñ  ?Ñ 2؈KØ×)Ò)¨W¸HÒ-DØÐ G OØ%'Ð'�™7ØÐ!Ø"‘Ø�Ø"�Ø×&Ñ&Ð2Ü"Ü—K‘K—O‘O D×$;Ñ$;¸TÓBÀJÐPXó�ñÜ$(¨£N´D¸³M˜'�Û(�EØ!&§¡�JØ×4Ò4¸ È(Ò8RØ/4˜ Ñ,ØŸ ™  J°Õ5ð )ô  Ü�T×*Ñ*¨H°gÓ>Ø<Ø ×8Ñ8Ø$(×$=Ñ$=ô ˆEô &0ØØØØØ!0°D×4HÑ4HÐ3IÑ!Iô &ˆDÔ "ð*.ˆDÔ &Ø×%Ñ%Ð%rycó.—t|t«stS|jr@|jr4|j|jk(xr|j |j k(S|j|jk(xr|j |j k(Sr™)rtrÚNotImplementedryrwrzr}r3s rwÚ__eq__zForwardRef.__eq__Âs‹€Ü˜%¤Ô,Ü!Ð !Ø × %Ò %¨%×*EÒ*EØ×(Ñ(¨E×,AÑ,AÑAòFØ×*Ñ*¨e×.EÑ.EÑEð Gà×$Ñ$¨×(=Ñ(=Ñ=òDØ×'Ñ'¨5×+CÑ+CÑCð ErycóD—t|j|jf«Sr™)Úhashrwr}r)s rwÚ__hash__zForwardRef.__hash__Ës€Ü�T×)Ñ)¨4×+BÑ+BÐCÓDÐDrycó—t||fSr™r2r3s rwr5zForwardRef.__or__Îr6rycó—t||fSr™r2r3s rwr8zForwardRef.__ror__Ñr9rycób—|j€d}nd|j›�}d|j›|›d�S)NÚz , module=z ForwardRef(Ú))r}rw)rÚ module_reprs rwr*zForwardRef.__repr__Ôs@€Ø × "Ñ "Ð *؉Kà% d×&=Ñ&=Ð%@ÐAˆKؘT×1Ñ1Ð4°[°MÀÐCÐCry©TNr™) r¤r r¡rrrrr’r•r5r8r*r¬ryrwrrts:„Ù7ð'€Ið )Àuô)ó0,&ò\EòEò"ò"óDryrr²ÚreturncóB—t|t« xr t|dd«S)NÚ#__typing_is_unpacked_typevartuple__F)rtrsr°©r²s rwÚ_is_unpacked_typevartupler¡Üs(€Ü˜AœtÓ$Ð $ò EÜ �AÐ<¸eÓ DðFrycóH—t|ttf«xs t|«Sr™)rtr r r¡r s rwÚ_is_typevar_liker£ás€Ü �aœ'¤9Ð-Ó .Ò NÔ2KÈAÓ2NÐNrycó—eZdZdZd„Zy)Ú_PickleUsingNameMixinz/Mixin enabling pickling based on self.__name__.có—|jSr™©r¤r)s rwr-z _PickleUsingNameMixin.__reduce__ès €Ø�}‰}ÐryN)r¤r r¡rr-r¬ryrwr¥r¥ås „Ù9óryr¥cóÀ—d}t||d¬«}t|t«r|jtust|t «rt |dd«rt|›d�«‚|S)Nú*Parameters to generic types must be types.T)rƒrFr{)r…rtr}r~rmr r°r)rrvr‚s rwÚ_typevar_substrªìsW€Ø 6€CÜ �c˜3¨DÔ 1€CÜ �CœÔ '¨C¯N©N¼fÑ,DÜ �CœÔ &¬7°3¸ÈÔ+Nܘ3˜%Ð=Ð>Ó?Ð?Ø €Jryc ó�—|j}|j|«}||dzdD] }t|t«sŒt d|›�«‚t |«}t |«}|}||z dz } d} d} t |«D]Q\} } t| t«rŒt| dd«}|sŒ't |«dk(sŒ6|ddusŒ>| � t d«‚| } |d} ŒS| �t|| «}t| || z dz «} n|| z|kDrt d |›d |›d |dz ›�«‚g|d|¢| g||z z¢t|||| z «‘| g|| z |z |z dz z¢||| z d¢­S) Nrez(More than one TypeVarTuple parameter in rÁrŒrÂ.z6More than one unpacked arbitrary-length tuple argumentrúToo few arguments for rºz, expected at least ) r«Úindexrtr rr�Ú enumeratersr°Úminr�)rÚaliasr‘rÍÚtypevartuple_indexr�r¾ÚplenrjrkÚvar_tuple_indexÚfillargÚkrvrÅs rwÚ_typevartuple_prepare_substr¶õsÐ€Ø × !Ñ !€FØŸ™ dÓ+ÐØÐ*¨QÑ.Ð/Ó0ˆÜ �eœ\Õ *ÜÐFÀuÀgÐNÓOÐ Oð1ô ˆt‹9€DÜ ˆv‹;€DØ €DØ Ð%Ñ %¨Ñ )€EØ€OØ€GܘD–/‰ˆˆ3ܘ#œtÕ$ܘcÐ#CÀTÓJˆGÚœ3˜w›<¨1Ó,°¸±ÀÒ1CØ"Ð.Ü#Ð$\Ó]Ð]Ø"#�Ø! !™*‘ð"ðÐ"Ü�4˜Ó)ˆÜ�E˜4 /Ñ1°AÑ5Ó6‰Ø �‰˜Ò ÜÐ0°°ð8#Ø#' &Ð(<¸TÀ!¹V¸HðFóGð Gð Ø ˆeˆtˆð à ˆ)Ð'¨$Ñ.Ñ /ð ô ˆd�4˜ ™Ð&Ó'ð ð ˆ)�T˜E‘\ DÑ(Ð+=Ñ=ÀÑAÑ Bð  ð ˆd�U‰lˆmÐ ñ  ðrycóŒ—t|ttf«rtd„|D««}|St|«st d|›�«‚|S)Nc3ó4K—|]}t|d«–—Œy­w)zExpected a type.Nrb©r›rýs rwr�z#_paramspec_subst..sèø€ÐDÁ¸1”K Ð#5×6Áùó‚zFExpected a list of types, an ellipsis, ParamSpec, or Concatenate. Got )rtrˆr�rŠr©rrvs rwÚ_paramspec_substr¼sU€Ü�#œœe�}Ô%ÜÑDÁÓDÓDˆð €Jô˜CÔ Üð:Ø:=¸ð@óAð Aà €Jrycó*—|j}|j|«}|t|«k\rtd|›�«‚t|«dk(rt |d«s |dk(sJ‚|f}|St ||t «rg|d|¢t||«‘||dzd¢­}|S)Nr¬rer)r«r­r�rrŠrtrˆr�)rr°r‘rÍÚis rwÚ_paramspec_prepare_substr¿#sª€Ø × !Ñ !€FØ� ‰ �TÓ€AØŒC�‹I‚~ÜÐ0°°Ð8Ó9Ð9ä ˆ6ƒ{�aÒ¤¨t°A©wÔ 7Ø�AŠvˆ ˆv؈wˆð €Kô �D˜‘GœTÔ "Ø7��b�q�Ð7œ5  a¡›>Ð7¨D°°1±°¨JÑ7ˆØ €KrycóÒ—t|t«s|f}td„|D««}|ttfv}|r|st d|j ›d�«‚t d„|D««st d|j›d�«‚tt|««t|«k7rÁt d|j›d�«‚|jD]}t|dd «}|€Œ|||«}Œt||t|j««g}t|j|«D]8\}}t|t«r|j|«Œ(|j!|«Œ:t|«}t#||«S) a„Parameterizes a generic class. At least, parameterizing a generic class is the *main* thing this method does. For example, for some generic class `Foo`, this is called when we do `Foo[int]` - there, with `cls=Foo` and `params=int`. However, note that this method is also called when defining generic classes in the first place with `class Foo(Generic[T]): ...`. c3ó2K—|]}t|«–—Œy­wr™©rx©r›ràs rwr�z)_generic_class_getitem..@sèø€Ð4©V¨”= ×#©VùržzParameter list to z[...] cannot be emptyc3ó2K—|]}t|«–—Œy­wr™)r£rÃs rwr�z)_generic_class_getitem..Isèø€Ð7±¨1Ô# A×&±ùržzParameters to zF[...] must all be type variables or parameter specification variables.z[...] must all be uniqueÚ__typing_prepare_subst__N)rtr�rrrr¡Úallr¤r�Úsetr«r°r¿Úzipr rÃr®r})r¼rÍÚis_generic_or_protocolr�ÚprepareÚnew_argsÚnew_args rwÚ_generic_class_getitemrÍ2sk€ô �fœeÔ $Ø�ˆä Ñ4©VÓ4Ó 4€FØ ¤W¬hÐ$7Ð7ÐááÜØ$ S×%5Ñ%5Ð$6Ð6KÐLóð ôÑ7±Ó7Ô7ÜØ  §¡ ð/8ð9ó:ð :ô Œs�6‹{Ó œs 6›{Ò *ÜØ  §¡ Ð.FÐGóIð Ið×'Ô'ˆEܘeÐ%?ÀÓFˆGØÑ"Ù   fÓ-‘ð(ô �s˜F¤C¨×(:Ñ(:Ó$;Ô<àˆÜ! #×"4Ñ"4°fÖ=‰NˆE�7ܘ%¤Ô.Ø—‘ Õ(à—‘ Õ(ð >ô �x“ˆä ˜˜fÓ %Ð%rycóÆ‡ —tt|� |i|¤Žg}d|jvrt|jv}n7t|j vxr#|j dk7xrt|«tk7}|r td«‚d|jvrÈt|j«}d}|jD]?}t|t«sŒ|jtusŒ'|� td«‚|j}ŒA|�at|«}t|«Š |‰ ksDdj!ˆ fd„|D««}dj!d„|D««} td|›d | ›d �«‚|}t#|«|_y) NÚ__orig_bases__rz!Cannot inherit from plain Genericz0Cannot inherit from Generic[...] multiple times.r—c3ó>•K—|]}|‰vsŒt|«–—Œy­wr™©ru)r›rœÚgvarsets €rwr�z)_generic_init_subclass..�søèø€Ð"M±5¨a¸AÀWÒ.‚sèø€Ð"9±5¨a¤3 q§6±5ùržzSome type variables (z) are not listed in Generic[rŸ)rJrrrˆrÏÚ __bases__r¤rsÚ_TypedDictMetarr­rtr}r~r«rÇr¥r�) r¼r‘rSÚtvarsÚerrorÚgvarsÚbaseÚtvarsetÚs_varsÚs_argsrÒs @rwÚ_generic_init_subclassrÞcslø€Ü Œ'�3Ñ)¨4Ð:°6Ò:Ø €Eؘ3Ÿ<™<Ñ'ܘ3×-Ñ-Ð-‰ä˜CŸM™MÐ)ò0Ø—L‘L JÑ.ò0䘓I¤Ñ/ð ñ ÜÐ;Ó<Ð<ؘ3Ÿ<™<Ñ'Ü# C×$6Ñ$6Ó7ˆð ˆØ×&Ô&ˆDܘ4¤Õ/Ø—O‘O¤wÒ.ØÐ$Ü#ØJóLðLà×+Ñ+‘ð 'ð Рܘ%“jˆGܘ%“jˆGؘgÒ%ØŸ™Ó"M±5Ó"MÓM�ØŸ™Ñ"9±5Ó"9Ó9�ÜÐ"7¸°xð@:Ø:@¸Àð!DóEðEàˆEܘu›€CÕrycóJ—|jd«xr|jd«S)NÚ__)r‚Úendswith)Úattrs rwÚ _is_dunderrã‰s€Ø �?‰?˜4Ó Ò 8 T§]¡]°4Ó%8Ð8rycóX‡—eZdZdZdddœd„Zd„Zd„Zd„Zˆfd „Zd „Z d „Z ˆfd „Z ˆxZ S) Ú_BaseGenericAliasa´The central part of the internal API. This represents a generic version of type 'origin' with type arguments 'params'. There are two kind of these aliases: user defined and special. The special ones are wrappers around builtin collections and ABCs in collections.abc. These must have 'name' always set. If 'inst' is False, then the alias can't be instantiated; this is used by e.g. typing.List and typing.Dict. TN©Úinstrgcó<—||_||_||_d|_yr™)Ú_instrr~r)rÚoriginrçrgs rwrz_BaseGenericAlias.__init__–s€ØˆŒ ؈Œ Ø ˆŒØˆ�rycóÒ—|js0td|j›d|jj›d�«‚|j|i|¤Ž} ||_|S#t $rY|SwxYw)NzType z cannot be instantiated; use z () instead)rérrr~r¤Ú__orig_class__Ú Exception)rr‘rSÚresults rwr0z_BaseGenericAlias.__call__œs�€Ø�zŠzܘe D§J¡J <ð0#Ø#'§?¡?×#;Ñ#;Ð"<¸JðHóIð Ià �—‘ $Ð1¨&Ñ1ˆð Ø$(ˆFÔ !ð ˆ øôò Ø Øˆ ð úsÁAÁ A&Á%A&có,—g}|j|vr|j|j«|j|«}||dzdD].}t|t«st |t «sŒ$t|«S|jt «t|«S)Nre)r~r®r­rtråÚ issubclassrr�)rr#Úresr¾Úbs rwr$z!_BaseGenericAlias.__mro_entries__©s€€ØˆØ �?‰? %Ñ 'Ø �J‰J�t—‘Ô 'Ø �K‰K˜Ó ˆØ�q˜‘s�t“ˆAܘ!Ô.Ô/´:¸aÄÕ3IØô�S‹zÐð ð �J‰J”wÔ Ü�S‹zÐrycóÆ—|dvr$|jxs|jjSd|jvr!t |«st |j|«St |«‚)N>r¤r¡r~)rr~r¤rˆrãr°r)rrâs rwrz_BaseGenericAlias.__getattr__µsU€Ø Ð/Ñ /Ø—:‘:Ò9 §¡×!9Ñ!9Ð 9ð ˜4Ÿ=™=Ñ (´¸DÔ1Aܘ4Ÿ?™?¨DÓ1Ð 1ܘTÓ"Ð"rycót•—t|«s|dvrt‰|� ||«yt|j||«y)N>rérÚ_nparams)rãrJÚ __setattr__Úsetattrr~)rrâÚvalrKs €rwröz_BaseGenericAlias.__setattr__¿s2ø€Ü �dÔ ˜tÐ'EÑEÜ ‰GÑ   cÕ *ä �D—O‘O T¨3Õ /rycó6—|jt|««Sr™)r@rsr;s rwr<z#_BaseGenericAlias.__instancecheck__Ås€Ø×%Ñ%¤d¨3£iÓ0Ð0rycó—td«‚)NzBSubscripted generics cannot be used with class and instance checksrr?s rwr@z#_BaseGenericAlias.__subclasscheck__Ès€Üð5ó6ð 6ryc ó®•—ttt‰|� «t |j «D�cgc]}t |«rŒ|‘Œc}z««Scc}wr™)rˆrÇrJÚ__dir__Údirr~rã©rrârKs €rwrüz_BaseGenericAlias.__dir__ÌsPø€Ü”Cœ™™Ó)Ü$'¨¯©Ô$8ÓQÑ$8˜DÄ È4Õ@P’4Ð$8ÑQñRóSóTð TùÚQs °AÁA) r¤r r¡rrr0r$rrör<r@rürMrNs@rwråråŒs>ø„ñð(,°$ôò ò ò#ô0ò 1ò6÷TðTryråcó|‡—eZdZdddœˆfd„ Zd„Zd„Zd„Zd„Zed „«Z d „Z d „Z d „Z d „Z d„Zˆfd„Zd„ZˆxZS)r}TNræcóÆ•—t‰|�|||¬«t|t«s|f}td„|D««|_t |«|_|s|j|_yy)Nræc3ó4K—|]}|turdn|–—Œy­w).N)Ú_TypingEllipsisr¹s rwr�z)_GenericAlias.__init__..ùs'èø€ð/Ù)- Að&'¬/Ñ%9™cØó Ù)-ùrº)rJrrtr�rÞr­r«r )rrêr‘rçrgrKs €rwrz_GenericAlias.__init__õscø€Ü ‰Ñ˜ d°ÐÔ6ܘ$¤Ô&Ø�7ˆDÜñ/Ù)-ó/ó/ˆŒ ä1°$Ó7ˆÔÙØ$×/Ñ/ˆD�Oðrycó–—t|t«stS|j|jk(xr|j|jk(Sr™)rtr}r‘r~rÞr3s rwr’z_GenericAlias.__eq__ÿs>€Ü˜%¤Ô/Ü!Ð !Ø—‘ 5×#3Ñ#3Ñ3ò4Ø—M‘M U§^¡^Ñ3ð 5rycóD—t|j|jf«Sr™)r”r~rÞr)s rwr•z_GenericAlias.__hash__s€Ü�T—_‘_ d§m¡mÐ4Ó5Ð5rycó—t||fSr™r2©rrks rwr5z_GenericAlias.__or__r6rycó—t||fSr™r2©rrjs rwr8z_GenericAlias.__ror__ ó€Ü�T˜4�ZÑ Ð rycó*—|jttfvrtd|›�«‚|jst|›d�«‚t |t «s|f}t d„|D««}t|«}|j|«}|j|«}|S)Nz%Cannot subscript already-subscripted rµc3ó2K—|]}t|«–—Œy­wr™rÂrÃs rwr�z,_GenericAlias.__getitem__..(sèø€Ð4©t¨!”] 1×%©tùrž) r~rrrr«rtr�rÆÚ_determine_new_argsr)rr‘rËÚrs rwrCz_GenericAlias.__getitem__s”€ð" �?‰?œw¬Ð1Ñ 1äÐCÀDÀ6ÐJÓKÐ KØ×"Ò"ܘt˜fÐ$;Ð<Ó=Ð =ô˜$¤Ô&Ø�7ˆDÜÑ4©tÓ4Ó4ˆÜ˜DÓ!ˆØ×+Ñ+¨DÓ1ˆØ �N‰N˜8Ó $ˆØˆryc ó@—|j}|D]}t|dd«}|€Œ|||«}Œt|«}t|«}||k7rtd||kDrdnd›d|›d|›d|›�«‚t t ||««}t |j|j|««S)NrÅr¶r·r¸r¹rºr») r«r°r�rrÊrÈr�Ú_make_substitutionrÞ)rr‘rÍr�rÊr¾r²Únew_arg_by_params rwr z!_GenericAlias._determine_new_args.sÀ€ð×$Ñ$ˆãˆEܘeÐ%?ÀÓFˆGØÑ"Ù˜t TÓ*‘ðô�4‹yˆÜ�6‹{ˆØ �4Š<ܘd¨T°Dª[¡6¸eÐ"DÀOÐTXÐSYðZ'Ø'+ f¨K¸°vð?ó@ð @䤠F¨DÓ 1Ó2ÐÜ�T×,Ñ,¨T¯]©]Бä# GÐ-=¸rÓB� Ù Ø%‘Gà �GÛ&˜Ü% a¬Ô6Ø#ŸN™NÐ+;¸AÑ+>Õ?à#ŸN™NÐ+;¸AÑ+>Õ?ð 'ð &¤e¨G£nÑ5�Gà�‰¤+§/¡/×":Ñ":Ò:¼zÈ'ÔSXÔ?Yð—‘ Õ(Ü*¨7Ô3ð—‘ Ö(ܘG¤UÔ+ð—‘ܘ$×1Ñ1°'Ð;KÓLÓMöð—‘ Ö(ðqðrˆrycóh—|j|j||j|j¬«S©N)rgrç)rKr~rré©rr‘s rwrz_GenericAlias.copy_with‰s%€Ø�~‰~˜dŸo™o¨t¸$¿*¹*È4Ï:É:ˆ~ÓVÐVrycó—|jrd|jz}nt|j«}|jr3dj |jD�cgc] }t|«‘Œc}«}nd}|›d|›d�Scc}w)Nr'r—z()r–rŸ)rršr~rÞr¥)rrgrýr‘s rwr*z_GenericAlias.__repr__Œsq€Ø �:Š:ؘtŸz™zÑ)‰Dä˜dŸo™oÓ.ˆDØ �=Š=Ø—9‘9°T·]²]ÓC±]°œj¨�m°]ÑCÓD‰DðˆDØ��q˜˜˜aÐ Ð ùò DsÁA;cóþ—|jrt«|j}n |j}t|j«}t |«dk(rt |dt«s|\}tj||ffS©Nrer) rÚglobalsr~r�rÞr�rtrr)rrêr‘s rwr-z_GenericAlias.__reduce__˜sd€Ø �:Š:Ü“Y˜tŸz™zÑ*‰Fà—_‘_ˆFÜ�T—]‘]Ó#ˆÜ ˆt‹9˜Š>¤*¨T°!©W´eÔ"<؉EˆDÜ×Ñ &¨$ Ð/Ð/rycóD•—t|jt«rtd|›�«‚|jrt ‰|�|«S|jtur>t|vry|j|«}||dzdD]}t|t«sŒ||usŒy|jfS)Nr!r¬re) rtr~r€rrrJr$rrr­rå)rr#r¾ròrKs €rwr$z_GenericAlias.__mro_entries__¢s—ø€Ü �d—o‘o¤|Ô 4ÜÐ.¨t¨hÐ7Ó8Ð 8à �:Š:Ü‘7Ñ*¨5Ó1Ð 1Ø �?‰?œgÑ %ܘ5Ñ ØØ— ‘ ˜DÓ!ˆAؘ1˜Q™3˜4“[�ܘaÔ!2Õ3¸Àº Ùð!ð—‘Ð!Ð!ryc#ó"K—t|–—y­wr™)rmr)s rwrz_GenericAlias.__iter__±sèø€Ü�T‰lÓùs‚ )r¤r r¡rr’r•r5r8rõrCr rrr*r-r$rrMrNs@rwr}r}Üs]ø„ð2.2¸ö0ò5ò 6ò"ò!ðñóðò>Oò:<ò|Wò !ò0ô "öryr}có^‡—eZdZdddœˆfd„ Zed„«Zd„Zd„Zˆfd„Zd „Z d „Z d „Z ˆxZ S) Ú_SpecialGenericAliasTNræcóâ•—|€ |j}t‰|� |||¬«||_|jdk(rd|j ›d�|_yd|j›d|j ›d�|_y)Nrær”zA generic version of r|)r¤rJrrõr r¡r)rrêÚnparamsrçrgrKs €rwrz_SpecialGenericAlias.__init__ºsvø€Ø ˆ<Ø—?‘?ˆDÜ ‰Ñ˜ d°ÐÔ6؈Œ Ø × Ñ   Ò *Ø2°6×3FÑ3FÐ2GÀqÐIˆD�Là2°6×3DÑ3DÐ2EÀQÀv×GZÑGZÐF[Ð[\Ð]ˆD�Lryc󦇗t|t«s|f}dŠtˆfd„|D««}t|||j«|j |«S)Nr©c3ó6•K—|]}t|‰«–—Œy­wr™rbrcs €rwr�z3_SpecialGenericAlias.__getitem__..Éóøèø€Ð;±F¨q”{ 1 c×*±Fùrd)rtr�r¿rõr©rrÍr‚s @rwrCz _SpecialGenericAlias.__getitem__ÄsHø€ä˜&¤%Ô(Ø�YˆFØ:ˆÜÓ;±FÓ;Ó;ˆÜ�t˜V T§]¡]Ô3Ø�~‰~˜fÓ%Ð%rycó\—t|j||j|j¬«Sr)r}r~rré©rrÍs rwrz_SpecialGenericAlias.copy_withÍs$€Ü˜TŸ_™_¨fØ"&§*¡*°4·:±:ô?ð ?rycó —d|jzSr&r(r)s rwr*z_SpecialGenericAlias.__repr__Ñr+rycóΕ—t|t«r t|j|j«St|t«st||j«St ‰|�|«Sr™)rtrrðr~r}rJr@)rr¼rKs €rwr@z&_SpecialGenericAlias.__subclasscheck__ÔsNø€Ü �cÔ/Ô 0ܘcŸn™n¨d¯o©oÓ>Ð >ܘ#œ}Ô-ܘc 4§?¡?Ó3Ð 3܉wÑ(¨Ó-Ð-rycó—|jSr™r(r)s rwr-z_SpecialGenericAlias.__reduce__Ûr.rycó—t||fSr™r2rs rwr5z_SpecialGenericAlias.__or__Þr6rycó—t||fSr™r2rs rwr8z_SpecialGenericAlias.__ror__ár ry) r¤r r¡rrõrCrr*r@r-r5r8rMrNs@rwrr¹s@ø„Ø04¸4ö^ðñ&óð&ò?ò&ô.òò"ö!ryrcó0‡—eZdZdddœˆfd„ Zˆfd„ZˆxZS)Ú_DeprecatedGenericAliasTNræcó:•—t‰|�||||¬«||_y)Nræ)rJrÚ_removal_version)rrêr!Úremoval_versionrçrgrKs €rwrz _DeprecatedGenericAlias.__init__æs#ø€ô ‰Ñ˜ ¨t¸$ÐÔ?Ø /ˆÕryc󘕗ddl}|j|j›d|j›�|j¬«t ‰|�|«S)Nrr|)rÓ)ÚwarningsÚ _deprecatedr rr0rJr<)rrçr3rKs €rwr<z)_DeprecatedGenericAlias.__instancecheck__ìsGø€Û؈×ÑØ�‰Ð˜q §¡  Ð -°d×6KÑ6Kõ ô‰wÑ(¨Ó.Ð.ry)r¤r r¡rr<rMrNs@rwr.r.åsø„à8<À4ö0÷ /ð/ryr.có$‡—eZdZˆfd„Zd„ZˆxZS)Ú_CallableGenericAliasc ó•—|jdk(sJ‚|j}t|«dk(rt|d«rt‰|�«Sddj |ddD�cgc] }t|«‘Œc}«›dt|d«›d�Scc}w) NrrŒrztyping.Callable[[r—rÂz], rŸ)rrÞr�rŠrJr*r¥rš)rr‘rýrKs €rwr*z_CallableGenericAlias.__repr__õs�ø€Ø�z‰z˜ZÒ'Ð'Ð'Ø�}‰}ˆÜ ˆt‹9˜Š>œn¨T°!©WÔ5Ü‘7Ñ#Ó%Ð %ðØ—Y‘Y°t¸C¸R±yÓA±y°!¤ ¨1¥ °yÑAÓBÐCÀ3ܘd 2™hÓ'Ð(¨ð+ð ,ùÚAsÁB có¨—|j}t|«dk(rt|d«st|dd«|df}tj t |ffS)NrŒrrÂ)rÞr�rŠrˆrrrrs rwr-z _CallableGenericAlias.__reduce__þsO€Ø�}‰}ˆÜ�D“ ˜Q’¤>°$°q±'Ô#:ܘ˜S˜b˜ “? D¨¡HÐ,ˆDÜ×Ѥ(¨DÐ!1Ð1Ð1ry)r¤r r¡r*r-rMrNs@rwr6r6ôs ø„ô,ö2ryr6có(—eZdZd„Zd„Zed„«Zy)Ú _CallableTypecó\—t|j||j|j¬«Sr)r6r~rrér's rwrz_CallableType.copy_withs&€Ü$ T§_¡_°fØ*.¯*©*¸4¿:¹:ôGð GrycóÄ—t|t«rt|«dk7r td«‚|\}}t|t«rt|«|f}n||f}|j |«S)NrŒz6Callable must be used as Callable[[arg, ...], result].)rtr�r�rrˆÚ__getitem_inner__)rrÍr‘rîs rwrCz_CallableType.__getitem__ sf€Ü˜&¤%Ô(¬C°«K¸1Ò,<Üð<ó=ð =à‰ ˆˆfô �dœDÔ !ܘD“k 6Ð*‰Fà˜F�^ˆFØ×%Ñ% fÓ-Ð-rycóÞ—|\}}d}t||«}|tur|jt|f«St |t «s|f}t d„|D««}||fz}|j|«S)Nz.Callable[args, result]: result must be a type.c3ó2K—|]}t|«–—Œy­wr™rÂrús rwr�z2_CallableType.__getitem_inner__..!sèø€Ð8±4¨C”] 3×'±4ùrž)r…ÚEllipsisrrrtr�)rrÍr‘rîr‚s rwr=z_CallableType.__getitem_inner__st€à‰ ˆˆfØ>ˆÜ˜V SÓ)ˆØ ”8Ñ Ø—>‘>¤?°FÐ";Ó<Ð <ܘ$¤Ô&Ø�7ˆDÜÑ8±4Ó8Ó8ˆØ˜˜ Ñ!ˆØ�~‰~˜fÓ%Ð%ryN)r¤r r¡rrCrõr=r¬ryrwr:r:s!„òGò .ðñ &óñ &ryr:có—eZdZed„«Zy)Ú _TupleTypecó‡—t|t«s|f}t|«dk\r:|ddur3dŠtˆfd„|ddD««}|jg|¢t‘­«SdŠtˆfd„|D««}|j|«S)NrŒrÂ.z Tuple[t, ...]: t must be a type.c3ó6•K—|]}t|‰«–—Œy­wr™rbrcs €rwr�z)_TupleType.__getitem__..-søèø€ÐD¹ °1œ; q¨#×.¹ ùrdz*Tuple[t0, t1, ...]: each t must be a type.c3ó6•K—|]}t|‰«–—Œy­wr™rbrcs €rwr�z)_TupleType.__getitem__..0r$rd)rtr�r�rrr%s @rwrCz_TupleType.__getitem__'s„ø€ä˜&¤%Ô(Ø�YˆFÜ ˆv‹;˜!Ò   r¡ ¨cÑ 1Ø4ˆCÜÓD¸¸sÀ¹ ÓDÓDˆFØ—>‘>Ð"< FÐ"<¬OÑ"<Ó=Ð =Ø:ˆÜÓ;±FÓ;Ó;ˆØ�~‰~˜fÓ%Ð%ryN)r¤r r¡rõrCr¬ryrwrBrB&s„Øñ &óñ &ryrBcóF‡—eZdZd„Zd„Zd„Zˆfd„Zd„Zd„Zˆfd„Z ˆxZ S)rÜcó—t|Sr™r2r's rwrz_UnionGenericAlias.copy_with5s €Ü�V‰}Ðrycó—t|ttjf«stS t |j «t |j «k(S#t$r#t|j |j «cYSwxYwr™) rtrÜr¢rÝr‘rÇrÞrrÚr3s rwr’z_UnionGenericAlias.__eq__8se€Ü˜%Ô"4´e·o±oÐ!FÔGÜ!Ð !ð JÜ�t—}‘}Ó%¬¨U¯^©^Ó)<Ñ<Ð <øÜò JÜ*¨4¯=©=¸%¿.¹.ÓIÒ Ið Jús¨*AÁ)A?Á>A?có>—tt|j««Sr™)r”Ú frozensetrÞr)s rwr•z_UnionGenericAlias.__hash__@s€Ü”I˜dŸm™mÓ,Ó-Ð-rycóÜ•—|j}t|«dk(rD|dtd«urdt|d«›d�S|dtd«urdt|d«›d�St‰|�«S)NrŒrztyping.Optional[rerŸ)rÞr�rsršrJr*©rr‘rKs €rwr*z_UnionGenericAlias.__repr__Cswø€Ø�}‰}ˆÜ ˆt‹9˜Š>Ø�A‰wœ$˜t›*Ñ$Ø)¬*°T¸!±WÓ*=Ð)>¸aÐ@Ð@Ø�a‘œD ›JÑ&Ø)¬*°T¸!±WÓ*=Ð)>¸aÐ@Ð@܉wÑÓ!Ð!rycóB—|jD]}t||«sŒyy©NTF)rÞrt)rr¨rvs rwr<z$_UnionGenericAlias.__instancecheck__Ló"€Ø—=”=ˆCܘ#˜sÕ#Ùð!ðrycóB—|jD]}t||«sŒyyrN)rÞrð)rr¼rvs rwr@z$_UnionGenericAlias.__subclasscheck__RrOrycó@•—t‰|�«\}\}}|t|ffSr™)rJr-r)rrìrêr‘rKs €rwr-z_UnionGenericAlias.__reduce__Xs(ø€Ü$™wÑ1Ó3ш‰nˆv�tØ”e˜T�]Ð"Ð"ry) r¤r r¡rr’r•r*r<r@r-rMrNs@rwrÜrÜ4s,ø„òòJò.ô"òò ÷ #ð#ryrÜcó—d„|D«S)Nc3ó6K—|]}|t|«f–—Œy­wr™)rsrÃs rwr�z'_value_and_type_iter..^sèø€Ð -¡*˜QˆQ”�Q“ŒL¡*ùs‚r¬)r±s rwrqrq]s €Ù -¡*Ó -Ð-rycó—eZdZd„Zd„Zy)rãcó¨—t|t«stStt |j ««tt |j ««k(Sr™)rtrãr‘rÇrqrÞr3s rwr’z_LiteralGenericAlias.__eq__bs?€Ü˜%Ô!5Ô6Ü!Ð !äÔ'¨¯ © Ó6Ó7¼3Ô?SÐTY×TbÑTbÓ?cÓ;dÑdÐdrycóP—ttt|j«««Sr™)r”rJrqrÞr)s rwr•z_LiteralGenericAlias.__hash__hs€Ü”IÔ2°4·=±=ÓAÓBÓCÐCryN)r¤r r¡r’r•r¬ryrwrãrãas„òeó Dryrãcó‡—eZdZˆfd„ZˆxZS)r‰có•—t|dttf«r g|dd¢|d¢­St|dt«rg|dd¢|dj¢­}t ‰|�|«S)NrÂ)rtrˆr�r‰rÞrJr)rrÍrKs €rwrz"_ConcatenateGenericAlias.copy_withmsmø€Ü �f˜R‘j¤4¬ -Ô 0Ø.�V˜C˜R�[Ð. 6¨"¡:Ñ.Ð .Ü �f˜R‘jÔ":Ô ;Ø9�v˜c˜r�{Ð9 V¨B¡Z×%8Ñ%8Ñ9ˆF܉wÑ  Ó(Ð(ry)r¤r r¡rrMrNs@rwr‰r‰ls ø„÷)ð)ryr‰có<—t||›d�«}t||f¬«S)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]): ... And from Python 3.12, it can be done using built-in syntax for generics:: Foo[*tuple[int, str]] class Bar[*Ts]: ... The operator can also be used along with a `TypedDict` to annotate `**kwargs` in a function signature:: 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 PEPs 646 and 692. r[)rêr‘)r…Ú_UnpackGenericAliasr]s rwrmrmus(€ô^ �z d VÐ+EÐ#FÓ G€DÜ  d°$°Ô 9Ð9rycóD‡—eZdZd„Zˆfd„Zed„«Zed„«ZˆxZS)rZcó:—dt|jd«›d�S)Nztyping.Unpack[rrŸ)ršrÞr)s rwr*z_UnpackGenericAlias.__repr__©s"€ð ¤ ¨4¯=©=¸Ñ+;Ó <Ð=¸QÐ?Ð?rycó>•—|jr|St‰|� |«Sr™)rŸrJrCrLs €rwrCz_UnpackGenericAlias.__getitem__®s!ø€Ø × 3Ò 3؈K܉wÑ" 4Ó(Ð(rycó—|jtusJ‚t|j«dk(sJ‚|j\}t |t t jf«r)|jtur td«‚|jSy)Nrez*Unpack[...] must be used with a tuple type) r~rmr�rÞrtr}r¢r r�rr»s rwrÁz2_UnpackGenericAlias.__typing_unpacked_tuple_args__³sp€à�‰¤&Ñ(Ð(Ð(Ü�4—=‘=Ó! QÒ&Ð&Ð&Ø�}‰}‰ˆÜ �cœM¬5×+=Ñ+=Ð>Ô ?Ø�~‰~¤UÑ*ÜÐ LÓMÐMØ—<‘<Ð Ørycó˜—|jtusJ‚t|j«dk(sJ‚t |jdt «Sr)r~rmr�rÞrtr r)s rwrŸz7_UnpackGenericAlias.__typing_is_unpacked_typevartuple__¾sA€à�‰¤&Ñ(Ð(Ð(Ü�4—=‘=Ó! QÒ&Ð&Ð&ܘ$Ÿ-™-¨Ñ*¬LÓ9Ð9ry) r¤r r¡r*rCÚpropertyrÁrŸrMrNs@rwrZrZ¨s6ø„ò@ô )ð ñóððñ:óô:ryrZcó—eZdZdZy)rz(Internal placeholder for ... (ellipsis).N)r¤r r¡rr¬ryrwrrÅs„Ú2ryr>Ú _is_protocolrÏrìr«Ú__type_params__Ú__protocol_attrs__Ú_is_runtime_protocolÚ__non_callable_proto_members__> rrQrˆrrr r Ú__annotations__Ú__subclasshook__Ú__class_getitem__Ú__abstractmethods__Ú_MutableMapping__markercóþ—t«}|jddD]`}|jdvrŒt|di«}g|j¢|¢­D].}|j d«rŒ|t vsŒ|j|«Œ0Œb|S)zÓCollect protocol members from a protocol class objects. This includes names actually defined in the class dictionary, as well as names that appear in annotations. Special names (above) are skipped. NrÂ>rrrgÚ_abc_)rÇÚ__mro__r¤r°rˆr‚ÚEXCLUDED_ATTRIBUTESÚadd)r¼ÚattrsrÚÚ annotationsrâs rwÚ_get_protocol_attrsrsÙs}€ô ‹E€EØ— ‘ ˜C˜RÓ ˆØ �=‰=Ð3Ñ 3Ø Ü˜dÐ$5°rÓ:ˆ Ø2�d—m‘mÐ2 kÔ2ˆDØ—?‘? 7Õ+°ÔNrŽrî)r~)r|s rwÚ_allow_reckless_class_checksr€s€ô �5‹>Ð7Ð 7Ð7ry) rr0r%r&r2r1r#r.r!r4r7ÚBufferÚAbstractContextManagerÚAbstractAsyncContextManager)zcollections.abcÚ contextlibcó—ddlm}|S)Nr©Úgetattr_static)Úinspectr‡r†s rwÚ_lazy_load_getattr_staticr‰%s €õ'Ø Ðrycó(—t|jffSr™)rr~)Úpsargss rwÚ_pickle_psargsrŒ/s€Ü ˜6×,Ñ,Ð.Ð .Ð.rycó(—t|jffSr™)rr~)Úpskwargss rwÚ_pickle_pskwargsr�4s€Ü ˜X×0Ñ0Ð2Ð 2Ð2rycó<‡—eZdZˆfd„Zˆfd„Zˆfd„Zˆfd„ZˆxZS)Ú _ProtocolMetac ó6•—|dk(r |tfk(rnvt|vrn|D]i}|tthvrŒ|jtj |j g«vrŒ?t|t«rt|dd«rŒ]td|›�«‚t‰|�,||||fi|¤ŽS)NrrbFz5Protocols can only inherit from other protocols, got ) rrrvr¤Ú_PROTO_ALLOWLISTr‹r rðr°rrJrQ)Úmclsrgr#Ú namespacerSrÚrKs €rwrQz_ProtocolMeta.__new__?s¤ø€Ø �:Ò  %¬G¨:Ò"5Ø Ü ˜Ñ Û�àœV¤WÐ-Ò-Ø—}‘}Ô(8×(<Ñ(<¸T¿_¹_ÈbÓ(QÒQä" 4¬Ô1Ü# D¨.¸%Õ@ô$ðØ#˜hð(óððô‰w‰˜t T¨5°)ÑF¸vÑFÐFrycó`•—t‰|�|i|¤Žt|dd«rt|«|_yy)NrbF)rJrr°rsrdrRs €rwrz_ProtocolMeta.__init__Rs3ø€Ü ‰Ñ˜$Ð) &Ò)Ü �3˜¨Ô .Ü%8¸Ó%=ˆCÕ "ð /rycób•—|turtj||«St|dd«rut «skt |t«s t d«‚t|dd«s t d«‚|jr,|jjd«tur t d«‚t‰|� |«S)NrbFz"issubclass() arg 1 must be a classreúLInstance and class checks can only be used with @runtime_checkable protocolsrhzÜð3óðð ×2Ò2Ø—L‘L×$Ñ$Ð%7Ó8¼KÑGäØRóðô‰wÑ(¨Ó/Ð/rycón•—|turtj||«St|dd«st‰|� |«St|dd«st «s t d«‚t‰|� |«ryt«}|jD]} |||«}|�Œ||jvsŒyy#t$rYywxYw)NrbFrer˜T) rrsr<r°rJr€rr‰rdrrf)r¼Úinstancer‡rârørKs €rwr<z_ProtocolMeta.__instancecheck__ps×ø€ð ”(‰?Ü×)Ñ)¨#¨xÓ8Ð 8Ü�s˜N¨EÔ2ä‘7Ñ,¨XÓ6Ð 6ô˜Ð3°UÔ;Ü,Ô.äð<ó=ð =ô ‰7Ñ $ XÔ .Øä2Ó4ˆØ×*Ô*ˆDð Ù$ X¨tÓ4�ð‰{˜t¨3×+MÑ+MÒMØðð+ðøô "ò Ùðð ús B'Â' B4Â3B4)r¤r r¡rQrr@r<rMrNs@rwr‘r‘<sø„ôGô&>ô 0÷2ðryr‘cóš—|jjdd«stS|jD]š}|jD]‚}||jvr|j|€ tccSŒ;t |di«}t |tjj«sŒ^||vsŒct|t«sŒtt |dd«sŒ‚Œ“tcSy)NrbFrgT) rˆr‹r‘rdrnr°rtr�rŽr(rðr)r¼r4rârÚrrs rwr™r™’s±€à �<‰<× Ñ ˜N¨EÔ 2ÜÐà×&Ô&ˆØ—M”MˆDà�t—}‘}Ñ$Ø—=‘= Ñ&Ð.Ü)Ô)Ùô" $Ð(9¸2Ó>ˆKܘ;¬ ¯©×(?Ñ(?Õ@ؘKÒ'ܘu¤gÕ.´7¸5À.ÐRWÕ3XÙð"ô"Ò !ð'ð rycó.‡—eZdZdZdZdZdZˆfd„ZˆxZS)ra_Base class for protocol classes. Protocol classes are defined as:: class Proto(Protocol): def meth(self) -> int: ... Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing). For example:: class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:: class GenProto[T](Protocol): def meth(self) -> T: ... r¬TFcó:•—t‰|�|i|¤Ž|jjdd«s!t d„|j D««|_d|jvr t|_|j r)|jtjur t|_ yyy)NrbFc3ó,K—|] }|tu–—Œy­wr™©r©r›ròs rwr�z-Protocol.__init_subclass__..Ôsèø€Ð"H¹-°Q 1¬¤=¹-ùs‚rh) rJrrˆr‹ÚanyrÕrbr™rhrrrurRs €rwrzProtocol.__init_subclass__Ïs„ø€Ü ‰Ñ! 4Ð2¨6Ò2ð�|‰|×Ñ °Ô6Ü"Ñ"H¸#¿-º-Ó"HÓHˆCÔ ð  S§\¡\Ñ 1Ü#.ˆCÔ ð × Ò  § ¡ ´×0AÑ0AÑ AÜ3ˆC�Lð!BÐ ry) r¤r r¡rrrbrerrMrNs@rwrrªs%ø„ñð@€IØ€LØ Ð÷ 4ð 4ryrcóP‡—eZdZdZˆfd„Zd„Zd„Zd„Zd„Zd„Z ˆfd„Z d „Z ˆxZ S) Ú_AnnotatedAliasa„Runtime 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. The metadata itself is stored in a '__metadata__' attribute as a tuple. cóŽ•—t|t«r|j|z}|j}t‰|�||d¬«||_y)Nrrf)rtr¤Ú __metadata__r~rJr)rrêÚmetadatarKs €rwrz_AnnotatedAlias.__init__êsDø€Ü �fœoÔ .Ø×*Ñ*¨XÑ5ˆHØ×&Ñ&ˆFÜ ‰Ñ˜ ¨kÐÔ:Ø$ˆÕrycóX—t|«dk(sJ‚|d}t||j«Sr)r�r¤r¦)rrÍÚnew_types rwrz_AnnotatedAlias.copy_withñs0€Ü�6‹{˜aÒÐÐØ˜!‘9ˆÜ˜x¨×):Ñ):Ó;Ð;rycóŒ—djt|j«djd„|jD«««S)Nztyping.Annotated[{}, {}]r—c3ó2K—|]}t|«–—Œy­wr™)r¦r¹s rwr�z+_AnnotatedAlias.__repr__..ùsèø€Ð9Ñ'8 !”d˜1—gÑ'8ùrž)Úformatršr~r¥r¦r)s rwr*z_AnnotatedAlias.__repr__ös9€Ø)×0Ñ0Ü �t—‘Ó 'Ø �I‰IÑ9 t×'8Ò'8Ó9Ó 9ó ð rycób—tjt|jf|jzffSr™)rrrr~r¦r)s rwr-z_AnnotatedAlias.__reduce__üs1€Ü×ÑÜ ˜Ÿ™Ð)¨D×,=Ñ,=Ñ=ð" ð ð rycó–—t|t«stS|j|jk(xr|j|jk(Sr™)rtr¤r‘r~r¦r3s rwr’z_AnnotatedAlias.__eq__sB€Ü˜%¤Ô1Ü!Ð !Ø—‘ 5×#3Ñ#3Ñ3ò<Ø×%Ñ%¨×);Ñ);Ñ;ð =rycóD—t|j|jf«Sr™)r”r~r¦r)s rwr•z_AnnotatedAlias.__hash__s€Ü�T—_‘_ d×&7Ñ&7Ð8Ó9Ð9rycó,•—|dvryt‰|�|«S)N>r¤r¡r)rJrrþs €rwrz_AnnotatedAlias.__getattr__ sø€Ø Ð/Ñ /ØÜ‰wÑ" 4Ó(Ð(rycó—|jfSr™)r~r"s rwr$z_AnnotatedAlias.__mro_entries__s€Ø—‘Ð!Ð!ry) r¤r r¡rrrr*r-r’r•rr$rMrNs@rwr¤r¤ßs0ø„ñô%ò<ò  ò  ò =ò :ô)ö "ryr¤cóD—eZdZdZdZd„Zd„Zed¬«d„«Zd„Z y ) ra+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. Details: - It's an error to call `Annotated` with less than two arguments. - Access the metadata via the ``__metadata__`` attribute:: assert Annotated[int, '$'].__metadata__ == ('$',) - Nested Annotated types are flattened:: assert Annotated[Annotated[T, Ann1, Ann2], Ann3] == Annotated[T, Ann1, Ann2, Ann3] - Instantiating an annotated type is equivalent to instantiating the underlying type:: assert Annotated[C, Ann1](5) == C(5) - Annotated can be used as a generic type alias:: type Optimized[T] = Annotated[T, runtime.Optimize()] # type checker will treat Optimized[int] # as equivalent to Annotated[int, runtime.Optimize()] type OptimizedList[T] = Annotated[list[T], runtime.Optimize()] # type checker will treat OptimizedList[int] # as equivalent to Annotated[list[int], runtime.Optimize()] - Annotated cannot be used with an unpacked TypeVarTuple:: type Variadic[*Ts] = Annotated[*Ts, Ann1] # NOT valid This would be equivalent to:: Annotated[T1, T2, T3, ..., Ann1] where T1, T2 etc. are TypeVars, which would be invalid, because only one type should be passed to Annotated. r¬có—td«‚)Nz&Type Annotated cannot be instantiated.r©r¼r‘rSs rwrQzAnnotated.__new__Es€ÜÐ@ÓAÐArycóN—t|t«s|f}|j|g|¢­ŽSr™)rtr�Ú_class_getitem_inner)r¼rÍs rwrizAnnotated.__class_getitem__Hs+€Ü˜&¤%Ô(Ø�YˆFØ'ˆs×'Ñ'¨Ð5¨fÒ5Ð5ryTråcóÀ—t|«dkr td«‚t|d«r td«‚d}t|d|d¬«}t |dd«}t ||«S) NrŒzUAnnotated[...] should be used with at least two arguments (a type and an annotation).rz?Annotated[...] should not be used with an unpacked TypeVarTuplez$Annotated[t, ...]: t must be a type.Trnre)r�rr¡r…r�r¤)r¼rÍr‚rêr§s rwr¶zAnnotated._class_getitem_innerMss€ä ˆv‹;˜Š?Üð+ó,ð ,ô % V¨A¡YÔ /Üð4ó5ð 5à4ˆÜ˜V A™Y¨ÀÔFˆÜ˜  ˜Ó$ˆÜ˜v xÓ0Ð0rycóJ—tdj|j««‚)NzCannot subclass {}.Annotated)rr¬r r´s rwrzAnnotated.__init_subclass__[s!€ÜØ *× 1Ñ 1°#·.±.Ó Aó ð ryN) r¤r r¡rrrQrirõr¶rr¬ryrwrrs8„ñ-ð^€IòBò6ñ �TÔñ 1óð 1ó ryrcóV—t|t«r t|dd«std|z«‚d|_t «|_|jD]7} tt||d««}|rŒ|j j|«Œ9|S#t$r}td|›d�«|‚d}~wwxYw)a:Mark 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! rbFzB@runtime_checkable can be only applied to protocol classes, got %rTNz,Failed to determine whether protocol member z is a method member) rðrr°rrerÇrfrdÚcallablerprí)r¼râÚ is_callableÚes rwrgrgasÅ€ô& �cœ7Ô #¬7°3¸ÈÔ+NÜð"Ø$'ñ(ó)ð )à#€CÔô *-«€CÔ&Ø×&Ô&ˆð =Ü"¤7¨3°°dÓ#;Ó<ˆKòØ×2Ñ2×6Ñ6°tÕ<ð'ð €Jøôò ÜØ>¸t¸hðG%ð%óðð ûð úsÁB  B(ÂB#Â#B(có—|S)zÿCast a value to a type. This returns the value unchanged. To the type checker this signals that the return value has the designated type, but at runtime we intentionally don't check anything (we want this to be as fast as possible). r¬)r�røs rwrSrS‹s €ð €Jrycó—|S)a÷Ask a static type checker to confirm that the value is of the given type. At runtime this does nothing: it returns the first argument unchanged with no checks or side effects, no matter the actual type of the argument. When a static 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 r¬)rør�s rwrQrQ–s €ð €Jrycó†—t|dd«riSt|t«�r?i}t|j«D]ô}|€6tt j j|jd«di«}n|}|jjdi«}t|tj«ri}|€tt|««n|}|€|€||}}|j«D]M\} } | € td«} t| t«rt!| dd¬«} t#| |||j$«} | || <ŒOŒö|r|S|j«D� � cic]\} } | t'| «“Œc} } S|€`t|tj(«r |j}n4|} t+| d«r| j,} t+| d«rŒt| d i«}|€|}n|€|}t|dd«}|€,t|t.«riSt1d j3|««‚t|«}t|d d «}|j«D]Z\} } | € td«} t| t«r't!| t|tj(« d¬«} t#| |||«|| <Œ\|r|S|j«D� � cic]\} } | t'| «“Œc} } Scc} } wcc} } 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 and recursively replaces all 'Annotated[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. For classes, the search order is globals first then locals. - 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. Ú__no_type_check__NrˆrgFT)rƒrrÚ __wrapped__Ú __globals__z1{!r} is not a module, class, method, or function.rcr¬)r°rtrsÚreversedrnr‰rŠr‹r rˆr¢ÚGetSetDescriptorTyperÊÚvarsÚitemsrurrürcÚ_strip_annotationsÚ ModuleTyper¯rÁÚ_allowed_typesrr¬)r¨rþrÿÚinclude_extrasÚhintsrÚÚ base_globalsÚannÚ base_localsrgÚvaluerµrœÚnsobjrs rwrZrZ«s±€ô>ˆsÐ'¨Ô.؈ ä�#”tÕØˆÜ˜SŸ[™[Ö)ˆDØÐÜ&¤s§{¡{§¡°t·±ÈÓ'MÈzÐ[]Ó^‘ à'� Ø—-‘-×#Ñ#Ð$5°rÓ:ˆCܘ#œu×9Ñ9Ô:Ø�Ø.5¨oœ$œt D›zÔ*À7ˆK؈ 8Ð#3ð-8¸˜k� Ø"Ÿy™yž{‘ ��eØ�=Ü  ›J�Eܘe¤SÔ)Ü& u¸%È$ÔO�EÜ" 5¨,¸ ÀT×EYÑEYÓZ�Ø#��d’ ñ +ð#*ñ0'ˆuÐ`ÐRW×R]ÑR]ÔR_Ô,`ÑR_É$È!ÈQ¨QÔ0BÀ1Ó0EÑ-EÐR_Ò,`Ð`àÐÜ �cœ5×+Ñ+Ô ,Ø—|‘|‰HàˆEä˜% Ô/Ø×)Ñ)�ô˜% Õ/ä˜u m°RÓ8ˆHØ ˆ?؉GØ ˆØˆÜ �CÐ*¨DÓ 1€EØ €}ä �cœ>Ô *؈Iäð+ß+1©6°#«;ó8ð 8ä �‹K€Eܘ#Ð0°"Ó5€KØ—{‘{–}‰ ˆˆeØ ˆ=ܘ“JˆEÜ �eœSÔ !ôØÜ *¨3´×0@Ñ0@Ó AÐAØôˆEô ! ¨°'¸;ÓGˆˆdŠ ð%ñ#ˆ5Ð\ÈeÏkÉkÌmÔ(\ÉmÁdÀaȨÔ,>¸qÓ,AÑ)AÈmÒ(\Ð\ùóK-aùóJ)]s ÅJ7ÊJ=cóà—t|t«rt|j«St |d«r0|jt t fvrt|jd«St|t«r>td„|jD««}||jk(r|S|j|«St|t«rCtd„|jD««}||jk(r|St|j|«St|tj«rQtd„|jD««}||jk(r|Stjt j"|«S|S)z(Strip the annotations from a given type.r~rc3ó2K—|]}t|«–—Œy­wr™©rÇr¹s rwr�z%_strip_annotations.. óèø€ÐH¹Z¸Ô0°×3¹Zùržc3ó2K—|]}t|«–—Œy­wr™rÓr¹s rwr�z%_strip_annotations.. rÔržc3ó2K—|]}t|«–—Œy­wr™rÓr¹s rwr�z%_strip_annotations.. rÔrž)rtr¤rÇr~r¯rerbrÞr}r�rr r¢rÝrîrrr)rœÚ stripped_argss rwrÇrÇ s€ä�!”_Ô%Ü! !§,¡,Ó/Ð/܈q�,Ô A§L¡L´X¼{Ð4KÑ$KÜ! !§*¡*¨Q¡-Ó0Ð0Ü�!”]Ô#ÜÑH¸Q¿ZºZÓHÓHˆ Ø ˜AŸJ™JÒ &؈HØ�{‰{˜=Ó)Ð)Ü�!”\Ô"ÜÑH¸Q¿ZºZÓHÓHˆ Ø ˜AŸJ™JÒ &؈HܘAŸL™L¨-Ó8Ð8Ü�!”U—_‘_Ô%ÜÑH¸Q¿ZºZÓHÓHˆ Ø ˜AŸJ™JÒ &؈HÜ×Ѥ§ ¡ ¨mÓ<Ð<à €Hrycóø—t|t«rtSt|ttt t f«r |jS|turtSt|tj«rtjSy)a�Get the unsubscripted version of a type. This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar, Annotated, and others. Return None for unsupported types. Examples:: >>> P = ParamSpec('P') >>> assert get_origin(Literal[42]) is Literal >>> assert get_origin(int) is None >>> assert get_origin(ClassVar[int]) is ClassVar >>> assert get_origin(Generic) is Generic >>> assert get_origin(Generic[T]) is Generic >>> assert get_origin(Union[T, int]) is Union >>> assert get_origin(List[Tuple[T, T]][int]) is list >>> assert get_origin(P.args) is P N) rtr¤rrår rrr~rr¢rÝ©Útps rwrXrX( s^€ô$�"”oÔ&ÜÐÜ�"Ô(¬,Ü$¤oð7ô8à�}‰}ÐØ ŒW�}܈Ü�"”e—o‘oÔ&Ü�‰ÐØ rycó*—t|t«r|jf|jzSt|tt f«r-|j }t||«rt|dd«|df}|St|tj«r |j Sy)aüGet type arguments with all substitutions performed. For unions, basic simplifications used by Union constructor are performed. Examples:: >>> T = TypeVar('T') >>> assert get_args(Dict[str, int]) == (str, int) >>> assert get_args(int) == () >>> assert get_args(Union[int, Union[T, int], str][int]) == (int, str) >>> assert get_args(Union[int, Tuple[T, int]][str]) == (int, Tuple[str, int]) >>> assert get_args(Callable[[], T][int]) == ([], int) NrÂr¬) rtr¤r~r¦r}r rÞr’rˆr¢rÝ)rÚrñs rwrWrWF s~€ô�"”oÔ&Ø— ‘ Р"§/¡/Ñ1Ð1Ü�"”}¤lÐ3Ô4Ø�k‰kˆÜ *¨2¨sÔ 3ܘ˜C˜R˜“> 3 r¡7Ð+ˆC؈ Ü�"”e—o‘oÔ&Ø�{‰{ÐØ rycó"—t|t«S)a+Check if an annotation is a TypedDict class. For example:: >>> from typing import TypedDict >>> class Film(TypedDict): ... title: str ... year: int ... >>> is_typeddict(Film) True >>> is_typeddict(dict) False )rtrÖrÙs rwr[r[` s€ô �bœ.Ó )Ð)ryédrvcóp—t|«}t|«tkDr |dtdz}td|›�«‚)aóStatically assert 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. Nr•z*Expected code to be unreachable, but got: )r¦r�Ú_ASSERT_NEVER_REPR_MAX_LENGTHÚAssertionError)rvrÏs rwrRrRu s@€ô& �‹I€EÜ ˆ5ƒzÔ1Ò1ØÐ4Ô4Ð5¸Ñ=ˆÜ ÐEÀeÀWÐMÓ NÐNrycóü—t|t«rÓt|«D]Å}t||«}t |d«rB|j |j ›d|j ›�k7st|dd«|jk7rŒ^t|tj«rd|_ t|tj«rd|j_ t|t«sŒ»t|«ŒÇ d|_ |S#t$rY|SwxYw)aIDecorator to indicate that annotations are not type hints. The argument must be a class or function; if it is a class, it applies recursively to all methods and classes defined in that class (but not to methods defined in its superclasses or subclasses). This mutates the function(s) or class(es) in place. r¡r|r NT)rtrsrýr°r¯r¡r¤r r¢r£rÀÚ MethodTypeÚ__func__r_r)rvÚkeyr¨s rwr_r_Ž sã€ô�#”tÔÜ�s–8ˆCܘ#˜sÓ#ˆCä˜C Ô0Ø×#Ñ#¨#×*:Ñ*:Ð);¸1¸S¿\¹\¸NÐ'KÒKܘ3  ¨dÓ3°s·~±~ÒEð ä˜#œu×1Ñ1Ô2Ø(,�Ô%ܘ#œu×/Ñ/Ô0Ø15�— ‘ Ô.ä˜#œtÕ$ܘcÕ"ð%ð& Ø $ˆÔð €Jøô ò Ø Ø €Jð úsÃ%C.Ã. C;Ã:C;cóB‡—tj‰«ˆfd„«}|S)z©Decorator to give another decorator the @no_type_check effect. This wraps the decorator with something that wraps the decorated function in @no_type_check. có.•—‰|i|¤Ž}t|«}|Sr™)r_)r‘rërìrôs €rwÚwrapped_decoratorz2no_type_check_decorator..wrapped_decorator¸ s!ø€á˜$Ð' $Ñ'ˆÜ˜TÓ"ˆØˆ ry)rîrò)rôrçs` rwr`r`² s(ø€ô ‡_�_�YÓóó ðð Ðrycó—td«‚)z*Helper for @overload to raise when called.z´You should not call an overloaded function. A series of @overload-decorated functions outside a stub module should always be followed by an implementation that is not @overload-ed.)ÚNotImplementedError)r‘rës rwÚ_overload_dummyrêÁ s€ä ð 9ó :ð:rycóÀ—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:: @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. rã)r°Ú_overload_registryr r¡Ú__code__Úco_firstlinenorrê)rìÚfs rwrcrcÎ sa€ô@ ��j $Ó'€Að ØVZÔ˜1Ÿ<™<Ñ(¨¯©Ñ8¸¿¹×9RÑ9RÑSô Ðøô ò à Ü Ðð ús�7A Á AÁAcóÖ—t|d|«}|jtvrgSt|j}|j|vrgSt ||jj ««S)z6Return all defined overloads for *func* as a sequence.rã)r°r rìr¡rˆÚvalues)rìrïÚmod_dicts rwrYrY÷ s`€ô ��j $Ó'€A؇|�|Ô-Ñ-؈ Ü! !§,¡,Ñ/€H؇~�~˜XÑ%؈ Ü �˜Ÿ™Ñ(×/Ñ/Ó1Ó 2Ð2rycó,—tj«y)z$Clear all overloads in the registry.N)rìÚclearr¬ryrwrTrT s€ä×ÑÕrycóB— d|_|S#ttf$rY|SwxYw)aòDecorator to indicate final methods and final classes. Use this decorator 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 attempts to set the ``__final__`` attribute to ``True`` on the decorated object to allow runtime introspection. T)Ú __final__rr)rïs rwrVrV s5€ð4 ؈Œ ð €Høô œIÐ &ò ð Ø €Hð  úó ‚ ‹�ÚTÚKTÚVTÚT_co)Ú covariantÚV_coÚVT_coÚT_contra)Ú contravariantÚCT_co)rüÚboundrPéaDeprecated alias to collections.abc.Callable. Callable[[int], str] signifies a function that takes a single parameter of type int and returns a str. The subscription syntax must always be used with exactly two values: the argument list and the return type. The argument list must be a list of types, a ParamSpec, Concatenate or ellipsis. The return type must be a single type. There is no syntax to indicate optional or keyword arguments; such function types are rarely used as callback types. rrf)ré)r1rÂrræa]Deprecated alias to builtins.tuple. Tuple[X, Y] is the cross-product type of X and Y. Example: Tuple[T1, T2] is a tuple of two elements corresponding to type variables T1 and T2. Tuple[int, float, str] is a tuple of an int, a float and a string. To specify a variable-length tuple of homogeneous type, use Tuple[T, ...]. rDrArFrGr"r6rBrCraåDeprecated alias to builtins.type. builtins.type or typing.Type can be used to annotate class objects. For example, suppose we have the following classes:: class User: ... # Abstract base for User classes class BasicUser(User): ... class ProUser(User): ... class TeamUser(User): ... And a function that takes a class argument that's a subclass of User and returns an instance of the corresponding class:: def new_user[U](user_class: Type[U]) -> U: user = user_class() # (Here we could write the user object to a database) return user joe = new_user(BasicUser) At this point the type checker knows that joe has type BasicUser. có*—eZdZdZdZedefd„«Zy)r=z(An ABC with one abstract method __int__.r¬r�có—yr™r¬r)s rwÚ__int__zSupportsInt.__int__¤ ó€à ryN)r¤r r¡rrrÚintrr¬ryrwr=r=ž s#„á2à€Iàð ˜ò óñ ryr=có*—eZdZdZdZedefd„«Zy)r;z*An ABC with one abstract method __float__.r¬r�có—yr™r¬r)s rwÚ __float__zSupportsFloat.__float__¯ rryN)r¤r r¡rrrÚfloatr r¬ryrwr;r;© ó#„á4à€Iàð ˜5ò óñ ryr;có*—eZdZdZdZedefd„«Zy)r:z,An ABC with one abstract method __complex__.r¬r�có—yr™r¬r)s rwÚ __complex__zSupportsComplex.__complex__º rryN)r¤r r¡rrrÚcomplexrr¬ryrwr:r:´ s#„á6à€Iàð ˜Wò óñ ryr:có*—eZdZdZdZedefd„«Zy)r9z*An ABC with one abstract method __bytes__.r¬r�có—yr™r¬r)s rwÚ __bytes__zSupportsBytes.__bytes__Å rryN)r¤r r¡rrrÚbytesrr¬ryrwr9r9¿ rryr9có*—eZdZdZdZedefd„«Zy)r<z*An ABC with one abstract method __index__.r¬r�có—yr™r¬r)s rwÚ __index__zSupportsIndex.__index__Ð rryN)r¤r r¡rrrr rr¬ryrwr<r<Ê s#„á4à€Iàð ˜3ò óñ ryr<có>‡‡—d­xŠfŠGˆˆfd„d‰­ }t|«S)røcó4•—eZdZW°ZdZdZedW°fd„«Zy)r8zMAn ABC with one abstract method __abs__ that is covariant in its return type.r¬r�có—yr™r¬r)s rwÚ__abs__zSupportsAbs.__abs__Û rryN)r¤r r¡rcrrrr©Ú .type_paramsrøs€€rwr8r8Õ s$ø‡áWà€Iàð ™ò óñ ryr8r ©Ú .generic_baserrøs @@rwú#r"Õ sù€Ü÷ ó ”Xõ rycó>‡‡—d­xŠfŠGˆˆfd„d‰­ }t|«S)røcó:•—eZdZW°ZdZdZeddedW°fd„«Zy)r>zOAn ABC with one abstract method __round__ that is covariant in its return type.r¬Úndigitsr�có—yr™r¬)rr%s rwÚ __round__zSupportsRound.__round__æ rryN©r) r¤r r¡rcrrrr r'rs€€rwr>r>à s+ø‡áYà€Iàñ  ð ©Qò óñ ryr>r r s @@rwú%r)à sù€Ü÷ ó ”xõ ryr¬c óî—|D��cgc]\}}|‘Œ }}}|D��cic]\}}|t|d|›d�«“Œ}}}tj||||¬«}|x|_|j_|Scc}}wcc}}w)Nzfield z annotation must be a type©Údefaultsrq)r…r�Ú namedtuplergrQ)rgr¢rqr,ÚnrœÚfieldsÚnm_tpls rwÚ _make_nmtupler1ë s‘€Ù!Ô "™E‘D�A�qŠa˜E€FÑ "áô Ù‘��Að” ˜A ¨ sÐ*DÐEÓFÑ FØð ñ ä × #Ñ # D¨&Ø-5¸fôF€Fà>CÐC€FÔ˜VŸ^™^Ô;Ø €Mùó #ùó s † A+šA1> Ú_makerQÚ_asdictÚ_fieldsÚ_sourcerÚ_replacerÚ__getnewargs__Ú_field_defaults>r¤r rgcó—eZdZd„Zy)ÚNamedTupleMetac ó—t|vsJ‚|D]}|tusŒ |tusŒtd«‚td„|D««}|j di«}g}|D]M}||vr|j |«Œ|sŒtd|›dt |«dkDrdnd›d d j|«›�«‚t||j«|D�cgc]}||‘Œ c}|d ¬ «} || _ t|vrt} t| «| _ |D]@} | tvrtd | z«‚| t vsŒ"| | j"vsŒ1t%| | || «ŒBt|vr| j'«| Scc}w)Nz3can only inherit from a NamedTuple type and Genericc3ó<K—|]}|turtn|–—Œy­wr™)Ú _NamedTupler�)r›rÚs rwr�z)NamedTupleMeta.__new__.. sèø€ÐOÉÀ˜t¤{Ñ2•e¸Ó<Éùó‚rgzNon-default namedtuple field z cannot follow default fieldreÚsr™Ú r—r r+z&Cannot overwrite NamedTuple attribute )r=rrr�r‹r®r�r¥r1rÆrÕrÍÚ classmethodriÚ _prohibitedrÚ_specialr4r÷r) r¼Útypenamer#ÚnsrÚr¢Ú default_namesÚ field_namer.r0Ú class_getitemräs rwrQzNamedTupleMeta.__new__þ sŒ€Ü˜eÑ#Ð#Ð#ÛˆDØœ;Ò&¨4´wÒ+>ÜØIóKðKðôÑOÉÓOÓOˆØ—‘Ð(¨"Ó-ˆØˆ ÛˆJؘRÑØ×$Ñ$ ZÕ0ÚÜÐ"?À ¸|ðL>ä*-¨mÓ*<¸qÒ*@¡3ÀbÐ"IÈØ#'§9¡9¨]Ó#;Ð"<ð!>ó?ð?ð  ô˜x¨¨¯©«Ù8EÓ(F¹ °1¨¨A«¸ Ñ(FØ&(¨Ñ&6ô8ˆð!ˆÔÜ �eÑ Ü2ˆMÜ'2°=Ó'AˆFÔ $ãˆCØ”kÑ!Ü$Ð%MÐPSÑ%SÓTÐTØœHÒ$¨°F·N±NÒ)Bܘ  R¨¡WÕ-ð ô �eÑ Ø × $Ñ $Ô &؈ ùò)Gsà E N)r¤r r¡rQr¬ryrwr:r:ý s„ó ryr:c óŠ—|€|j«}n |r td«‚t||t«¬«}tf|_|S)a?Typed 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)]) zIEither list of fields or keywords can be provided to NamedTuple, not both©rq)rÆrr1r~rHrÏ)rDr/rSÚnts rwrHrH! sK€ð(€~Ø—‘“‰Ù ÜðCóDð Dä �x ´³ Ô :€BÜ#˜ €BÔØ €IryrHcó$—t|vsJ‚tfSr™)rHr=©r#s rwÚ_namedtuple_mro_entriesrN@ s€Ü ˜Ñ ÐÐ Ü ˆ>Ðrycó"—eZdZdd„ZeZd„ZeZy)rÖc ó—|D]'}t|«tusŒ|tusŒtd«‚t d„|D««rtf}nd}tj t|g|¢t ‘­|«}t|d«s||_i}|jdi«} d} | j«D� � cic]\} } | t| | |j¬«“Œ } } } t«} t«}|D]‰}|j|jjdi««|jjdt««}| |z} ||z}|jjd t««}| |z} ||z}Œ‹|j| «| j«D]”\}}t!|«}|t"urt%|«}|r|d }t!|«}|t&urd }n |t(urd }n|}|r#| j+|«|j-|«Œs|j+|«| j-|«Œ–| j/|«sJd |›d| ›d|›�«‚||_t3| «|_t3|«|_t|d«s||_|Scc} } w)a7Create a 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ó<K—|]}t|t«–—Œy­wr™)rðrr¡s rwr�z)_TypedDictMeta.__new__..U sèø€Ð5©u¨!Œz˜!œW×%©uùr>r¬rÏrgz?TypedDict('Name', {f0: t0, f1: t1, ...}); each t must be a typerJÚ__required_keys__Ú__optional_keys__rTFz,Required keys overlap with optional keys in z: required_keys=z, optional_keys=Ú __total__)rsrÖrrr¢rQrÊr¯rÏr‹rÆr…r rÇÚupdaterˆrXrrWrerbrpÚdiscardÚ isdisjointrgrJrRrSrT)r¼rgr#rEÚtotalrÚÚ generic_baseÚtp_dictrrÚown_annotationsr‚r.rÚÚ required_keysÚ optional_keysÚ base_requiredÚ base_optionalÚannotation_keyÚannotation_typeÚannotation_originÚannotation_argsÚ is_requireds rwrQz_TypedDictMeta.__new__H s¬€óˆDÜ�D‹z¤Ò/°DÄÒ4GÜð!AóBðBðô Ñ5©uÓ5Ô 5Ü#˜:‰LàˆLä—,‘,œ~¨tÐ5J°|Ð5JÄTÑ5JÈBÓOˆä�wÐ 0Ô1Ø%*ˆGÔ "àˆ ØŸ&™&Ð!2°BÓ7ˆØOˆð)×.Ñ.Ô0ô á0‘��2ð Œ{˜2˜s¨7×+=Ñ+=Ô>Ñ >Ø0ð ñ ô›ˆ Ü›ˆ ãˆDØ × Ñ ˜tŸ}™}×0Ñ0Ð1BÀBÓGÔ Hà ŸM™M×-Ñ-Ð.AÄ3Ã5ÓIˆMØ ˜]Ñ *ˆMØ ˜]Ñ *ˆMà ŸM™M×-Ñ-Ð.AÄ3Ã5ÓIˆMØ ˜]Ñ *ˆMØ ˜]Ñ *‰Mðð ×ј?Ô+Ø/>×/DÑ/DÖ/FÑ +ˆN˜OÜ *¨?Ó ;Ð Ø ¤IÑ-Ü"*¨?Ó";�Ù"Ø&5°aÑ&8�OÜ(2°?Ó(CÐ%à ¤HÑ,Ø"‘ Ø"¤kÑ1Ø#‘ à#� áØ×!Ñ! .Ô1Ø×%Ñ% nÕ5à×!Ñ! .Ô1Ø×%Ñ% nÕ5ð)0Gð,×'Ñ'¨ Ô6ð Ø:¸4¸&ðAØÐÐ0 -Ð!1ð 3ó Ð6ð#.ˆÔÜ$-¨mÓ$<ˆÔ!Ü$-¨mÓ$<ˆÔ!Ü�w  Ô,Ø %ˆGÔ Øˆùóe sÂ*#Jcó—td«‚)Nz4TypedDict does not support instance and class checksr)r¼r4s rwr@z _TypedDictMeta.__subclasscheck__˜ s€äÐNÓOÐOryN)T)r¤r r¡rQrÊr0r@r<r¬ryrwrÖrÖG s„óLð\€HòPð*ÑryrÖ©rXc óØ—|€|}n |r td«‚|rtjdtd¬«dt |«i}t «}|�||d<t |d||¬«}tf|_|S) a*A 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 >>> Point2D(x=1, y=2, label='first') == dict(x=1, y=2, label='first') True 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. z@TypedDict takes either a dict or keyword arguments, but not bothz§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.rŒ©Ú stacklevelrgr r¬rf) rr3ÚwarnÚDeprecationWarningrÊr~rÖrIrÏ)rDr/rXrSrErqÚtds rwrIrIŸ s†€ð^€~؉٠Üð(ó)ð )á Ü� ‰ ð 7ô Øõ  ð œT &›\Ð *€BÜ ‹Y€FØ Ðà!ˆˆ<Ñä ˜ " b°Ô 6€BÜ"˜ €BÔØ €IryrIcó—tfSr™)Ú _TypedDictrMs rwÚroç s€¬:©-rycóN—t||j›d�«}t||f«S)aäSpecial typing construct to mark a TypedDict key as required. This is mainly useful for total=False TypedDicts. 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. ú accepts only a single type.©r…rr}r]s rwrereê s+€ô( �z d§j¡j \Ð1MÐ#NÓ O€DÜ ˜ ˜wÓ 'Ð'rycóN—t||j›d�«}t||f«S)a7Special typing construct to mark a TypedDict key as potentially missing. For example:: class Movie(TypedDict): title: str year: NotRequired[int] m = Movie( title='The Matrix', # typechecker error if key is omitted year=1999, ) rqrrr]s rwrbrb s+€ô �z d§j¡j \Ð1MÐ#NÓ O€DÜ ˜ ˜wÓ 'Ð'rycó8—eZdZdZeZd„Zd„Zd„Zd„Z d„Z d„Z y) r^a+NewType 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óŒ—||_d|vr|jd«d}||_||_t «}|dk7r||_yy)Nr|rÂÚtyping)r¡Ú rpartitionr¤Ú __supertype__r~r )rrgrÚÚdef_mods rwrzNewType.__init__- sN€Ø ˆÔØ �$‰;Ø—?‘? 3Ó'¨Ñ+ˆD؈Œ ؈ÔÜ“)ˆØ �hÒ Ø%ˆD�Oð rycó:‡—|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)`)r¤r)r¼Ú subclass_nameÚsuperclass_names €rwrz8NewType.__mro_entries__..Dummy.__init_subclass__= s:ø€Ø #§ ¡ � ÜðØ%� k°-Ð1BÀ"À_ÐDUÐUWðYóðryN)r¤r r¡r)rs€rwÚDummyr|< sø„õ ryr€r§)rr#r€rs @rwr$zNewType.__mro_entries__7 s!ø€ðŸ-™-ˆ÷ ó ðˆxˆrycó8—|j›d|j›�S)Nr|)r r¡r)s rwr*zNewType.__repr__F s€Ø—/‘/Ð" ! D×$5Ñ$5Ð#6Ð7Ð7rycó—|jSr™)r¡r)s rwr-zNewType.__reduce__I s€Ø× Ñ Ð rycó—t||fSr™r2r3s rwr5zNewType.__or__L r6rycó—t||fSr™r2r3s rwr8zNewType.__ror__O r9ryN) r¤r r¡rr r0rr$r*r-r5r8r¬ryrwr^r^ s,„ñð*€Hò&ò ò8ò!ò"ó"ryr^có—eZdZdZdZeedefd„««Zeedefd„««Z ed!d„«Z eede fd„««Z ede fd „«Zed!d „«Zede fd „«Zed"d e defd „«Zede fd„«Zed"de defd„«Zed"de deefd„«Zed#de de de fd„«Zede fd„«Zede fd„«Zed$de de fd„«Zede fd„«Zedede fd„«Zedeeddfd„«Zed%d„«Zed!d „«Zy)&rLaûGeneric base class for TextIO and BinaryIO. This is an abstract, generic version of the return of open(). NOTE: This does not distinguish between the different possible classes (text vs. binary, read vs. write vs. read/write, append-only, unbuffered). The TextIO and BinaryIO subclasses below capture the distinctions between text vs. binary, which is pervasive in the interface; however we currently do not offer a way to track the other distinctions in the type system. r¬r�có—yr™r¬r)s rwÚmodezIO.modej ó€ð rycó—yr™r¬r)s rwrgzIO.nameo rˆryNcó—yr™r¬r)s rwÚclosezIO.closet rrycó—yr™r¬r)s rwÚclosedz IO.closedx rˆrycó—yr™r¬r)s rwÚfilenoz IO.fileno} rrycó—yr™r¬r)s rwÚflushzIO.flush� rrycó—yr™r¬r)s rwÚisattyz IO.isatty… rryr.có—yr™r¬)rr.s rwÚreadzIO.read‰ rrycó—yr™r¬r)s rwÚreadablez IO.readable� rryÚlimitcó—yr™r¬)rr˜s rwÚreadlinez IO.readline‘ rryÚhintcó—yr™r¬)rr›s rwÚ readlinesz IO.readlines• rryÚoffsetÚwhencecó—yr™r¬)rržrŸs rwÚseekzIO.seek™ rrycó—yr™r¬r)s rwÚseekablez IO.seekable� rrycó—yr™r¬r)s rwÚtellzIO.tell¡ rryÚsizecó—yr™r¬)rr¦s rwÚtruncatez IO.truncate¥ rrycó—yr™r¬r)s rwÚwritablez IO.writable© rryr?có—yr™r¬©rr?s rwÚwritezIO.write­ rryÚlinescó—yr™r¬)rr®s rwÚ writelinesz IO.writelines± rrycó—yr™r¬r)s rwÚ __enter__z IO.__enter__µ rrycó—yr™r¬)rrsrÏÚ tracebacks rwÚ__exit__z IO.__exit__¹ rry)r�N)rÂr(r™)r�z IO[AnyStr]) r¤r r¡rrr`rrur‡rgr‹Úboolr�r r�r‘r“rPr•r—ršrDr�r¡r£r¥r¨rªr­r°r²rµr¬ryrwrLrL[ sd„ñ ð€Ià Øð �cò óóð ðØð �cò óóð ðò óð ðØð ˜ò óóð ðð ˜ò óð ðò óð ðð ˜ò óð ðñ �cð  6ò óð ðð ˜$ò óð ðñ ˜cð ¨6ò óð ðñ ˜cð ¨4°©<ò óð ðñ ˜3ð ¨ð °Cò óð ðð ˜$ò óð ðð �cò óð ðñ ˜Sð ¨Cò óð ðð ˜$ò óð ðð �vð  #ò óð ðð   V¡ ð °ò óð ðò óð ðò óñ ryrLcóJ—eZdZdZdZedeeefde fd„«Z edd„«Z y) rKz5Typed version of the return of open() in binary mode.r¬r?r�có—yr™r¬r¬s rwr­zBinaryIO.writeà rrycó—yr™r¬r)s rwr²zBinaryIO.__enter__Ç rryN)r�rK) r¤r r¡rrrrrÚ bytearrayr r­r²r¬ryrwrKrK¾ sH„Ù?à€Iàð �u˜U IÐ-Ñ.ð °3ò óð ðò óñ ryrKcóÌ—eZdZdZdZeedefd„««Zeede fd„««Z eede e fd„««Z eede fd„««Zeedefd„««Zed d „«Zy ) rOz3Typed version of the return of open() in text mode.r¬r�có—yr™r¬r)s rwÚbufferz TextIO.bufferÑ rˆrycó—yr™r¬r)s rwÚencodingzTextIO.encodingÖ rˆrycó—yr™r¬r)s rwÚerrorsz TextIO.errorsÛ rˆrycó—yr™r¬r)s rwÚline_bufferingzTextIO.line_bufferingà rˆrycó—yr™r¬r)s rwÚnewlineszTextIO.newlineså rˆrycó—yr™r¬r)s rwr²zTextIO.__enter__ê rryN)r�rO)r¤r r¡rrr`rrKr½rur¿rrÁr¶rÃrrÅr²r¬ryrwrOrOÌ sÏ„Ù=à€Ià Øð ˜ò óóð ðØð ˜#ò óóð ðØð ˜ ™ ò óóð ðØð  ò óóð ðØð ˜#ò óóð ðò óñ ryrOcó‡—eZdZˆfd„ZˆxZS)Ú_DeprecatedTypec󲕗|dvrD||jvr6tj|j›d|j›d�td¬«t ‰|�|«S)N>rrˆr z5 is deprecated, import directly from typing instead. z will be removed in Python 3.13.rŒrh)rˆr3rjr¤rkrJÚ__getattribute__)r¼rgrKs €rwrÊz _DeprecatedType.__getattribute__ð s^ø€Ø Ð<Ñ <ÀÈÏÉÑAUÜ �M‰MØ—<‘<�.ð!(Ø(+¯ ©  ~ð6"ð"ô#Øõ  ô‰wÑ'¨Ó-Ð-ry)r¤r r¡rÊrMrNs@rwrÈrÈï s ø„÷ .ð .ryrÈcó$—eZdZdZgd¢ZeZeZeZy)Úioz)Wrapper namespace for IO generic classes.)rLrOrKN)r¤r r¡rÚ__all__rLrOrKr¬ryrwrÌrÌü s„Ù3â*€GØ €BØ €FØ�HryrÌz.iocó —eZdZdZddgZeZeZy)Úrez&Wrapper namespace for re type aliases.rNrMN)r¤r r¡rrÍrNrMr¬ryrwrÏrÏ s„Ù0à˜'Ð"€GØ€GØ �EryrÏz.recó —d­x}fd|d|fd„c®S)rør¨r�cóh—tdt|«j›�tj¬«|S)aèAsk a static type checker to reveal the inferred type of an expression. 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 the argument unchanged. zRuntime type is )Úfile)Úprintrsr¤r‰Ústderrr§s rwrfrf s*€ô Ð œT #›Y×/Ñ/Ð2Ð 3¼#¿*¹*ÕEØ €Jryr¬)Ú .defaultsrøs rwú#rÖ s€”ð˜ð õrycó*‡—eZdZWŠˆfd„«ZˆZy)Ú_IdentityCallablecó"•—d­x}fd|d|fd„c®S)rørvr�có—yr™r¬r»s rwr0z_IdentityCallable.__call__+ s€Ø ryr¬)rÕrøÚ __classdict__s €rwz z2_IdentityCallable.+ sø€”ð ˜qð ¨õ ryN)r¤r r¡r0Ú__classdictcell__)rÛs@rwrØrØ* s ø†÷ ô ryrØ)Ú eq_defaultÚ order_defaultÚkw_only_defaultÚfrozen_defaultÚfield_specifiersrÝrÞrßràrá.rSc ó&‡‡‡‡‡‡—ˆˆˆˆˆˆfd„}|S)asDecorator to mark an object as providing dataclass-like behaviour. The decorator can be applied to a function, class, or metaclass. Example usage with a decorator function:: @dataclass_transform() def create_model[T](cls: type[T]) -> type[T]: ... return cls @create_model class CustomerModel: id: int name: str On a base class:: @dataclass_transform() class ModelBase: ... class CustomerModel(ModelBase): id: int name: str On a metaclass:: @dataclass_transform() class ModelMeta(type): ... class ModelBase(metaclass=ModelMeta): ... class CustomerModel(ModelBase): id: int name: str The ``CustomerModel`` classes defined above will be treated by type checkers similarly to classes created with ``@dataclasses.dataclass``. For example, type checkers will assume these classes have ``__init__`` methods that accept ``id`` and ``name``. 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()``. - Arbitrary other keyword arguments are accepted in order to allow for possible future extensions. At runtime, this decorator records its arguments in the ``__dataclass_transform__`` attribute on the decorated object. It has no other runtime effect. See PEP 681 for more details. có$•—‰‰‰‰‰‰dœ|_|S)N)rÝrÞrßràrárS)Ú__dataclass_transform__)Ú cls_or_fnrÝráràrßrSrÞs €€€€€€rwrôz&dataclass_transform..decoratorv s'ø€à$Ø*Ø.Ø,Ø 0Øñ - ˆ Ô)ðÐryr¬)rÝrÞrßràrárSrôs`````` rwrUrU/ sý€÷N ñ ð ÐryÚ_Funccó —tdtfSr‡)rrr¬ryrwræræƒ s€ŒX�cœ3�hÑ Ðrycó$—dd„®x}fd|d|fd„c®S)ÚFcó—tSr™)rær¬ryrwréré† s€”ˆXryÚmethodr�cóB— d|_|S#ttf$rY|SwxYw)aIndicate 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 or attribute 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 this property. The decorator attempts to set the ``__override__`` attribute to ``True`` on the decorated object to allow runtime introspection. See PEP 698 for details. T)Ú __override__rr)rës rwrdrd† s6€ð2 Ø"ˆÔð €Møô œIÐ &ò ð Ø €Mð  úr÷r¬)rÕrés rwú rî† s€ŽXð ˜qð ¨õ ryr™rœ)reÚ__main__)rŒ)NNF)r¬)êrrŽrrr�rÚcollections.abcÚcopyregr„rîrrÏÚ stdlib_rer‰r¢r3rrrr Ú_typingr r r r rrrrrÍrxr…rŠr’ršr­r¿rÆrÎrÌrÚrárärðrêrõrJrür rr€rErsrHrrar]rhr\rrrrlrrrkrrlrr¶r¡r£r¥rªr¶r¼r¿rÍrÞrãrår}rr.r6r:rBrÜrqrãr‰rmrZrÚ_TYPING_INTERNALSÚ_SPECIAL_NAMESrorsrur~r€r“rór‰r®rñrŒÚpickler�r‘rAr™rr¤rrgrSrQr£ÚBuiltinFunctionTyperârÈrÉrZrÇrXrWr[rßrRr_r`rêÚpartialrÊrìrcrYrTrVrørùrúrûrýrþrÿrrrurPÚ_aliasr#r0r3r2r1r%r&r7r.r!r4rrFrr,r(r*r-r+r r�rrˆrDÚdequerArÇrGr)r'r$r/r‚r"rƒr6rBrCrEr@r?rJr5rr=r;r:r9r<r8r>r1rBrCr:rHrQr=rNr$rÖrIrnrerbr^rirjrLrKrOrÈrÌr¤rŠrNrMrfrØrUrærdr¬ryrwÚrûsã ðñ÷*(ÛÝ#ÛÛÛÛÛÛÛ Û Ûß^Ó^÷ ÷ ó òo €ðl¸5ôðÐPUôòB@ò ò0ò2òB <òð16ô/òò ò Aò ð € Ø €ð Uôð>% É)Ë+ô% ÷PFñF÷ñô((/�6˜<¨tõ(/ôV0˜,¨dõ0ô "ˆtô "ô$�Hõ$ð$ñ4óð4ð(ñ4óð4ð0ñ4óð4ð&ñ4óð4ð4ñ(óð(ð*ñ(óð(ð*ñ)0óð)0òVðñ"óð"ð Ù �Ôñ2óóð2ðBñ 4óð 4ð ñ6óð6ð2ñ1(óð1(ôheD�˜tõeDðPF ðF¨óFð O˜ðO óO÷ñòò"òJò ð ñ-&ó ð-&ò`#&òL9ôBT˜ dõBTô`VÐ%¨TõVôz)!˜<Ð):À$õ)!ôX /Ð2¸$õ /ô2˜L¨-¸tõ2ô"&Ð(°õ&ôB &Ð%¨Tõ &ô&#˜ }¸Dõ&#òR.ôD˜=°õDô)˜}°Dõ)ðñ/:óð/:ôd:˜-¨tõ:÷:3ñ3ñòóÐñ òó€ð(¨.Ñ8Ѐ Ù�[—_‘_×0Ò0°!Ó4€ Ù �+—/‘/×*Ò*¨AÓ .€Ù �;—?‘?×,Ò,¨aÓ 0€ Ù �K—O‘O×.Ò.°Ó 2€ Ù˜ ×9Ò9¸1ÐCSÔT€Ù˜Z×CÒCÀQÐMbÔcÐÙ ˆd�A˜E¨Ô/€Ù�[×,Ñ,¨a°mÔD€ Ù�[×,Ò,¨aÓ0€ Ù �×$Ò$ aÓ (€Ù �+×&Ò&¨Ó *€Ù �;—?‘?×,Ò,¨aÓ 0€ Ù˜ Ÿ™×6Ò6¸Ó:€Ù ˆd�A˜E¨Ô/€ðð„ ð2ô �(ó óð ðô �Hó óð ðô �hó óð ðô �Hó óð ðô �Hó óð ðö óð ðö óð óñòDóE€ ñ ÒBÓ C€ô!�Tô!óHð:�lŠl˜>¨<¸¸RÓ@€ òð5€ ÔôU*�TôU*ðpE°ôEðN�\Š\˜.¨+°r¸2Ó >€ Ù7€ Ôðñ(óð(ð.ñ(óð(÷$;"ñ;"ð~ €ð€ ô` ˆ�‰ô` ôF  ˆr�%‰yô  ô  ˆR�‰Wô  ôF .�dô .ô�?õð˜Ñ€„ Ø€‡ ‚ ˆB�KŠKÑá �×"Ò" AÓ &€Ùˆy�Š Ó"€ô�?õð˜Ñ€„ Ø€‡ ‚ ˆB�KŠKÑ÷ô& ˜ô ðØØ!Ø ØCEò QàðQððQðð Qð ð Qð ˜D ™I¨°°c°Ñ(:Ñ:¸CÐ?Ñ@ð QððQðóQöh ÷ ð ry