grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026§ ô¸þ4£­7…ãó`—dZddlmZmZddlZddlmZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddlZddl mZmZmZmZ ddlmZn#e$rd„ZYnwxYwgd¢Zdèd d œd „Zdéd d œd „Zd„Zd„Zd„Zd„Zd„Zd„Zd dœd„Zd„Z d„Z!d„Z"d„Z#gZ$dèd dœd„Z%e&¦«fd„Z'Gd„d¦«Z(Gd„d ¦«Z)Gd!„d"¦«Z*Gd#„d$e(e*d ¬%¦«Z+Gd&„d'e+d ¬%¦«Z,Gd(„d)e-¦«Z.Gd*„d+e.¬,¦«Z/e+d-„¦«Z0e+d.„¦«Z1e+d/„¦«Z2e+d0„¦«Z3e+d1„¦«Z4e+d2„¦«Z5e+d3„¦«Z6e+d4„¦«Z7e,e%d ¬¦«d5„¦«¦«Z8e+d6„¦«Z9e+d7„¦«Z:e+d8„¦«Z;Gd9„d:e(d ¬%¦«Zd;e/d„Z?Gd?„d@¦«Z@GdA„dB¦«ZAGdC„dDe(e)eAe@d ¬%¦«ZBGdE„dFe(e)e@d ¬%¦«ZCGdG„dHe(e)d ¬%¦«ZDGdI„dJe(e)d ¬%¦«ZEGdK„dLe(e)eAe@d ¬%¦«ZFdM„ZGGdN„dOe(d ¬%¦«ZHGdP„dQeHd ¬%¦«ZIGdR„dSe*eHd ¬%¦«ZJGdT„dUe*eId ¬%¦«ZKGdV„dWeJd ¬%¦«ZLGdX„dYeJd ¬%¦«ZMGdZ„d[e*eId ¬%¦«ZNd\„ZOGd]„d^eId ¬%¦«ZPGd_„d`eId ¬%¦«ZQe+da„¦«ZRGdb„dceId ¬%¦«ZSGdd„de¦«ZTGdf„dg¦«ZUgdh¢ZVgdi¢ZWeVeWzdjgzZXdk„ZYdl„ZZdm„Z[dêdp„Z\dëdr„Z]gds¢dtdugdvœZ^Gdw„dxe¦«Z_Gdy„dzeTe_¬,¦«Z`Gd{„d|e*eId ¬%¦«ZaGd}„d~¦«Zbd„Zcd€„Zdd�„Zee jfe jge jhe jieeefZjdìd‚„Zkdƒ„Zld„„Zmd…„Znd†„Zod‡Zpdˆe1dÐ>Ð>Ñ?Ô?Ð?Ø �s•M¥8­UµD½)ÐDÐDÐD؈ Øð˜s¥xµÐ&7Ð7Ð7؈ Ý�#•|Ñ$Ô$ðF¨µ½Ð/BÐ(BÐ(BÝÐD ÐDÐDÐDÑEÔEÐEÝ ˆC�y„y•EÐÐݘ3Ð2Ð2 SÐ2Ð2Ð2Ð2Ñ3Ô3Ð3Ø €JrcóZ—|dup't|ttttf¦«S)N.)ryr„ÚlistrÚ_ConcatenateGenericAlias)r{s rÚ_is_param_exprrŒÉs2€Ø �#ˆ:ð @� CÝ •D�)Õ%=Ð >ñ@ô@ð@rcó„—|jtjjuo(t |¦«dkot |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 rÚ_should_unflatten_callable_argsr”Îs>€ð& Œ�+œ/Ô2Ð2ð =Ý�T‘”˜a’Ð;¥N°4¸´7Ñ$;Ô$;Ð <ðrcó0—t|tj¦«rt|¦«St|t¦«r#|jdkr|jS|j›d|j›�S|durdSt|tj¦«r|jSt|¦«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.ú...) ryÚtypesr ÚreprrxÚ __module__Ú __qualname__Ú FunctionTypeÚ__name__©Úobjs rÚ _type_reprr æs�€õ�#•uÔ)Ñ*Ô*ðÝ�C‰yŒyÐÝ�#•tÑÔð6Ø Œ>˜ZÒ 'Ð 'ØÔ#Ð #Ø”.Ð5Ð5 3Ô#3Ð5Ð5Ð5Ø ˆc€z€z؈uÝ�#•uÔ)Ñ*Ô*ðØŒ|ÐÝ �‰9Œ9Ðrcó–—g}|D]¶}t|t¦«rŒt|t¦«r2|D].}t|g¦«D]}||vr| |¦«ŒŒ/Œ_t |d¦«r||vr| |¦«Œ‰t |dd¦«D]}||vr| |¦«ŒŒ·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__r )ryrxr„Ú_collect_parametersÚappendÚhasattrÚgetattr)r“Ú parametersÚtrÚ collecteds rr¤r¤ûs€ð€JØ ð)ð)ˆÝ �a�Ñ Ô ð )à Ý ˜�5Ñ !Ô !ð )ðð 5ð 5�Ý!4°a°SÑ!9Ô!9ð5ð5�IØ ¨ Ð2Ð2Ø"×)Ò)¨)Ñ4Ô4Ð4øð5ð 5õ�QÐ*Ñ +Ô +ð )ؘ Ð"Ð"Ø×!Ò! !Ñ$Ô$Ð$øå˜QÐ 0°"Ñ5Ô5ð )ð )�ؘJÐ&Ð&Ø×%Ò% aÑ(Ô(Ð(øð )õ �Ñ Ô Ðrc óž—|st|›d�¦«‚t|¦«}||kr#td||krdnd›d|›d|›d|›�¦«‚dS) 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)r‚r‘)Úclsr¨ÚelenÚalens rÚ_check_genericr¶s”€ð ð9ݘ3Ð7Ð7Ð7Ñ8Ô8Ð8Ý ˆz‰?Œ?€DØ ˆt‚|€|Ýð;¨°ª¨˜v˜v¸%ð;ð;ÐPSð;ð;Ø#'ð;ð;Ø48ð;ð;ñ<ô<ð <ð€|rcó¨—g}|D]L}t|dd¦«}|�"|r |ddus| |¦«Œ7| |¦«ŒM|S)NÚ__typing_unpacked_tuple_args__éÿÿÿÿ.)r§Úextendr¥)r“Únewargsr{Úsubargss rÚ _unpack_argsr½(sp€Ø€GØð ð ˆÝ˜#Ð?ÀÑFÔFˆØ Ð ¨Ð °G¸B´KÀ3Ð4FÐ4FØ �NŠN˜7Ñ #Ô #Ð #Ð #à �NŠN˜3Ñ Ô Ð Ð Ø €Nr©Úunhashable_fallbackcó|— t |¦«S#t$r|s‚t|¦«cYSwxYwr )ÚdictÚfromkeysr‚Ú_deduplicate_unhashable)Úparamsr¿s rÚ _deduplicaterÅ2sS€ð/Ý�}Š}˜VÑ$Ô$Ð$øÝ ð/ð/ð/Ø"ð Ø å& vÑ.Ô.Ð.Ð.Ð.ð /øøøs ‚œ;º;cóF—g}|D]}||vr| |¦«Œ|Sr )r¥)Úunhashable_paramsÚnew_unhashabler©s rrÃrÃ<s<€Ø€NØ ð%ð%ˆØ �NÐ "Ð "Ø × !Ò ! !Ñ $Ô $Ð $øØ Ðrcó¼—t|¦«}t|¦«}t|¦«} |D]}| |¦«Œn#t$rYdSwxYw| S)NF)rÃrŠÚremoveÚ ValueError)Ú first_argsÚ second_argsÚfirst_unhashableÚsecond_unhashabler©Úelems rÚ_compare_args_orderlessrÑCs€Ý.¨zÑ:Ô:ÐÝ/° Ñ<Ô<ÐÝ Ð ÑÔ€AðØ$ð ð ˆDØ �HŠH�T‰NŒNˆNˆNð øå ððð؈uˆuðøøøàˆ5€Ls¯A Á AÁAcóî—g}|D]S}t|ttjf¦«r| |j¦«Œ>| |¦«ŒTtt|d¬¦«¦«S)zwInternal helper for Union creation and substitution. Flatten Unions among parameters, then remove duplicates. Tr¾) ryÚ_UnionGenericAliasr˜Ú UnionTyperºÚ__args__r¥r„rÅ©r¨rÄÚps rÚ_remove_dups_flattenrØNsy€ð €FØ ððˆÝ �aÕ,­e¬oÐ>Ñ ?Ô ?ð Ø �MŠM˜!œ*Ñ %Ô %Ð %Ð %à �MŠM˜!Ñ Ô Ð Ð å •˜f¸$Ð?Ñ?Ô?Ñ @Ô @Ð@rcó¸—g}|D]G}t|t¦«r| |j¦«Œ2| |¦«ŒHt |¦«S)zHInternal helper for Literal creation: flatten Literals among parameters.)ryÚ_LiteralGenericAliasrºrÕr¥r„rÖs rÚ_flatten_literal_paramsrÛ^sa€à €FØ ððˆÝ �aÕ-Ñ .Ô .ð Ø �MŠM˜!œ*Ñ %Ô %Ð %Ð %à �MŠM˜!Ñ Ô Ð Ð Ý �‰=Œ=Ðr©Ú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 ‰j¦«tj‰¦«ˆˆfd„¦«}|S)NrÜcóF•— ‰|i|¤ŽS#t$rYnwxYw‰|i|¤ŽSr ©r‚)r“ÚkwdsÚcachedÚfuncs €€rÚinnerz+_tp_cache..decorator..innerusRø€ð Ø�v˜tÐ, tÐ,Ð,Ð,øÝð ð ð Ø�ð øøøà�4˜Ð& Ð&Ð&Ð &s ƒ ‹ —)Ú functoolsÚ lru_cacheÚ _cleanupsr¥Ú cache_clearÚwraps)rärårãrÝs` @€rÚ decoratorz_tp_cache..decoratorqssøøø€Ø1•Ô$¨5Ð1Ñ1Ô1°$Ñ7Ô7ˆÝ×Ò˜Ô+Ñ,Ô,Ð,å Œ˜Ñ Ô ð 'ð 'ð 'ð 'ð 'ñ Ô ð 'ð ˆ rr )rärÝrës ` rÚ _tp_cacherìls8ø€ð ð ð ð ð ð ÐØˆy˜‰ŒÐà Ðrcó ‡‡‡—t|t¦«r| ‰‰‰¦«St|ttt jf¦«�r+t|t¦«rotd„|jD¦«¦«}|j }t||¦«r|j |dd…|df}n |j |}|r t|}tˆˆˆfd„|jD¦«¦«}||jkr|St|t¦«rt |j |¦«St|t j¦«rtjtj|¦«S| |¦«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. c3óbK—|]*}t|t¦«rt|¦«n|V—Œ+dSr )ryrzr©Ú.0r{s rú z_eval_type..ŽsOèè€ððàõ$.¨cµ3Ñ#7Ô#7Ð@• ˜3‘”�¸SððððððrNr¹c3ó<•K—|]}t|‰‰‰¦«V—ŒdSr )Ú _eval_type)rðÚaÚglobalnsÚlocalnsÚrecursive_guards €€€rrñz_eval_type..™s1øèè€Ð^Ð^Èa�  1 h°¸ÑIÔIÐ^Ð^Ð^Ð^Ð^Ð^r)ryrÚ _evaluater€r r˜rÔr„rÕÚ __unpacked__r”r�rrræÚreduceÚoperatorÚor_Ú copy_with)r©rõrör÷r“Ú is_unpackedÚev_argss ``` rróróƒs‚øøø€õ�!•ZÑ Ô ð?Ø�{Š{˜8 W¨oÑ>Ô>Ð>Ý�!•m¥\µ5´?ÐCÑDÔDñ(Ý �a�Ñ &Ô &ð Ýððàœ:ðñôñôˆDðœ.ˆKÝ.¨q°$Ñ7Ô7ð 'Ø”L $ s¨ s¤)¨T°"¬XÐ!6Ô7��à”L Ô&�Øð ݘ1”I�ÝÐ^Ð^Ð^Ð^Ð^Ð^ÐSTÔS]Ð^Ñ^Ô^Ñ^Ô^ˆØ �a”jÒ Ð ØˆHÝ �a�Ñ &Ô &ð 7Ý ¤ ¨gÑ6Ô6Ð 6Ý �a�œÑ )Ô )ð (ÝÔ#¥H¤L°'Ñ:Ô:Ð :à—;’;˜wÑ'Ô'Ð 'Ø €Hrcó—eZdZdZdZd„ZdS)Ú_FinalzMixin to prohibit subclassing.)Ú __weakref__có,—d|vrtd¦«‚dS)NÚ_rootz&Cannot subclass special typing classesrá)r³r“râs rÚ__init_subclass__z_Final.__init_subclass__ªs$€Ø ˜$Ð Ð ÝÐDÑEÔEÐ Eð Ð rN)r�ršr›Ú__doc__Ú __slots__rr rrrr¥s3€€€€€Ø(Ð(à €IðFðFðFðFðFrrcó"—eZdZdZdZd„Zd„ZdS)Ú _Immutablez3Mixin to indicate that object should not be copied.r có—|Sr r ©Úselfs rÚ__copy__z_Immutable.__copy__³ó€Øˆ rcó—|Sr r )r Úmemos rÚ __deepcopy__z_Immutable.__deepcopy__¶rrN)r�ršr›rrr rr rrr r ®s=€€€€€Ø=Ð=à€Iððððððððrr có—eZdZdZdZdZdS)Ú _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 rrrrºs$€€€€€ð ð ð€IØ€H€H€Hrrcód—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z ed „¦«Zd S)rƒ)Ú_namerÚ_getitemcóD—||_|j|_|j|_dSr )rr�rr)r Úgetitems rÚ__init__z_SpecialForm.__init__Ñs €ØˆŒ ØÔ%ˆŒ Ø”ˆŒ ˆ ˆ rcó6—|dvr|jSt|¦«‚)N>r�r›)rÚAttributeError)r Úitems rÚ __getattr__z_SpecialForm.__getattr__Ös$€Ø Ð/Ð /Ð /Ø”:Ð å˜TÑ"Ô"Ð"rcó&—td|›�¦«‚)NúCannot subclass rá)r Úbasess rÚ__mro_entries__z_SpecialForm.__mro_entries__Üs€ÝÐ3¨4Ð3Ð3Ñ4Ô4Ð4rcó—d|jzS©Nútyping.©rr s rÚ__repr__z_SpecialForm.__repr__ßó€Ø˜4œ:Ñ%Ð%rcó—|jSr r&r s rÚ __reduce__z_SpecialForm.__reduce__âó €ØŒzÐrcó&—td|›�¦«‚)NzCannot instantiate rá)r r“râs rÚ__call__z_SpecialForm.__call__ås€ÝÐ6¨dÐ6Ð6Ñ7Ô7Ð7rcó —t||fSr ©r"©r Úothers rÚ__or__z_SpecialForm.__or__èó€Ý�T˜5�[Ô!Ð!rcó —t||fSr r/r0s rÚ__ror__z_SpecialForm.__ror__ëó€Ý�U˜D�[Ô!Ð!rcó&—t|›d�¦«‚)Nz! cannot be used with isinstance()rá©r rŸs rÚ__instancecheck__z_SpecialForm.__instancecheck__îó€Ý˜4ÐBÐBÐBÑCÔCÐCrcó&—t|›d�¦«‚)Nz! cannot be used with issubclass()rá©r r³s rÚ__subclasscheck__z_SpecialForm.__subclasscheck__ñr:rcó.—| ||¦«Sr )r©r r¨s rÚ __getitem__z_SpecialForm.__getitem__ôs€à�}Š}˜T :Ñ.Ô.Ð.rN)r�ršr›rrrr"r'r*r-r2r5r9r=rìr@r rrrƒrƒÎsЀ€€€€Ø0€Ið'ð'ð'ð #ð#ð#ð 5ð5ð5ð&ð&ð&ðððð8ð8ð8ð"ð"ð"ð"ð"ð"ðDðDðDðDðDðDðð/ð/ñ„Yð/ð/ð/rrƒ)rcó—eZdZd„ZdS)Ú_LiteralSpecialFormcóN—t|t¦«s|f}|j|g|¢RŽSr )ryr„rr?s rr@z_LiteralSpecialForm.__getitem__ús5€Ý˜*¥eÑ,Ô,ð 'Ø$˜ˆJ؈tŒ}˜TÐ/ JÐ/Ð/Ð/Ð/rN)r�ršr›r@r rrrBrBùs#€€€€€ð0ð0ð0ð0ð0rrBcó(‡—eZdZˆfd„Zˆfd„ZˆxZS)Ú_AnyMetacóv•—|turtd¦«‚t¦« |¦«S)Nz+typing.Any cannot be used with isinstance())rr‚Úsuperr9)r rŸÚ __class__s €rr9z_AnyMeta.__instancecheck__s3ø€Ø •3ˆ;ˆ;ÝÐIÑJÔJÐ J݉wŒw×(Ò(¨Ñ-Ô-Ð-rcóZ•—|turdSt¦« ¦«S)Nz typing.Any)rrGr'©r rHs €rr'z_AnyMeta.__repr__s'ø€Ø •3ˆ;ˆ;Ø�<݉wŒw×ÒÑ!Ô!Ð!r)r�ršr›r9r'Ú __classcell__©rHs@rrErEsQø€€€€€ð.ð.ð.ð.ð.ð "ð"ð"ð"ð"ð"ð"ð"ð"rrEcó"‡—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óv•—|turtd¦«‚t¦« |¦«S)NzAny cannot be instantiated)rr‚rGÚ__new__)r³r“ÚkwargsrHs €rrOz Any.__new__s1ø€Ø •#ˆ:ˆ:ÝÐ8Ñ9Ô9Ð 9݉wŒw�Š˜sÑ#Ô#Ð#r)r�ršr›rrOrKrLs@rrr sBø€€€€€ð ð ð$ð$ð$ð$ð$ð$ð$ð$ð$rr)Ú 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 subscriptablerár?s rreres€õ �tÐ2Ð2Ð2Ñ 3Ô 3Ð3rcó&—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 rSrár?s rrara3s€õ, �tÐ2Ð2Ð2Ñ 3Ô 3Ð3rcó&—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 rSrár?s rrmrmLs€õ" �tÐ2Ð2Ð2Ñ 3Ô 3Ð3rcó&—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. rSrár?s rr`r``s€õ0 �tÐ2Ð2Ð2Ñ 3Ô 3Ð3rcóJ—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€©r r¨rs rrr{ó.€õ& �z dÐ#FÐ#FÐ#FÑ GÔ G€DÝ ˜ ˜wÑ 'Ô 'Ð'rcóJ—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. rXrYrZs rrr‘r[rcóx‡—|dkrtd¦«‚t|t¦«s|f}dŠtˆfd„|D¦«¦«}t|¦«}t |¦«dkr|dSt |¦«dkr#t 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ó8•K—|]}t|‰¦«V—ŒdSr ©rˆ©rðr×r…s €rrñzUnion..Ës-øèè€Ð?Ð?¨q•{ 1 cÑ*Ô*Ð?Ð?Ð?Ð?Ð?Ð?rérrŽNr©Úname)r‚ryr„rØr‘rxrÓ©r r¨r…s @rr"r"§sÍø€ð>�RÒÐÝÐ:Ñ;Ô;Ð;Ý �j¥%Ñ (Ô (ð#Ø �]ˆ Ø 5€CÝÐ?Ð?Ð?Ð?°JÐ?Ñ?Ô?Ñ?Ô?€JÝ% jÑ1Ô1€JÝ ˆ:�„˜!ÒÐØ˜!Œ}ÐÝ ˆ:�„˜!ÒÐ¥ T¡ ¤ ¨jÐ 8Ð 8Ý! $¨ ¸ÐDÑDÔDÐDÝ ˜d JÑ /Ô /Ð/rcó`—t||›d�¦«}t|td¦«fS)z,Optional[X] is equivalent to Union[X, None].z requires a single type.N)rˆr"rx)r r¨r{s rrrÓs1€õ �j TÐ"CÐ"CÐ"CÑ DÔ D€CÝ �•d˜4‘j”j�Ô !Ð!rc óä—t|¦«} td„ttt |¦«¦«¦«D¦«¦«}n#t $rYnwxYwt ||¦«S)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—|] \}}|V—Œ dSr r )rðr×rs rrñzLiteral..õs&èè€Ð^Ð^¡  A˜1Ð^Ð^Ð^Ð^Ð^Ð^r)rÛr„rÅrŠÚ_value_and_type_iterr‚rÚr?s rrrÙs€€õ2)¨Ñ4Ô4€Jð ÝÐ^Ð^­µdÕ;OÐPZÑ;[Ô;[Ñ6\Ô6\Ñ)]Ô)]Ð^Ñ^Ô^Ñ^Ô^ˆ ˆ øÝ ð ð ð Ø ˆð øøøõ   jÑ 1Ô 1Ð1s‘AAÁ 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. rSrár?s rrprpüs€õ �tÐ2Ð2Ð2Ñ 3Ô 3Ð3rcó0‡—|dkrtd¦«‚t|t¦«s|f}|ddus*t|dt¦«std¦«‚dŠgˆfd„|dd…D¦«¢|d‘R}t ||d ¬ ¦«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ó8•K—|]}t|‰¦«V—ŒdSr r_r`s €rrñzConcatenate..#s-øèè€ÐAÐA¨A•K  3Ñ'Ô'ÐAÐAÐAÐAÐAÐArNT©Ú_paramspec_tvars)r‚ryr„rr‹rds @rrr sÇø€ð�RÒÐÝÐ@ÑAÔAÐAÝ �j¥%Ñ (Ô (ð#Ø �]ˆ Ø �rŒN˜cÐ !Ð !¥Z° ¸2´Å Ñ%JÔ%JÐ !Ýð:ñ;ô;ð ;à ;€CØRÐAÐAÐAÐA°¸C¸R¸C´ÐAÑAÔAÐRÀ:ÈbÄ>ÐRÐR€JÝ # D¨*Ø59ð ;ñ ;ô ;ð;rcóJ—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(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). rXrYrZs rrqrq(s/€õ\ �z dÐ#FÐ#FÐ#FÑ GÔ G€DÝ ˜ ˜wÑ 'Ô 'Ð'rcóH—eZdZdZdZdddœd„Zd„Zd „Zd „Zd „Z d „Z d „Z dS)rz-Internal wrapper to hold a forward reference.)Ú__forward_arg__Ú__forward_code__Ú__forward_evaluated__Ú__forward_value__Ú__forward_is_argument__Ú__forward_is_class__Ú__forward_module__TNF)rwcóX—t|t¦«std|›�¦«‚| d¦«rd|›d�}n|} t |dd¦«}n #t $rt d|›�¦«‚wxYw||_||_d|_d|_ ||_ ||_ ||_ dS) Nz*Forward reference must be a string -- got Ú*ú(z,)[0]zÚevalz/Forward reference must be an expression -- got F) ryrzr‚Ú startswithÚcompileÚ SyntaxErrorrprqrrrsrtrurv)r r{r†rvrwÚarg_to_compileÚcodes rrzForwardRef.__init__bsæ€Ý˜#�sÑ#Ô#ð RÝÐPÈÐPÐPÑQÔQÐ Qð �>Š>˜#Ñ Ô ð !Ø+ ˜^˜^˜^ˆNˆNà ˆNð Yݘ>¨:°vÑ>Ô>ˆDˆDøÝð Yð Yð YÝÐWÐPSÐWÐWÑXÔXÐ Xð Yøøøð #ˆÔØ $ˆÔØ%*ˆÔ"Ø!%ˆÔØ'2ˆÔ$Ø$,ˆÔ!Ø"(ˆÔÐÐs ÁAÁA6có†—|j|vr|S|jr||ur¥|€|€ix}}n |€|}n|€|}|j�4ttj |jd¦«d|¦«}tt|j ||¦«d|j |j ¬¦«}t|||||jhz¦«|_ d|_|j S)NÚ__dict__z*Forward references must evaluate to types.)r†rtT)rprrrvr§ÚsysÚmodulesÚgetrˆrzrqrtrurórs)r rõrör÷Útype_s rrøzForwardRef._evaluatezsü€Ø Ô  ?Ð 2Ð 2؈KØÔ)ð .¨W¸HÐ-DÐ-DØÐ G OØ%'Ð'�˜7˜7ØÐ!Ø"��Ø�Ø"�ØÔ&Ð2Ý"Ý”K—O’O DÔ$;¸TÑBÔBÀJÐPXñô�õ Ý�TÔ*¨H°gÑ>Ô>Ø<Ø Ô8Ø$(Ô$=ð ñôˆEõ &0Ø�x ¨/¸TÔ=QÐ List[T]: '''Return a list containing n references to x.''' return [x]*n def longest(x: A, y: A) -> A: '''Return the longest of two strings.''' return x if len(x) >= len(y) else y The latter example's signature is essentially the overloading of (str, str) -> str and (bytes, bytes) -> bytes. Also note that if the arguments are instances of some subclass of str, the return type is still plain str. At runtime, isinstance(x, T) and issubclass(C, T) will raise TypeError. Type variables defined with covariant=True or contravariant=True can be used to declare covariant or contravariant generic types. See PEP 484 for more details. By default generic types are invariant in all type variables. Type variables can be introspected. e.g.: T.__name__ == 'T' T.__constraints__ == () T.__covariant__ == False T.__contravariant__ = False A.__constraints__ == (str, bytes) Note that only type variables defined in global scope can be pickled. NF©r¦r§r¨cóJ•‡—||_t¦« |||¦«|r|�td¦«‚|r"t |¦«dkrtd¦«‚dŠt ˆfd„|D¦«¦«|_t¦«}|dkr ||_dSdS)Nz-Constraints cannot be combined with bound=...raz"A single constraint is not allowedz:TypeVar(name, constraint, ...): constraints must be types.c3ó8•K—|]}t|‰¦«V—ŒdSr r_)rðr©r…s €rrñz#TypeVar.__init__..s-øèè€Ð$NÐ$N¸Q¥[°°CÑ%8Ô%8Ð$NÐ$NÐ$NÐ$NÐ$NÐ$NrÚtyping) r�rGrr‚r‘r„Ú__constraints__Ú_callerrš) r rcr¦r§r¨Ú constraintsÚdef_modr…rHs @€rrzTypeVar.__init__s¿øø€àˆŒ Ý ‰Œ×Ò˜  ¨=Ñ9Ô9Ð9Ø ð M˜5Ð,ÝÐKÑLÔLÐ LØ ð B�3˜{Ñ+Ô+¨qÒ0Ð0ÝÐ@ÑAÔAÐ AØJˆÝ$Ð$NÐ$NÐ$NÐ$NÀ+Ð$NÑ$NÔ$NÑNÔNˆÔÝ‘)”)ˆØ �hÒ Ð Ø%ˆDŒOˆOˆOð Ð rcóä—d}t||d¬¦«}t|t¦«r|jtus&t|t ¦«r#t |dd¦«rt|›d�¦«‚|S)Nú*Parameters to generic types must be types.T)r†rùFr~)rˆryr€r�rrr r§r‚)r r{r…s rr¢zTypeVar.__typing_subst__s~€Ø:ˆÝ˜#˜s°Ð5Ñ5Ô5ˆÝ ˜�]Ñ +Ô +ð D°´Å&Ð0HÐ0HÝ ˜�\Ñ *Ô *ð1IÝ/6°s¸NÈEÑ/RÔ/Rð1Iå˜sÐBÐBÐBÑCÔCÐ C؈ r)r�ršr›rrr¢rKrLs@rr r ãsfø€€€€€ð)ð)ðV26Ø °ð &ð &ð &ð &ð &ð &ð &ðððððððrr có0—eZdZdZd„Zd„Zd„Zd„Zd„ZdS)r!a~Type variable tuple. Usage: Ts = TypeVarTuple('Ts') # Can be given any name Just as a TypeVar (type variable) is a placeholder for a single type, a TypeVarTuple is a placeholder for an *arbitrary* number of types. For example, if we define a generic class using a TypeVarTuple: class C(Generic[*Ts]): ... Then we can parameterize that class with an arbitrary number of type arguments: C[int] # Fine C[int, str] # Also fine C[()] # Even this is fine For more details, see PEP 646. Note that only TypeVarTuples defined in global scope can be pickled. cóN—||_t¦«}|dkr ||_dSdS©Nr¹)r�r»rš)r rcr½s rrzTypeVarTuple.__init__@s2€ØˆŒ õ‘)”)ˆØ �hÒ Ð Ø%ˆDŒOˆOˆOð Ð rc#ó(K—t|V—dSr ©rrr s rrzTypeVarTuple.__iter__Hóèè€Ý�TŒlÐÐÐÐÐrcó—|jSr r�r s rr'zTypeVarTuple.__repr__Kržrcó —td¦«‚)Nz2Substitution of bare TypeVarTuple is not supportedrá©r r{s rr¢zTypeVarTuple.__typing_subst__Ns€ÝÐLÑMÔMÐMrc ó"—|j}| |¦«}||dzd…D])}t|t¦«rt d|›�¦«‚Œ*t |¦«}t |¦«}|}||z dz } d} d} t |¦«D]e\} } t| t¦«sKt| dd¦«}|r8t |¦«dkr%|ddur| �t d¦«‚| } |d} Œf| �'t|| ¦«}t| || z dz ¦«} n$|| z|krt d |›d |›d |dz ›�¦«‚g|d|…¢| g||z z¢t|||| z …¦«‘| g|| z |z |z dz z¢||| z d…¢RS) Nraz(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£Úindexryr!r‚r‘Ú enumeraterxr§Úminr„)r Úaliasr“rÄÚtypevartuple_indexÚparamrµÚplenr®r«Úvar_tuple_indexÚfillargÚkr{r¼s rÚ__typing_prepare_subst__z%TypeVarTuple.__typing_prepare_subst__QsF€ØÔ%ˆØ#Ÿ\š\¨$Ñ/Ô/ÐØÐ.°Ñ2Ð3Ð3Ô4ð Tð TˆEݘ%¥Ñ.Ô.ð TÝÐ RÈ5Ð RÐ RÑSÔSÐSð Tõ�4‰yŒyˆÝ�6‰{Œ{ˆØ!ˆØÐ)Ñ)¨AÑ-ˆØˆØˆÝ ‘o”oð )ð )‰FˆAˆsݘc¥4Ñ(Ô(ð )Ý! #Ð'GÈÑNÔN�Øð)�s 7™|œ|¨qÒ0Ð0°W¸R´[ÀCÐ5GÐ5GØ&Ð2Ý'Ð(`ÑaÔaÐaØ&'�OØ% aœj�GøØ Ð &Ý�t˜_Ñ-Ô-ˆDݘ˜t oÑ5¸Ñ9Ñ:Ô:ˆEˆEØ �E‰\˜DÒ Ð ÝðJ°UðJðJØ'+ðJðJØAEÀaÁðJðJñKôKð Kð Ø �%�4�%Œ[ð àˆiÐ+¨dÑ2Ñ3ð õ �$�t˜T E™\Ð)Ô*Ñ +Ô +ð ðˆi˜ ™¨Ñ,Ð/AÑAÀAÑEÑFð  ð �$˜‘,�-�-Ô ð  ð ð rN) r�ršr›rrrr'r¢rÕr rrr!r!'sl€€€€€ððð0&ð&ð&ðððððððNðNðNð" ð" ð" ð" ð" rr!có$—eZdZdZd„Zd„Zd„ZdS)rha<The 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ó—||_dSr ©r�©r Úorigins rrzParamSpecArgs.__init__‚ó €Ø ˆŒˆˆrcó —|jj›d�S)Nz.args©r�r�r s rr'zParamSpecArgs.__repr__…s€Ø”/Ô*Ð1Ð1Ð1Ð1rcóZ—t|t¦«stS|j|jkSr )ryrhr‡r�r0s rrˆzParamSpecArgs.__eq__ˆs*€Ý˜%¥Ñ/Ô/ð "Ý!Ð !ØŒ %Ô"2Ò2Ð2rN©r�ršr›rrr'rˆr rrrhrhvsK€€€€€ð ð ð!ð!ð!ð2ð2ð2ð3ð3ð3ð3ð3rrhcó$—eZdZdZd„Zd„Zd„ZdS)riaFThe 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ó—||_dSr rØrÙs rrzParamSpecKwargs.__init__šrÛrcó —|jj›d�S)Nz.kwargsrÝr s rr'zParamSpecKwargs.__repr__�s€Ø”/Ô*Ð3Ð3Ð3Ð3rcóZ—t|t¦«stS|j|jkSr )ryrir‡r�r0s rrˆzParamSpecKwargs.__eq__ s*€Ý˜%¥Ñ1Ô1ð "Ý!Ð !ØŒ %Ô"2Ò2Ð2rNrßr rrririŽsK€€€€€ð ð ð!ð!ð!ð4ð4ð4ð3ð3ð3ð3ð3rricód‡—eZdZdZed„¦«Zed„¦«Zddddœˆfd„ Zd„Zd „Z ˆxZ S) 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 as the first argument to ``Callable``, or as parameters for user-defined Generics. 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 can be introspected. e.g.: P.__name__ == 'P' Note that only parameter specification variables defined in global scope can be pickled. có —t|¦«Sr )rhr s rr“zParamSpec.argsÍs€å˜TÑ"Ô"Ð"rcó —t|¦«Sr )rir s rrPzParamSpec.kwargsÑs€å˜tÑ$Ô$Ð$rNFr¶có–•—||_t¦« |||¦«t¦«}|dkr ||_dSdSrÂ)r�rGrr»rš)r rcr¦r§r¨r½rHs €rrzParamSpec.__init__ÕsMø€ØˆŒ Ý ‰Œ×Ò˜  ¨=Ñ9Ô9Ð9Ý‘)”)ˆØ �hÒ Ð Ø%ˆDŒOˆOˆOð Ð rcó´—t|ttf¦«rtd„|D¦«¦«}n!t|¦«st d|›�¦«‚|S)Nc3ó6K—|]}t|d¦«V—ŒdS)zExpected a type.Nr_©rðrôs rrñz-ParamSpec.__typing_subst__..Þs-èè€ÐHÐH¸q�  AÐ'9Ñ:Ô:ÐHÐHÐHÐHÐHÐHrzFExpected a list of types, an ellipsis, ParamSpec, or Concatenate. Got )ryrŠr„rŒr‚rÈs rr¢zParamSpec.__typing_subst__Üsw€Ý �c�D¥%˜=Ñ )Ô )ð EÝÐHÐHÀCÐHÑHÔHÑHÔHˆCˆCÝ Ñ$Ô$ð EÝðDØ>AðDðDñEôEð Eàˆ rcót—|j}| |¦«}|t|¦«krtd|›�¦«‚t|¦«dkrt |d¦«s|f}nJt ||t ¦«r/g|d|…¢t||¦«‘||dzd…¢R}|S)NrÊrar)r£rËr‘r‚rŒryrŠr„)r rÎr“rÄÚis rrÕz"ParamSpec.__typing_prepare_subst__äs¼€ØÔ%ˆØ �LŠL˜Ñ Ô ˆØ •�D‘ ” Š>ˆ>ÝÐ<°UÐ<Ð<Ñ=Ô=Ð =å ˆv‰;Œ;˜!Ò Ð ¥N°4¸´7Ñ$;Ô$;Ð à�7ˆDˆDå ˜˜Qœ¥Ñ &Ô &ð <Ø;�T˜"˜1˜"”XÐ;�u T¨!¤W™~œ~Ð;°°Q°q±S°T°T´ Ð;Ð;ˆD؈ r) r�ršr›rÚpropertyr“rPrr¢rÕrKrLs@rrr¦sªø€€€€€ð#ð#ðJð#ð#ñ„Xð#ðð%ð%ñ„Xð%ð'+°eÈ5ð&ð&ð&ð&ð&ð&ð&ðððð ð ð ð ð ð ð rrcóV—| d¦«o| d¦«S)NÚ__)r{Úendswith)Úattrs rÚ _is_dunderròòs%€Ø �?Š?˜4Ñ Ô Ð 8 T§]¢]°4Ñ%8Ô%8Ð8rcó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©Úinstrccó>—||_||_||_d|_dSr )Ú_instrr�r)r rÚrörcs rrz_BaseGenericAlias.__init__ÿs"€ØˆŒ ؈Œ Ø ˆŒØˆŒˆˆrcóª—|js%td|j›d|jj›d�¦«‚|j|i|¤Ž} ||_n#t $rYnwxYw|S)NzType z cannot be instantiated; use z () instead)rør‚rr�r�Ú__orig_class__Ú Exception)r r“rPÚresults rr-z_BaseGenericAlias.__call__sŸ€ØŒzð IÝðH D¤JðHðHØ#'¤?Ô#;ðHðHðHñIôIð Ià �” $Ð1¨&Ð1Ð1ˆð Ø$(ˆFÔ !Ð !øõð ð ð Ø ˆDð øøøàˆ s»AÁ AÁAcó@—g}|j|vr| |j¦«| |¦«}||dzd…D].}t|t¦«st |t ¦«rnŒ/| t ¦«t|¦«S)Nra)r�r¥rËryrôÚ issubclassrr„)r r!ÚresrìÚbs rr"z!_BaseGenericAlias.__mro_entries__s¢€ØˆØ Œ? %Ð 'Ð 'Ø �JŠJ�t”Ñ 'Ô 'Ð 'Ø �KŠK˜Ñ Ô ˆØ�q˜‘s�t�t”ð ð ˆAݘ!Õ.Ñ/Ô/ð µ:¸aÅÑ3IÔ3Ið Ø�ð ð �JŠJ•wÑ Ô Ð Ý�S‰zŒzÐrcó¨—|dvr|jp |jjSd|jvr$t |¦«st |j|¦«St |¦«‚)N>r�r›r�)rr�r�r�ròr§r)r rñs rrz_BaseGenericAlias.__getattr__s\€Ø Ð/Ð /Ð /Ø”:Ð9 ¤Ô!9Ð 9ð ˜4œ=Ð (Ð (µ¸DÑ1AÔ1AÐ (ݘ4œ?¨DÑ1Ô1Ð 1ݘTÑ"Ô"Ð"rc󢕗t|¦«s|dvr$t¦« ||¦«dSt|j||¦«dS)N>rørÚ_nparamsrm)ròrGÚ __setattr__Úsetattrr�)r rñÚvalrHs €rrz_BaseGenericAlias.__setattr__(s^ø€Ý �dÑ Ô ð 0˜tð(<ð <ð <å ‰GŒG× Ò   cÑ *Ô *Ð *Ð *Ð *å �D”O T¨3Ñ /Ô /Ð /Ð /Ð /rcóF—| t|¦«¦«Sr ©r=rxr8s rr9z#_BaseGenericAlias.__instancecheck__/ó€Ø×%Ò%¥d¨3¡i¤iÑ0Ô0Ð0rcó —td¦«‚)NzBSubscripted generics cannot be used with class and instance checksrár<s rr=z#_BaseGenericAlias.__subclasscheck__2s€Ýð5ñ6ô6ð 6rc ó¶•—ttt¦« ¦«d„t |j¦«D¦«z¦«¦«S)Ncó0—g|]}t|¦«°|‘ŒSr )rò)rðrñs rú z-_BaseGenericAlias.__dir__..8s%€ÐQÐQÐQ˜DÅ È4Ñ@PÔ@PÐQ�4ÐQÐQÐQr)rŠÚsetrGÚ__dir__Údirr�rJs €rrz_BaseGenericAlias.__dir__6sWø€Ý•C�™œŸšÑ)Ô)ØQÐQ¥C¨¬Ñ$8Ô$8ÐQÑQÔQñRñSôSñTôTð Tr) r�ršr›rrr-r"rrr9r=rrKrLs@rrôrôõsÏø€€€€€ððð(,°$ðððððð ð ð ð ð ð ð#ð#ð#ð0ð0ð0ð0ð0ð1ð1ð1ð6ð6ð6ðTðTðTðTðTðTðTðTðTrrôc󄇗eZdZddddœˆfd„ Zd„Zd„Zd„Zd „Zed „¦«Z d „Z d „Z d „Z d„Z d„Zˆfd„Zd„ZˆxZS)r€TNF)rörcrmcó•—t¦« |||¬¦«t|t¦«s|f}td„|D¦«¦«|_t |¦«|_||_|s|j|_dSdS)Nrõc3ó0K—|]}|turdn|V—ŒdS).N)Ú_TypingEllipsisrês rrñz)_GenericAlias.__init__..esEèè€ð/ð/Ø$%ð&'­/Ð%9Ð%9˜c˜cØð/ð/ð/ð/ð/ð/r) rGrryr„rÕr¤r£rmrš)r rÚr“rörcrmrHs €rrz_GenericAlias.__init__`s ø€å ‰Œ×Ò˜ d°ÐÑ6Ô6Ð6ݘ$¥Ñ&Ô&ð Ø�7ˆDÝð/ð/Ø)-ð/ñ/ô/ñ/ô/ˆŒ å1°$Ñ7Ô7ˆÔØ 0ˆÔØð 0Ø$Ô/ˆDŒOˆOˆOð 0ð 0rcóz—t|t¦«stS|j|jko|j|jkSr )ryr€r‡r�rÕr0s rrˆz_GenericAlias.__eq__ls=€Ý˜%¥Ñ/Ô/ð "Ý!Ð !Ø” 5Ô#3Ò3ð4Ø”M U¤^Ò3ð 5rcó8—t|j|jf¦«Sr )rŠr�rÕr s rr‹z_GenericAlias.__hash__rs€Ý�T”_ d¤mÐ4Ñ5Ô5Ð5rcó —t||fSr r/rªs rr2z_GenericAlias.__or__ur3rcó —t||fSr r/r­s rr5z_GenericAlias.__ror__xr¯rcóZ—|jttfvrtd|›�¦«‚|jst|›d�¦«‚t |t ¦«s|f}t d„|D¦«¦«}t|¦«}| |¦«}|  |¦«}|S)Nz%Cannot subscript already-subscripted r¬c3ó4K—|]}t|¦«V—ŒdSr ©r|©rðr×s rrñz,_GenericAlias.__getitem__..•s*èè€Ð4Ð4¨!•] 1Ñ%Ô%Ð4Ð4Ð4Ð4Ð4Ð4r) r�rrr‚r£ryr„r½Ú_determine_new_argsrý)r r“Únew_argsÚrs rr@z_GenericAlias.__getitem__{s¼€ð" Œ?�w­Ð1Ð 1Ð 1åÐJÀDÐJÐJÑKÔKÐ KØÔ"ð >ݘtÐ<Ð<Ð<Ñ=Ô=Ð =õ˜$¥Ñ&Ô&ð Ø�7ˆDÝÐ4Ð4¨tÐ4Ñ4Ô4Ñ4Ô4ˆÝ˜DÑ!Ô!ˆØ×+Ò+¨DÑ1Ô1ˆØ �NŠN˜8Ñ $Ô $ˆØˆrc óp—|j}|D]!}t|dd¦«}|� |||¦«}Œ"t|¦«}t|¦«}||kr#td||krdnd›d|›d|›d|›�¦«‚t t ||¦«¦«}t | |j|¦«¦«S)NrÕr­r®r¯r°r±r²) r£r§r‘r‚rÁÚzipr„Ú_make_substitutionrÕ)r r“rÄrÐÚpreparerµrÑÚnew_arg_by_params rrz!_GenericAlias._determine_new_args›sö€ðÔ$ˆàð +ð +ˆEݘeÐ%?ÀÑFÔFˆGØÐ"Ø�w˜t TÑ*Ô*�øÝ�4‰yŒyˆÝ�6‰{Œ{ˆØ �4Š<ˆ<Ýð?¨T°Dª[¨[ 6 6¸eð?ð?ÐTXð?ð?Ø'+ð?ð?Ø8<ð?ð?ñ@ô@ð @奠F¨DÑ 1Ô 1Ñ2Ô2ÐÝ�T×,Ò,¨T¬]ÐÔ>��å# GÐ-=¸rÑBÔB� Ø ð 6Ø%�G�Gà �GØ&ð@ð@˜Ý% a­Ñ6Ô6ð@Ø#ŸNšNÐ+;¸AÔ+>Ñ?Ô?Ð?Ð?à#ŸNšNÐ+;¸AÔ+>Ñ?Ô?Ð?Ð?Ø%¥e¨G¡n¤nÔ5�GàŒ¥+¤/Ô":Ò:Ð:½zÈ'ÕSXÑ?YÔ?YÐ:ð—’ Ñ(Ô(Ð(Ñ(Ý*¨7Ñ3Ô3ð )ð—’ Ñ(Ô(Ð(Ñ(ݘG¥UÑ+Ô+ð )ð—’ݘ$×1Ò1°'Ð;KÑLÔLÑMÔMñôðñð—’ Ñ(Ô(Ð(Ñ(؈rcó^—| |j||j|j|j¬¦«S)N©rcrörm)rHr�rrørm©r r“s rrýz_GenericAlias.copy_withös4€Ø�~Š~˜dœo¨t¸$¼*È4Ì:Ø/3Ô/DðñFôFð Frcóº—|jr d|jz}nt|j¦«}|jr%d d„|jD¦«¦«}nd}|›d|›d�S)Nr%ú, có,—g|]}t|¦«‘ŒSr ©r rês rr z*_GenericAlias.__repr__..s€ÐCÐCÐC°�j¨™mœmÐCÐCÐCrz()ú[ú])rr r�rÕÚjoin)r rcr“s rr'z_GenericAlias.__repr__úsu€Ø Œ:ð /ؘtœzÑ)ˆDˆDå˜dœoÑ.Ô.ˆDØ Œ=ð Ø—9’9ÐCÐC°T´]ÐCÑCÔCÑDÔDˆDˆDðˆDØÐ Ð ˜Ð Ð Ð Ð rcóþ—|jrt¦«|j}n|j}t|j¦«}t |¦«dkrt |dt¦«s|\}tj||ffS)Nrar) rÚglobalsr�r„rÕr‘ryrûr)r rÚr“s rr*z_GenericAlias.__reduce__sn€Ø Œ:ð %Ý‘Y”Y˜tœzÔ*ˆFˆFà”_ˆFÝ�T”]Ñ#Ô#ˆÝ ˆt‰9Œ9˜Š>ˆ>¥*¨T°!¬WµeÑ"<Ô"<ˆ>؉EˆDÝÔ &¨$ Ð/Ð/rcóp•—t|jt¦«rtd|›�¦«‚|jr!t ¦« |¦«S|jturLt|vrdS|  |¦«}||dzd…D]}t|t¦«r||urdSŒ|jfS)Nr r ra) ryr�rƒr‚rrGr"rrrËrô)r r!rìrrHs €rr"z_GenericAlias.__mro_entries__sÇø€Ý �d”o¥|Ñ 4Ô 4ð 9ÝÐ7¨tÐ7Ð7Ñ8Ô8Ð 8à Œ:ð 2Ý‘7”7×*Ò*¨5Ñ1Ô1Ð 1Ø Œ?�gÐ %Ð %ݘ5Ð Ð Ø�rØ— ’ ˜DÑ!Ô!ˆAؘ1˜Q™3˜4˜4”[ð ð �ݘaÕ!2Ñ3Ô3ð¸À¸ ¸ ؘ2˜2øØ”Ð!Ð!rc#ó(K—t|V—dSr rÄr s rrz_GenericAlias.__iter__rÅr)r�ršr›rrˆr‹r2r5rìr@rr"rýr'r*r"rrKrLs@rr€r€Fsø€€€€€ð4.2¸Ø"'ð 0ð 0ð 0ð 0ð 0ð 0ð 0ð5ð5ð5ð 6ð6ð6ð"ð"ð"ð!ð!ð!ðððñ„Yðð>OðOðOð:<ð<ð<ð|FðFðFð !ð !ð !ð0ð0ð0ð "ð "ð "ð "ð "ðððððððrr€cód‡—eZdZdddœˆfd„ Zed„¦«Zd„Zd„Zˆfd„Zd „Z d „Z d „Z ˆxZ S) Ú_SpecialGenericAliasTNrõcóÚ•—|€|j}t¦« |||¬¦«||_|jdkrd|j›d�|_dSd|j›d|j›d�|_dS)Nrõr–zA generic version of r)r�rGrrršr›r)r rÚÚnparamsrörcrHs €rrz_SpecialGenericAlias.__init__(s€ø€Ø ˆ<Ø”?ˆDÝ ‰Œ×Ò˜ d°ÐÑ6Ô6Ð6؈Œ Ø Ô   Ò *Ð *ØI°6Ô3FÐIÐIÐIˆDŒLˆLˆLà]°6Ô3DÐ]Ð]ÀvÔGZÐ]Ð]Ð]ˆDŒLˆLˆLrcóć—t|t¦«s|f}dŠtˆfd„|D¦«¦«}t|||j¦«| |¦«S)Nr¿c3ó8•K—|]}t|‰¦«V—ŒdSr r_r`s €rrñz3_SpecialGenericAlias.__getitem__..7ó-øèè€Ð;Ð;¨q•{ 1 cÑ*Ô*Ð;Ð;Ð;Ð;Ð;Ð;r)ryr„r¶rrý©r rÄr…s @rr@z _SpecialGenericAlias.__getitem__2siø€å˜&¥%Ñ(Ô(ð Ø�YˆFØ:ˆÝÐ;Ð;Ð;Ð;°FÐ;Ñ;Ô;Ñ;Ô;ˆÝ�t˜V T¤]Ñ3Ô3Ð3Ø�~Š~˜fÑ%Ô%Ð%rcóF—t|j||j|j¬¦«S)N)rcrö)r€r�rrø©r rÄs rrýz_SpecialGenericAlias.copy_with;s(€Ý˜Tœ_¨fØ"&¤*°4´:ð?ñ?ô?ð ?rcó—d|jzSr$r&r s rr'z_SpecialGenericAlias.__repr__?r(rcóø•—t|t¦«rt|j|j¦«St|t¦«st||j¦«St ¦« |¦«Sr )ryr9rþr�r€rGr=)r r³rHs €rr=z&_SpecialGenericAlias.__subclasscheck__Bsfø€Ý �cÕ/Ñ 0Ô 0ð ?ݘcœn¨d¬oÑ>Ô>Ð >ݘ#�}Ñ-Ô-ð 4ݘc 4¤?Ñ3Ô3Ð 3݉wŒw×(Ò(¨Ñ-Ô-Ð-rcó—|jSr r&r s rr*z_SpecialGenericAlias.__reduce__Ir+rcó —t||fSr r/rªs rr2z_SpecialGenericAlias.__or__Lr3rcó —t||fSr r/r­s rr5z_SpecialGenericAlias.__ror__Or¯r) r�ršr›rrìr@rýr'r=r*r2r5rKrLs@rr9r9'sÍø€€€€€Ø04¸4ð^ð^ð^ð^ð^ð^ð^ðð&ð&ñ„Yð&ð?ð?ð?ð&ð&ð&ð.ð.ð.ð.ð.ðððð"ð"ð"ð!ð!ð!ð!ð!ð!ð!rr9có$‡—eZdZˆfd„Zd„ZˆxZS)Ú_CallableGenericAliascó$•—|j}t|¦«dkr5t|d¦«r t¦« ¦«Sdd d„|dd…D¦«¦«›dt |d¦«›d�S) NrŽrztyping.Callable[[r.có,—g|]}t|¦«‘ŒSr r0rês rr z2_CallableGenericAlias.__repr__..Ys€ÐAÐAÐA°!¥ ¨1¡ ¤ ÐAÐAÐArr¹z], r2)rÕr‘rŒrGr'r3r ©r r“rHs €rr'z_CallableGenericAlias.__repr__Ss—ø€àŒ}ˆÝ ˆt‰9Œ9˜Š>ˆ>�n¨T°!¬WÑ5Ô5ˆ>Ý‘7”7×#Ò#Ñ%Ô%Ð %ð+Ø—Y’YÐAÐA°t¸C¸R¸C´yÐAÑAÔAÑBÔBð+ð+å˜d 2œhÑ'Ô'ð+ð+ð+ð ,rcóÈ—|j}t|¦«dkrt|d¦«st|dd…¦«|df}tjt |ffS)NrŽrr¹)rÕr‘rŒrŠrûrrr,s rr*z _CallableGenericAlias.__reduce__\sW€ØŒ}ˆÝ�D‘ ” ˜Q’�¥>°$°q´'Ñ#:Ô#:�ݘ˜S˜b˜Sœ ‘?”? D¨¤HÐ,ˆDÝÔ¥(¨DÐ!1Ð1Ð1r)r�ršr›r'r*rKrLs@rrHrHRsGø€€€€€ð,ð,ð,ð,ð,ð2ð2ð2ð2ð2ð2ð2rrHcó0—eZdZd„Zd„Zed„¦«ZdS)Ú _CallableTypecóH—t|j||j|jd¬¦«S)NTr+)rHr�rrørAs rrýz_CallableType.copy_withds+€Ý$ T¤_°fØ*.¬*¸4¼:Ø6:ð<ñ<ô<ð .€s*èè€Ð8Ð8¨C•] 3Ñ'Ô'Ð8Ð8Ð8Ð8Ð8Ð8r)rˆÚEllipsisrýrryr„)r rÄr“rür…s rrQz_CallableType.__getitem_inner__ws”€à‰ ˆˆfØ>ˆÝ˜V SÑ)Ô)ˆØ •8Ð Ð Ø—>’>¥?°FÐ";Ñ<Ô<Ð <ݘ$¥Ñ&Ô&ð Ø�7ˆDÝÐ8Ð8°4Ð8Ñ8Ô8Ñ8Ô8ˆØ˜˜ Ñ!ˆØ�~Š~˜fÑ%Ô%Ð%rN)r�ršr›rýr@rìrQr rrrNrNcsM€€€€€ð<ð<ð<ð .ð .ð .ðð &ð &ñ„Yð &ð &ð &rrNcó$—eZdZed„¦«ZdS)Ú _TupleTypecóZ‡—t|t¦«s|f}t|¦«dkrN|ddurDdŠtˆfd„|dd…D¦«¦«}| g|¢t‘R¦«SdŠtˆfd„|D¦«¦«}| |¦«S)NrŽr¹.z Tuple[t, ...]: t must be a type.c3ó8•K—|]}t|‰¦«V—ŒdSr r_r`s €rrñz)_TupleType.__getitem__..Œs-øèè€ÐDÐD°1�; q¨#Ñ.Ô.ÐDÐDÐDÐDÐDÐDrz*Tuple[t0, t1, ...]: each t must be a type.c3ó8•K—|]}t|‰¦«V—ŒdSr r_r`s €rrñz)_TupleType.__getitem__..�r>r)ryr„r‘rýrr?s @rr@z_TupleType.__getitem__†sÃø€å˜&¥%Ñ(Ô(ð Ø�YˆFÝ ˆv‰;Œ;˜!Ò Ð   r¤ ¨cÐ 1Ð 1Ø4ˆCÝÐDÐDÐDÐD¸¸sÀ¸s¼ ÐDÑDÔDÑDÔDˆFØ—>’>Ð"< FÐ"<­OÐ"<Ð"<Ñ=Ô=Ð =Ø:ˆÝÐ;Ð;Ð;Ð;°FÐ;Ñ;Ô;Ñ;Ô;ˆØ�~Š~˜fÑ%Ô%Ð%rN)r�ršr›rìr@r rrrVrV…s-€€€€€Øð &ð &ñ„Yð &ð &ð &rrVcóF‡—eZdZd„Zd„Zd„Zˆfd„Zd„Zd„Zˆfd„Z ˆxZ S)rÓcó—t|Sr r/rAs rrýz_UnionGenericAlias.copy_with”s €Ý�VŒ}Ðrcóü—t|ttjf¦«stS t |j¦«t |j¦«kS#t$rt|j|j¦«cYSwxYwr ) ryrÓr˜rÔr‡rrÕr‚rÑr0s rrˆz_UnionGenericAlias.__eq__—s€€Ý˜%Õ"4µe´oÐ!FÑGÔGð "Ý!Ð !ð JÝ�t”}Ñ%Ô%­¨U¬^Ñ)<Ô)<Ò<Ð <øÝð Jð Jð JÝ*¨4¬=¸%¼.ÑIÔIÐ IÐ IÐ Ið Jøøøsª)AÁ$A;Á:A;cóD—tt|j¦«¦«Sr )rŠÚ frozensetrÕr s rr‹z_UnionGenericAlias.__hash__Ÿs€Ý•I˜dœmÑ,Ô,Ñ-Ô-Ð-rcó8•—|j}t|¦«dkr`|dtd¦«urdt|d¦«›d�S|dtd¦«urdt|d¦«›d�St ¦« ¦«S)NrŽrztyping.Optional[rar2)rÕr‘rxr rGr'rKs €rr'z_UnionGenericAlias.__repr__¢s“ø€ØŒ}ˆÝ ˆt‰9Œ9˜Š>ˆ>Ø�AŒw�$˜t™*œ*Ð$Ð$Ø@­*°T¸!´WÑ*=Ô*=Ð@Ð@Ð@Ð@Ø�a”�D ™JœJÐ&Ð&Ø@­*°T¸!´WÑ*=Ô*=Ð@Ð@Ð@Ð@݉wŒw×ÒÑ!Ô!Ð!rcóF—| t|¦«¦«Sr rr8s rr9z$_UnionGenericAlias.__instancecheck__«r rcó@—|jD]}t||¦«rdSŒdS)NT)rÕrþ)r r³r{s rr=z$_UnionGenericAlias.__subclasscheck__®s;€Ø”=ð ð ˆCݘ#˜sÑ#Ô#ð Ø�t�tð ð ð rcóf•—t¦« ¦«\}\}}|t|ffSr )rGr*r")r rärÚr“rHs €rr*z_UnionGenericAlias.__reduce__³s0ø€Ý$™wœw×1Ò1Ñ3Ô3ш‰nˆv�tØ•e˜T�]Ð"Ð"r) r�ršr›rýrˆr‹r'r9r=r*rKrLs@rrÓrÓ“sŸø€€€€€ððððJðJðJð.ð.ð.ð"ð"ð"ð"ð"ð1ð1ð1ðððð #ð#ð#ð#ð#ð#ð#ð#ð#rrÓcó—d„|D¦«S)Nc3ó8K—|]}|t|¦«fV—ŒdSr )rxrs rrñz'_value_and_type_iter..¹s,èè€Ð -Ð -˜QˆQ•�Q‘”ˆLÐ -Ð -Ð -Ð -Ð -Ð -rr )r¨s rrhrh¸s€Ø -Ð - *Ð -Ñ -Ô -Ð-rcó—eZdZd„Zd„ZdS)rÚcó—t|t¦«stStt |j¦«¦«tt |j¦«¦«kSr )ryrÚr‡rrhrÕr0s rrˆz_LiteralGenericAlias.__eq__½sN€Ý˜%Õ!5Ñ6Ô6ð "Ý!Ð !åÕ'¨¬ Ñ6Ô6Ñ7Ô7½3Õ?SÐTYÔTbÑ?cÔ?cÑ;dÔ;dÒdÐdrcó^—ttt|j¦«¦«¦«Sr )rŠr^rhrÕr s rr‹z_LiteralGenericAlias.__hash__Ãs#€Ý•IÕ2°4´=ÑAÔAÑBÔBÑCÔCÐCrN)r�ršr›rˆr‹r rrrÚrÚ¼s:€€€€€ðeðeðeð DðDðDðDðDrrÚcó‡—eZdZˆfd„ZˆxZS)r‹có•—t|dttf¦«rg|dd…¢|d¢RSt|dt¦«rg|dd…¢|dj¢R}t ¦« |¦«S)Nr¹)ryrŠr„r‹rÕrGrý)r rÄrHs €rrýz"_ConcatenateGenericAlias.copy_withÈsŒø€Ý �f˜R”j¥4­ -Ñ 0Ô 0ð /Ø.�V˜C˜R˜C”[Ð. 6¨"¤:Ð.Ð.Ð .Ý �f˜R”jÕ":Ñ ;Ô ;ð :Ø9�v˜c˜r˜c”{Ð9 V¨B¤ZÔ%8Ð9Ð9ˆF݉wŒw× Ò  Ñ(Ô(Ð(r)r�ršr›rýrKrLs@rr‹r‹Çs8ø€€€€€ð)ð)ð)ð)ð)ð)ð)ð)ð)rr‹cóL—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]): ... 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. rX)rÚr“)rˆÚ_UnpackGenericAliasrZs rrrrrÐs1€õ> �z dÐ#FÐ#FÐ#FÑ GÔ G€DÝ  d°$°Ð 9Ñ 9Ô 9Ð9rcóP‡—eZdZd„Zˆfd„Zed„¦«Zed„¦«ZˆxZS)rkcó<—dt|jd¦«zS)Nrxr)r™rÕr s rr'z_UnpackGenericAlias.__repr__ôs€ð•T˜$œ-¨Ô*Ñ+Ô+Ñ+Ð+rcóX•—|jr|St¦« |¦«Sr )r•rGr@rKs €rr@z_UnpackGenericAlias.__getitem__ùs+ø€Ø Ô 3ð ØˆK݉wŒw×"Ò" 4Ñ(Ô(Ð(rcóP—|j\}t|t¦«r|jSdSr )rÕryr€rÈs rr¸z2_UnpackGenericAlias.__typing_unpacked_tuple_args__þs,€ðŒ}‰ˆÝ �c�=Ñ )Ô )ð à”<Р؈trcóB—t|jdt¦«S©Nr)ryrÕr!r s rr•z7_UnpackGenericAlias.__typing_is_unpacked_typevartuple__s€õ˜$œ-¨Ô*­LÑ9Ô9Ð9r) r�ršr›r'r@rír¸r•rKrLs@rrkrkós}ø€€€€€ð,ð,ð,ð )ð)ð)ð)ð)ð ððñ„Xððð:ð:ñ„Xð:ð:ð:ð:ð:rrkcó@‡—eZdZdZdZdZed„¦«Zˆfd„ZˆxZ S)raCAbstract base class for generic types. A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:: class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc. This class can then be used as follows:: def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default r Fcó:—t|t¦«s|f}td„|D¦«¦«}|ttfvr‘|st d|j›d�¦«‚t d„|D¦«¦«st d|j›d�¦«‚tt|¦«¦«t|¦«krt d|j›d�¦«‚n¸|j D]!}t|dd ¦«}|� |||¦«}Œ"t||t|j ¦«¦«g}t|j |¦«D]E\}}t|t¦«r| |¦«Œ0| |¦«ŒFt|¦«}t#||d ¬ ¦«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ó4K—|]}t|¦«V—ŒdSr rrs rrñz,Generic.__class_getitem__..4s*èè€Ð8Ð8¨A•} QÑ'Ô'Ð8Ð8Ð8Ð8Ð8Ð8rzParameter list to z[...] cannot be emptyc3ó4K—|]}t|¦«V—ŒdSr )r™rs rrñz,Generic.__class_getitem__..;s+èè€Ð;Ð;¨qÕ'¨Ñ*Ô*Ð;Ð;Ð;Ð;Ð;Ð;rzParameters to zF[...] must all be type variables or parameter specification variables.z[...] must all be uniquerÕNTrl)ryr„rrr‚r›Úallr�r‘rr£r§r¶r!r!rºr¥r€)r³rÄrÐr#rr(s rÚ__class_getitem__zGeneric.__class_getitem__&sï€õ˜&¥%Ñ(Ô(ð Ø�YˆFåÐ8Ð8°Ð8Ñ8Ô8Ñ8Ô8ˆØ •7�HÐ%Ð %Ð %àð ÝØP¨Ô)9ÐPÐPÐPñôðõÐ;Ð;°FÐ;Ñ;Ô;Ñ;Ô;ð >Ýð= S¤\ð=ð=ð=ñ>ô>ð>õ•3�v‘;”;ÑÔ¥3 v¡;¤;Ò.Ð.ÝØK S¤\ÐKÐKÐKñMôMðMð/ð Ô+ð 2ð 2�Ý! %Ð)CÀTÑJÔJ�ØÐ&Ø$˜W S¨&Ñ1Ô1�FøÝ ˜3 ­¨CÔ,>Ñ(?Ô(?Ñ @Ô @Ð @àˆHÝ"% cÔ&8¸&Ñ"AÔ"Að -ð -‘��wݘe¥\Ñ2Ô2ð-Ø—O’O GÑ,Ô,Ð,Ð,à—O’O GÑ,Ô,Ð,Ð,ݘ8‘_”_ˆFå˜S &Ø.2ð4ñ4ô4ð 4rcóà•‡ —t¦«j|i|¤Žg}d|jvrt|jv}n1t|jvo"|jdkot|¦«tk}|rtd¦«‚d|jvrÙt|j¦«}d}|jD]=}t|t¦«r&|j tur|�td¦«‚|j}Œ>|�|t|¦«}t|¦«Š |‰ ksVd ˆ fd„|D¦«¦«}d d„|D¦«¦«} td|›d | ›d �¦«‚|}t#|¦«|_dS) NÚ__orig_bases__rz!Cannot inherit from plain Genericz0Cannot inherit from Generic[...] multiple times.r.c3ó>•K—|]}|‰v¯t|¦«V—ŒdSr ©rz)rðr©Úgvarsets €rrñz,Generic.__init_subclass__..ss3øèè€Ð&QÐ&Q°!ÀÈÐ@PÐ@P¥s¨1¡v¤vÐ@PÐ@PÐ@PÐ@PÐ&QÐ&Qrc3ó4K—|]}t|¦«V—ŒdSr r{)rðÚgs rrñz,Generic.__init_subclass__..ts(èè€Ð&=Ð&=°!¥s¨1¡v¤vÐ&=Ð&=Ð&=Ð&=Ð&=Ð&=rzSome type variables (z) are not listed in Generic[r2)rGrr�rryÚ __bases__r�rxÚ_TypedDictMetar‚r¤ryr€r�r£rr3r„) r³r“rPÚtvarsÚerrorÚgvarsÚbaseÚtvarsetÚs_varsÚs_argsr|rHs @€rrzGeneric.__init_subclass__UsÌøø€Ø!�‰ŒÔ! 4Ð2¨6Ð2Ð2Ð2ØˆØ ˜sœ|Ð +Ð +ݘsÔ1Ð1ˆEˆEå ¤ Ð-ð4Øœ ¨ Ò2ð4å˜S™ œ ¥^Ò3ð ð ð AÝÐ?Ñ@Ô@Ð @Ø ˜sœ|Ð +Ð +Ý'¨Ô(:Ñ;Ô;ˆEð ˆEØÔ*ð 0ð 0�ݘt¥]Ñ3Ô3ð0Øœ­7Ð2Ð2ØÐ(Ý'ØNñPôPðPà Ô/�EøØÐ ݘe™*œ*�ݘe™*œ*�Ø 'Ò)Ð)Ø!ŸYšYÐ&QÐ&QÐ&QÐ&Q°uÐ&QÑ&QÔ&QÑQÔQ�FØ!ŸYšYÐ&=Ð&=°uÐ&=Ñ&=Ô&=Ñ=Ô=�FÝ#ð%H¸Fð%Hð%HØ>Dð%Hð%Hð%HñIôIðIà�Ý" 5™\œ\ˆÔÐÐr) r�ršr›rrÚ _is_protocolrìrwrrKrLs@rrrshø€€€€€ððð&€IØ€Làð,4ð,4ñ„Yð,4ð\#*ð#*ð#*ð#*ð#*ð#*ð#*ð#*ð#*rrcó—eZdZdZdS)rz(Internal placeholder for ... (ellipsis).N)r�ršr›rr rrrr{s€€€€€Ø2Ð2Ð2Ð2rr)r£ryrúrˆÚ_is_runtime_protocolÚ __final__) Ú__abstractmethods__Ú__annotations__r�rrršrOrÚ__subclasshook__rrwÚ_MutableMapping__markercóx—t¦«}|jdd…D]›}|jdvrŒ t|di¦«}t |j ¦«¦«t | ¦«¦«zD]5}| d¦«s|tvr|  |¦«Œ6Œœ|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¹)rrr�Ú_abc_) rÚ__mro__r�r§rŠr�Úkeysr{ÚEXCLUDED_ATTRIBUTESÚadd)r³Úattrsr„Ú annotationsrñs rÚ_get_protocol_attrsr˜ŠsÀõ ‰EŒE€EØ” ˜C˜R˜CÔ ð ð ˆØ Œ=Ð3Ð 3Ð 3Ø Ý˜dÐ$5°rÑ:Ô:ˆ ݘœ×+Ò+Ñ-Ô-Ñ.Ô.µ°k×6FÒ6FÑ6HÔ6HÑ1IÔ1IÑIð ð ˆDØ—?’? 7Ñ+Ô+ð °Õ.�s7øèè€ÐWÐW°d�x�  T¨4Ñ0Ô0Ñ1Ô1ÐWÐWÐWÐWÐWÐWr)rvr˜©r³s`rÚ_is_callable_members_onlyr�›s0ø€å ÐWÐWÐWÐWÕ>QÐRUÑ>VÔ>VÐWÑWÔWÑ WÔ WÐWrcó,—t|¦«}|jrtd¦«‚|jturdS|jD]4}|j dt¦«}|tur ||_nŒ5tj|_|j|g|¢Ri|¤ŽdS)Nz Protocols cannot be instantiatedr) rxrˆr‚rÚ_no_init_or_replace_initr’r�r„Úobject)r r“rPr³r„Úinits rrŸrŸ s·€Ý ˆt‰*Œ*€Cà Ôð<ÝÐ:Ñ;Ô;Ð;ð „|Õ3Ð3Ð3؈ð” ð'ð'ˆØŒ}× Ò  Õ-EÑFÔFˆØ Õ/Ð /Ð /؈CŒLØ ˆEð 0õ ”ˆŒ à€C„L�Ð'˜Ð'Ð'Ð' Ð'Ð'Ð'Ð'Ð'rraÚ__main__có”— tj|dz¦«j d|¦«S#tt f$rYdSwxYw)Nrar�)r‚Ú _getframeÚ f_globalsr„rrË)ÚdepthÚdefaults rr»r»½sU€ðÝŒ}˜U Q™YÑ'Ô'Ô1×5Ò5°jÀ'ÑJÔJÐJøÝ �JÐ 'ððð؈tˆtðøøøs‚/2²AÁAé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. >Nr�ræ)r»©r¦s rÚ_allow_reckless_class_checksr«Äs€õ �5‰>Œ>Ð7Ð 7Ð7r) rr4r)r*r6r'r2r%r8r;ÚAbstractContextManagerÚAbstractAsyncContextManager)zcollections.abcÚ contextlibcó‡—eZdZˆfd„ZˆxZS)Ú _ProtocolMetac󞕇‡—t‰dd¦«r0t‰dd¦«std¬¦«std¦«‚t‰dd¦«rt‰¦«rt ‰j‰¦«rdS‰jr+tˆˆfd„t‰¦«D¦«¦«rdSt¦«  ‰¦«S) NrˆFrŠrŽrªúLInstance and class checks can only be used with @runtime_checkable protocolsTc3óš•K—|]E}t‰|¦«o0tt‰|d¦«¦« pt‰|¦«duV—ŒFdSr )r¦r›r§)rðrñr³Úinstances €€rrñz2_ProtocolMeta.__instancecheck__..ésyøèè€ð:ð:ðõ ˜8 TÑ*Ô*ð:å!¥'¨#¨t°TÑ":Ô":Ñ;Ô;Ð;ð9ݘX tÑ,Ô,°DÐ8ð:ð:ð:ð:ð:ð:r) r§r«r‚r�rþrHrˆrvr˜rGr9)r³r´rHs``€rr9z_ProtocolMeta.__instancecheck__Ùsøøø€õ �C˜¨Ñ /Ô /ð =å˜Ð3°UÑ;Ô;ð =õ-°1Ð5Ñ5Ô5ð =õ ð<ñ=ô=ð =õ˜˜n¨eÑ4Ô4ð Ý)¨#Ñ.Ô.ð å˜8Ô-¨sÑ3Ô3ð ð�4Ø Ô ð Ýð:ð:ð:ð:ð:õ!4°CÑ 8Ô 8ð :ñ:ô:ñ:ô:ð ð �t݉wŒw×(Ò(¨Ñ2Ô2Ð2r)r�ršr›r9rKrLs@rr°r°Ös8ø€€€€€ð3ð3ð3ð3ð3ð3ð3ð3ð3rr°có.‡—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(Protocol[T]): def meth(self) -> T: ... r TFc󕇗t¦«j|i|¤Ž‰j dd¦«s#t d„‰jD¦«¦«‰_ˆfd„}d‰jvr|‰_‰jsdS‰jD]g}|ttfvsU|j tvr|j t|j vs.t|t¦«r|jstd|z¦«‚Œh‰jt jurt"‰_dSdS)NrˆFc3ó(K—|] }|tuV—ŒdSr )r©rðrs rrñz-Protocol.__init_subclass__..s&èè€Ð"HÐ"H°Q 1­ =Ð"HÐ"HÐ"HÐ"HÐ"HÐ"Hrc󘕗‰j dd¦«stSt‰dd¦«s$t ¦«rtSt d¦«‚t ‰¦«s$t ¦«rtSt d¦«‚t|t¦«st d¦«‚t‰¦«D]Š}|j D]w}||jvr|j|€ tccSn\t|di¦«}t|tj j ¦«r"||vrt|t¦«r |jrn ŒxtcSŒ‹dS) NrˆFrŠr²z._proto_hooks�ø€Ø”<×#Ò# N°EÑ:Ô:ð &Ý%Ð%õ˜3Ð 6¸Ñ>Ô>ð AÝ/Ñ1Ô1ð*Ý)Ð)Ýð!@ñAôAðAå,¨SÑ1Ô1ð ?Ý/Ñ1Ô1ð*Ý)Ð)Ýð!>ñ?ô?ð?å˜e¥TÑ*Ô*ð FåÐ DÑEÔEÐEõ,¨CÑ0Ô0ð *ð *�Ø!œMð*ð*�Dà˜tœ}Ð,Ð,Øœ=¨Ô.Ð6Ý#1Ð1Ð1Ð1Ð1Ð1ؘõ#*¨$Ð0AÀ2Ñ"FÔ"F�KÝ" ;µ ´Ô0GÑHÔHðØ  KÐ/Ð/Ý& u­gÑ6Ô6ð0Ø;@Ô;Mð0à˜øå)Ð)Ð)Ð)øØ�4rrŽz7Protocols can only inherit from other protocols, got %r)rGrr�r„ÚanyrrˆrŽr rršÚ_PROTO_ALLOWLISTr�rþr‚rrrŸ)r³r“rPrºr„rHs` €rrzProtocol.__init_subclass__sIøø€Ø!�‰ŒÔ! 4Ð2¨6Ð2Ð2Ð2ðŒ|×Ò °Ñ6Ô6ð IÝ"Ð"HÐ"H¸#¼-Ð"HÑ"HÔ"HÑHÔHˆCÔ ð$ ð$ ð$ ð$ ð$ ðL  S¤\Ð 1Ð 1Ø#.ˆCÔ ðÔð Ø ˆFð”Mð =ð =ˆDØ�V¥WÐ-Ð-Ð-Ø”OÕ'7Ð7Ð7Ø”MÕ%5°d´oÔ%FÐFÐFݘt¥WÑ-Ô-ðGØ26Ô2CðGåð!5Ø7;ñ!<ñ=ô=ð=øà Œ<�8Ô,Ð ,Ð ,Ý3ˆCŒLˆLˆLð -Ð ,r) r�ršr›rrrˆrŠrrKrLs@rrròsUø€€€€€ððð@€IØ€LØ Ðð>4ð>4ð>4ð>4ð>4ð>4ð>4ð>4ð>4rrcóJ‡—eZdZdZˆfd„Zd„Zd„Zd„Zd„Zd„Z ˆfd„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 ¦« ||¦«||_dSr )ryr¾Ú __metadata__r�rGr)r rÚÚmetadatarHs €rrz_AnnotatedAlias.__init__csRø€Ý �f�oÑ .Ô .ð 'ØÔ*¨XÑ5ˆHØÔ&ˆFÝ ‰Œ×Ò˜ Ñ(Ô(Ð(Ø$ˆÔÐÐrcó<—|d}t||j¦«Srq)r¾rÀ)r rÄÚnew_types rrýz_AnnotatedAlias.copy_withjs€à˜!”9ˆÝ˜x¨Ô):Ñ;Ô;Ð;rcó–—d t|j¦«d d„|jD¦«¦«¦«S)Nztyping.Annotated[{}, {}]r.c3ó4K—|]}t|¦«V—ŒdSr )r™rês rrñz+_AnnotatedAlias.__repr__..rs(èè€Ð9Ð9 !•d˜1‘g”gÐ9Ð9Ð9Ð9Ð9Ð9r)Úformatr r�r3rÀr s rr'z_AnnotatedAlias.__repr__osH€Ø)×0Ò0Ý �t”Ñ 'Ô 'Ø �IŠIÐ9Ð9 tÔ'8Ð9Ñ9Ô9Ñ 9Ô 9ñ ô ð rcóH—tjt|jf|jzffSr )rûrrr�rÀr s rr*z_AnnotatedAlias.__reduce__us)€ÝÔÝ ˜œÐ)¨DÔ,=Ñ=ð" ð ð rcóz—t|t¦«stS|j|jko|j|jkSr )ryr¾r‡r�rÀr0s rrˆz_AnnotatedAlias.__eq__zs?€Ý˜%¥Ñ1Ô1ð "Ý!Ð !Ø” 5Ô#3Ò3ð<ØÔ%¨Ô);Ò;ð =rcó8—t|j|jf¦«Sr )rŠr�rÀr s rr‹z_AnnotatedAlias.__hash__€s€Ý�T”_ dÔ&7Ð8Ñ9Ô9Ð9rcóR•—|dvrdSt¦« |¦«S)N>r�r›r)rGr)r rñrHs €rrz_AnnotatedAlias.__getattr__ƒs,ø€Ø Ð/Ð /Ð /Ø�;݉wŒw×"Ò" 4Ñ(Ô(Ð(r) r�ršr›rrrýr'r*rˆr‹rrKrLs@rr¾r¾Xs¦ø€€€€€ððð%ð%ð%ð%ð%ð<ð<ð<ð  ð ð ð  ð ð ð =ð=ð=ð :ð:ð:ð)ð)ð)ð)ð)ð)ð)ð)ð)rr¾cóR—eZdZdZdZd„Zd„Zed¬¦«d„¦«Zd„Z d S) 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:: Optimized: TypeAlias = Annotated[T, runtime.Optimize()] assert Optimized[int] == Annotated[int, runtime.Optimize()] OptimizedList: TypeAlias = Annotated[list[T], runtime.Optimize()] assert OptimizedList[int] == Annotated[list[int], runtime.Optimize()] - Annotated cannot be used with an unpacked TypeVarTuple:: Variadic: TypeAlias = 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“rPs rrOzAnnotated.__new__¹s€ÝÐ@ÑAÔAÐArcóN—t|t¦«s|f}|j|g|¢RŽSr )ryr„Ú_class_getitem_inner)r³rÄs rrwzAnnotated.__class_getitem__¼s6€Ý˜&¥%Ñ(Ô(ð Ø�YˆFØ'ˆsÔ'¨Ð5¨fÐ5Ð5Ð5Ð5rTrÜcó—t|¦«dkrtd¦«‚t|d¦«rtd¦«‚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.Trsra)r‘r‚r—rˆr„r¾)r³rÄr…rÚrÁs rrÏzAnnotated._class_getitem_innerÁs—€å ˆv‰;Œ;˜Š?ˆ?Ýð+ñ,ô,ð ,õ % V¨A¤YÑ /Ô /ð 5Ýð4ñ5ô5ð 5à4ˆÝ˜V AœY¨ÀÐFÑFÔFˆÝ˜   œÑ$Ô$ˆÝ˜v xÑ0Ô0Ð0rcóP—td |j¦«¦«‚)NzCannot subclass {}.Annotated)r‚rÆršrÍs rrzAnnotated.__init_subclass__Ïs'€ÝØ *× 1Ò 1°#´.Ñ AÔ Añ ô ð rN) r�ršr›rrrOrwrìrÏrr rrrr‰s€€€€€ð+ð+ðZ€IðBðBðBð6ð6ð6ð €Y�TÐÑÔð 1ð 1ñÔð 1ð ð ð ð ð rrcóp—t|t¦«r|jstd|z¦«‚d|_|S)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! zB@runtime_checkable can be only applied to protocol classes, got %rT)rþrrˆr‚rŠrœs rrlrlÕsL€õ& �c�7Ñ #Ô #ð)¨3Ô+;ð)Ýð"Ø$'ñ(ñ)ô)ð )à#€CÔØ €Jrcó—|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’rs rrWrWïs €ð €Jrcó—|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 )rr’s rrUrUús €ð €Jrcó”—t|dd¦«riSt|t¦«�r=i}t|j¦«D�]}|€5tt j |jd¦«di¦«}n|}|j  di¦«}t|tj ¦«ri}|€tt|¦«¦«n|}|€|€||}}| ¦«D]S\} } | €td¦«} t| t¦«rt!| dd¬¦«} t#| ||¦«} | || <ŒT�Œ|r|nd„| ¦«D¦«S|€at|tj¦«r|j }n:|} t'| d ¦«r| j} t'| d ¦«°t| d i¦«}|€|}n|€|}t|dd¦«}|€9t|t*¦«riSt-d  |¦«¦«‚t|¦«}| ¦«D]j\} } | €td¦«} t| t¦«r+t!| t|tj¦« d¬¦«} t#| ||¦«|| <Œk|r|nd „| ¦«D¦«S) 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�r�FT)r†rwcó4—i|]\}}|t|¦«“ŒSr ©Ú_strip_annotations©rðrÔr©s rú z"get_type_hints..K s'€Ð,`Ð,`Ð,`É$È!ÈQ¨QÕ0BÀ1Ñ0EÔ0EÐ,`Ð,`Ð,`rÚ __wrapped__Ú __globals__z1{!r} is not a module, class, method, or function.có4—i|]\}}|t|¦«“ŒSr rØrÚs rrÛz"get_type_hints..o s'€Ð(\Ð(\Ð(\ÁdÀaȨÕ,>¸qÑ,AÔ,AÐ(\Ð(\Ð(\r)r§ryrxÚreversedr’r‚rƒr„ršr�r˜ÚGetSetDescriptorTyperÁÚvarsÚitemsrzrróÚ ModuleTyper¦rÜÚ_allowed_typesr‚rÆ) rŸrõröÚinclude_extrasÚhintsr„Ú base_globalsÚannÚ base_localsrcÚvalueÚnsobjs rr^r^ s€õ>ˆsÐ'¨Ñ.Ô.ðØˆ å�#•tÑÔña؈ݘSœ[Ñ)Ô)ð $ñ $ˆDØÐÝ&¥s¤{§¢°t´ÈÑ'MÔ'MÈzÐ[]Ñ^Ô^� � à'� Ø”-×#Ò#Ð$5°rÑ:Ô:ˆCݘ#�uÔ9Ñ:Ô:ð Ø�Ø.5¨o�$�t D™zœzÑ*Ô*Ð*À7ˆK؈ 8Ð#3ð-8¸˜k� Ø"Ÿyšy™{œ{ð $ð $‘ ��eØ�=Ý  ™JœJ�Eݘe¥SÑ)Ô)ðPÝ& u¸%È$ÐOÑOÔO�EÝ" 5¨,¸ ÑDÔD�Ø#��d‘ � ñ  $ð'Ð`ˆuˆuÐ,`Ð,`ÐRW×R]ÒR]ÑR_ÔR_Ð,`Ñ,`Ô,`Ð`àÐÝ �c�5Ô+Ñ ,Ô ,ð 9Ø”|ˆHˆHàˆEå˜% Ñ/Ô/ð *ØÔ)�õ˜% Ñ/Ô/ð *å˜u m°RÑ8Ô8ˆHØ ˆ?؈GøØ ˆØˆÝ �CÐ*¨DÑ 1Ô 1€EØ €}å �c�>Ñ *Ô *ð 8؈Iåð+ß+1ª6°#©;¬;ñ8ô8ð 8å �‰KŒK€EØ—{’{‘}”}ð ;ð ;‰ ˆˆeØ ˆ=ݘ‘J”JˆEÝ �e�SÑ !Ô !ð õØÝ *¨3µÔ0@Ñ AÔ AÐAØðñôˆEõ ! ¨°'Ñ:Ô:ˆˆd‰ ˆ Ø"Ð \ˆ5ˆ5Ð(\Ð(\ÈeÏkÊkÉmÌmÐ(\Ñ(\Ô(\Ð\rcóò—t|t¦«rt|j¦«St |d¦«r/|jt t fvrt|jd¦«St|t¦«r@td„|jD¦«¦«}||jkr|S|  |¦«St|t¦«r@td„|jD¦«¦«}||jkr|St|j|¦«St|tj ¦«rJtd„|jD¦«¦«}||jkr|Stjt j|¦«S|S)z(Strip the annotations from a given type.r�rc3ó4K—|]}t|¦«V—ŒdSr rØrês rrñz%_strip_annotations..y ó+èè€ÐHÐH¸Õ0°Ñ3Ô3ÐHÐHÐHÐHÐHÐHrc3ó4K—|]}t|¦«V—ŒdSr rØrês rrñz%_strip_annotations..~ rîrc3ó4K—|]}t|¦«V—ŒdSr rØrês rrñz%_strip_annotations..ƒ rîr)ryr¾rÙr�r¦rjrfrÕr€r„rýr r˜rÔrærúrûrü)r©Ú stripped_argss rrÙrÙr sa€å�!•_Ñ%Ô%ð0Ý! !¤,Ñ/Ô/Ð/݈q�,ÑÔð1 A¤LµX½{Ð4KÐ$KÐ$KÝ! !¤*¨Q¤-Ñ0Ô0Ð0Ý�!•]Ñ#Ô#ð*ÝÐHÐH¸Q¼ZÐHÑHÔHÑHÔHˆ Ø ˜AœJÒ &Ð &؈HØ�{Š{˜=Ñ)Ô)Ð)Ý�!•\Ñ"Ô"ð9ÝÐHÐH¸Q¼ZÐHÑHÔHÑHÔHˆ Ø ˜AœJÒ &Ð &؈HݘAœL¨-Ñ8Ô8Ð8Ý�!•U”_Ñ%Ô%ð=ÝÐHÐH¸Q¼ZÐHÑHÔHÑHÔHˆ Ø ˜AœJÒ &Ð &؈HÝÔ¥¤ ¨mÑ<Ô<Ð<à €Hrcó—t|t¦«rtSt|ttt t f¦«r|jS|turtSt|tj ¦«r tj SdS)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) ryr¾rrôr rhrir�rr˜rÔ©Útps rr\r\‹ sv€õ$�"•oÑ&Ô&ðÝÐÝ�"Õ(­,Ý$¥oð7ñ8ô8ðàŒ}ÐØ �W€}€}݈Ý�"•e”oÑ&Ô&ðÝŒÐØ ˆ4rcó:—t|t¦«r|jf|jzSt|tt f¦«r8|j}t||¦«rt|dd…¦«|df}|St|tj ¦«r|jSdS)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 ) ryr¾r�rÀr€r rÕr”rŠr˜rÔ)rôrÿs rr[r[© sš€õ�"•oÑ&Ô&ð2Ø” Р"¤/Ñ1Ð1Ý�"•}¥lÐ3Ñ4Ô4ðØŒkˆÝ *¨2¨sÑ 3Ô 3ð ,ݘ˜C˜R˜Cœ‘>”> 3 r¤7Ð+ˆC؈ Ý�"•e”oÑ&Ô&ðØŒ{ÐØ ˆ2rcó,—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 )ryr€rós rr_r_à s€õ �b�.Ñ )Ô )Ð)rédr{có˜—t|¦«}t|¦«tkr|dt…dz}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)r{rês rrVrVØ sN€õ& �‰IŒI€EÝ ˆ5�z„zÕ1Ò1Ð1ØÐ4Õ4Ð4Ô5¸Ñ=ˆÝ ÐMÀeÐMÐMÑ NÔ NÐNrcó—t|t¦«rÒt|¦«D]Â}t||¦«}t |d¦«r4|j|j›d|j›�kst|dd¦«|jkrŒWt|tj ¦«rd|_ t|tj ¦«r d|j _ t|t¦«rt|¦«ŒÃ d|_ n#t$rYnwxYw|S)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›rršNT)ryrxrr§r¦r›r�ršr˜rœrÖÚ MethodTypeÚ__func__rcr‚)r{ÚkeyrŸs rrcrcñ s€õ�#•tÑÔð#Ý�s‘8”8ð #ð #ˆCݘ#˜sÑ#Ô#ˆCå˜C Ñ0Ô0ð àÔ#¨#Ô*:Ð'KÐ'K¸S¼\Ð'KÐ'KÒKÐKݘ3  ¨dÑ3Ô3°s´~ÒEÐEð å˜#�uÔ1Ñ2Ô2ð -Ø(,�Ô%ݘ#�uÔ/Ñ0Ô0ð 6Ø15�” Ô.å˜#�tÑ$Ô$ð #ݘcÑ"Ô"Ð"øð Ø $ˆÔÐøÝ ð ð ð Ø ˆð øøøà €JsÃ)C1Ã1 C>Ã=C>cóF‡—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ó6•—‰|i|¤Ž}t|¦«}|Sr )rc)r“rârärës €rÚwrapped_decoratorz2no_type_check_decorator..wrapped_decorator s)ø€àˆy˜$Ð' $Ð'Ð'ˆÝ˜TÑ"Ô"ˆØˆ r)rærê)rërs` rrdrd s;ø€õ „_�YÑÔððððñ Ôðð Ðrcó —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 rÚ_overload_dummyr$ s€å ð 9ñ :ô :ð:rcóª—t|d|¦«} |t|j|j|jj<n#t $rYnwxYwtS)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 rrgrg1 sd€õ@ ��j $Ñ'Ô'€Að ØVZÕ˜1œ<Ô(¨¬Ô8¸¼Ô9RÑSÐSøÝ ð ð ð à ˆð øøøõ Ðs“*>¾ A Á A cóÖ—t|d|¦«}|jtvrgSt|j}|j|vrgSt ||j ¦«¦«S)z6Return all defined overloads for *func* as a sequence.rý)r§ršrr›rŠÚvalues)rär Úmod_dicts rr]r]Z sg€õ ��j $Ñ'Ô'€AØ„|Õ-Ð-Ð-؈ Ý! !¤,Ô/€HØ„~˜XÐ%Ð%؈ Ý �˜œÔ(×/Ò/Ñ1Ô1Ñ 2Ô 2Ð2rcó8—t ¦«dS)z$Clear all overloads in the registry.N)rÚclearr rrrXrXf s€å×ÒÑÔÐÐÐrcóF— d|_n#ttf$rYnwxYw|S)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)r‹rr‚)r s rrZrZk s>€ð4 ؈Œ ˆ øÝ �IÐ &ð ð ð ð ˆð  øøøð €Hs ‚ Š�ÚTÚKTÚVTÚT_co)r§ÚV_coÚVT_coÚT_contra)r¨ÚCT_co)r§r¦rTrŽ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. r#rbr¹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, ...]. rHrErJrKr&r:rFrGraDeprecated 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:: U = TypeVar('U', bound=User) def new_user(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ó2—eZdZdZdZedefd„¦«ZdS)rAz(An ABC with one abstract method __int__.r r“có—dSr r r s rÚ__int__zSupportsInt.__int__ ó€à ˆrN)r�ršr›rrrÚintrr rrrArAþ sD€€€€€à2Ð2à€Iàð ˜ð ð ð ñ„^ð ð ð rrAcó2—eZdZdZdZedefd„¦«ZdS)r?z*An ABC with one abstract method __float__.r r“có—dSr r r s rÚ __float__zSupportsFloat.__float__ rrN)r�ršr›rrrÚfloatrr rrr?r? óD€€€€€à4Ð4à€Iàð ˜5ð ð ð ñ„^ð ð ð rr?có2—eZdZdZdZedefd„¦«ZdS)r>z,An ABC with one abstract method __complex__.r r“có—dSr r r s rÚ __complex__zSupportsComplex.__complex__ rrN)r�ršr›rrrÚcomplexr$r rrr>r> sD€€€€€à6Ð6à€Iàð ˜Wð ð ð ñ„^ð ð ð rr>có2—eZdZdZdZedefd„¦«ZdS)r=z*An ABC with one abstract method __bytes__.r r“có—dSr r r s rÚ __bytes__zSupportsBytes.__bytes__% rrN)r�ršr›rrrÚbytesr(r rrr=r= r!rr=có2—eZdZdZdZedefd„¦«ZdS)r@z*An ABC with one abstract method __index__.r r“có—dSr r r s rÚ __index__zSupportsIndex.__index__0 rrN)r�ršr›rrrrr,r rrr@r@* sD€€€€€à4Ð4à€Iàð ˜3ð ð ð ñ„^ð ð ð rr@có2—eZdZdZdZedefd„¦«ZdS)r<zMAn ABC with one abstract method __abs__ that is covariant in its return type.r r“có—dSr r r s rÚ__abs__zSupportsAbs.__abs__; rrN)r�ršr›rrrrr/r rrr<r<5 sD€€€€€àWÐWà€Iàð ˜ð ð ð ñ„^ð ð ð rr<có8—eZdZdZdZeddedefd„¦«ZdS) rBzOAn ABC with one abstract method __round__ that is covariant in its return type.r rÚndigitsr“có—dSr r )r r1s rÚ __round__zSupportsRound.__round__F rrN©r) r�ršr›rrrrrr3r rrrBrB@ sP€€€€€àYÐYà€Iàð ð  ð ¨Tð ð ð ñ„^ð ð ð rrBr cóŒ—d„|D¦«}d„|D¦«}tj||||¬¦«}|x|_|j_|S)Ncó—g|]\}}|‘ŒSr r ©rðÚnr©s rr z!_make_nmtuple..L s€Ð "Ð "Ð "‘D�A�qˆaÐ "Ð "Ð "rc ó>—i|]\}}|t|d|›d�¦«“ŒS)zfield z annotation must be a typer_r7s rrÛz!_make_nmtuple..M sD€ð ð ð Ù��Að• ˜AÐE¨ÐEÐEÐEÑFÔFð ð ð r©Údefaultsrv)r�Ú namedtupler�rO)rcr˜rvr;ÚfieldsÚnm_tpls rÚ _make_nmtupler?K sm€Ø "Ð "˜EÐ "Ñ "Ô "€Fð ð Øð ñ ô €Eå Ô # D¨&Ø-5¸fðFñFôF€Fà>CÐC€FÔ˜Vœ^Ô;Ø €Mr> Ú_makerOÚ_asdictÚ_fieldsÚ_sourcerÚ_replacerÚ__getnewargs__Ú_field_defaults>r�ršr�có—eZdZd„ZdS)ÚNamedTupleMetac ó‡—|D]#}|tur|turtd¦«‚Œ$td„|D¦«¦«}‰ di¦«}g}|D]^}|‰vr| |¦«Œ|r@td|›dt |¦«dkrdnd›d d  |¦«›�¦«‚Œ_t||j ¦«ˆfd „|D¦«‰d ¬ ¦«}||_ t|vr%tj j } t| ¦«|_ ‰D]F} | tvrtd| z¦«‚| t vr | |jvrt%|| ‰| ¦«ŒGt|vr| ¦«|S)Nz3can only inherit from a NamedTuple type and Genericc3ó:K—|]}|turtn|V—ŒdSr )Ú _NamedTupler„)rðr„s rrñz)NamedTupleMeta.__new__..d s0èè€ÐOÐOÀ˜t¥{Ð2Ð2•e�e¸ÐOÐOÐOÐOÐOÐOrr�zNon-default namedtuple field z cannot follow default fieldraÚsr�ú r.có •—g|] }‰|‘Œ Sr r )rðr8Únss €rr z*NamedTupleMeta.__new__..p sø€Ð(FÐ(FÐ(F°1¨¨A¬Ð(FÐ(FÐ(Frršr:z&Cannot overwrite NamedTuple attribute )rKrr‚r„r„r¥r‘r3r?rârrwrýÚ classmethodÚ _prohibitedrÚ_specialrBrr) r³Útypenamer!rOr„r˜Ú default_namesÚ field_namer>Ú class_getitemrþs ` rrOzNamedTupleMeta.__new__^ sø€àð Kð KˆDØ�;Ð&Ð&¨4µwÐ+>Ð+>ÝØIñKôKðKøåÐOÐOÈÐOÑOÔOÑOÔOˆØ—’Ð(¨"Ñ-Ô-ˆØˆ Øð ?ð ?ˆJؘRÐÐØ×$Ò$ ZÑ0Ô0Ð0Ð0Øð ?Ýð!>À ð!>ð!>å*-¨mÑ*<Ô*<¸qÒ*@Ð*@ 3 3Àbð!>ð!>ð$(§9¢9¨]Ñ#;Ô#;ð!>ð!>ñ?ô?ð?ð ?õ ˜x¨¨¬©¬Ø(FÐ(FÐ(FÐ(F¸ Ð(FÑ(FÔ(FØ&(¨Ô&6ð8ñ8ô8ˆð!ˆÔÝ �eÐ Ð Ý#Ô5Ô>ˆMÝ'2°=Ñ'AÔ'AˆFÔ $àð .ð .ˆCØ•kÐ!Ð!Ý$Ð%MÐPSÑ%SÑTÔTÐTØ�HÐ$Ð$¨°F´NÐ)BÐ)Bݘ  R¨¤WÑ-Ô-Ð-øÝ �eÐ Ð Ø × $Ò $Ñ &Ô &Ð &؈ rN)r�ršr›rOr rrrHrH] s#€€€€€ð ð ð ð ð rrHc óŽ—|€| ¦«}n|rtd¦«‚t||t¦«¬¦«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)]) NzIEither list of fields or keywords can be provided to NamedTuple, not both©rv)râr‚r?r»)rSr=rPs rrLrL� sU€ð(€~Ø—’‘”ˆˆØ ðDÝðCñDôDð Då ˜ 6µ'±)´)Ð <Ñ <Ô <ÐÐrcó$—eZdZdd„ZeZd„ZeZdS)r€Tcó4‡‡—|D]0}t|¦«tur|turtd¦«‚Œ1t d„|D¦«¦«r tf}nd}t t|g|¢t ‘R|¦«Ši}| di¦«}dŠˆˆfd„| ¦«D¦«}t¦«} t¦«} |D]’}|  |j  di¦«¦«|j  dt¦«¦«} | | z} | | z} |j  dt¦«¦«} | | z} | | z} Œ“|  |¦«| ¦«D]¶\} }t|¦«}|tur(t|¦«}|r|d }t|¦«}|turd }n|t urd }n|}|r+|  | ¦«|  | ¦«ŒŒ|  | ¦«|  | ¦«Œ·|‰_t)| ¦«‰_t)| ¦«‰_t/‰d ¦«s|‰_‰S) 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¦«V—ŒdSr )rþrr¸s rrñz)_TypedDictMeta.__new__..³ s,èè€Ð5Ð5¨!�z˜!�WÑ%Ô%Ð5Ð5Ð5Ð5Ð5Ð5rr r�z?TypedDict('Name', {f0: t0, f1: t1, ...}); each t must be a typecóF•—i|]\}}|t|‰‰j¬¦«“ŒS)rX)rˆrš)rðr8rôr…Útp_dicts €€rrÛz*_TypedDictMeta.__new__..½ sAø€ð ð ð á��2ð �{˜2˜s¨7Ô+=Ð>Ñ>Ô>ð ð ð rÚ__required_keys__Ú__optional_keys__rTFÚ __total__)rxr€rr‚r»rOrÁr„rârÚupdater�r\rr[rjrfr•Údiscardr�r^rarbr¦rc)r³rcr!rOÚtotalr„Ú generic_baser—Úown_annotationsÚ required_keysÚ optional_keysÚ base_requiredÚ base_optionalÚannotation_keyÚannotation_typeÚannotation_originÚannotation_argsÚ is_requiredr…r`s @@rrOz_TypedDictMeta.__new__¦ sðøø€ðð Bð BˆDÝ�D‰zŒz¥Ð/Ð/°DÅÐ4GÐ4GÝð!AñBôBðBøõ Ð5Ð5¨uÐ5Ñ5Ô5Ñ 5Ô 5ð Ý#˜:ˆLˆLàˆLå—,’,�~¨tÐ5J°|Ð5JÅTÐ5JÐ5JÈBÑOÔOˆàˆ ØŸ&š&Ð!2°BÑ7Ô7ˆØOˆð ð ð ð ð à(×.Ò.Ñ0Ô0ð ñ ô ˆõ™œˆ Ý™œˆ àð +ð +ˆDØ × Ò ˜tœ}×0Ò0Ð1BÀBÑGÔGÑ HÔ HÐ Hà œM×-Ò-Ð.AÅ3Á5Ä5ÑIÔIˆMØ ˜]Ñ *ˆMØ ˜]Ñ *ˆMà œM×-Ò-Ð.AÅ3Á5Ä5ÑIÔIˆMØ ˜]Ñ *ˆMØ ˜]Ñ *ˆMˆMà×Ò˜?Ñ+Ô+Ð+Ø/>×/DÒ/DÑ/FÔ/Fð 6ð 6Ñ +ˆN˜OÝ *¨?Ñ ;Ô ;Ð Ø ¥IÐ-Ð-Ý"*¨?Ñ";Ô";�Ø"ðDØ&5°aÔ&8�OÝ(2°?Ñ(CÔ(CÐ%à ¥HÐ,Ð,Ø"� � Ø"¥kÐ1Ð1Ø#� � à#� àð 6Ø×!Ò! .Ñ1Ô1Ð1Ø×%Ò% nÑ5Ô5Ð5Ð5à×!Ò! .Ñ1Ô1Ð1Ø×%Ò% nÑ5Ô5Ð5Ð5ð #.ˆÔÝ$-¨mÑ$<Ô$<ˆÔ!Ý$-¨mÑ$<Ô$<ˆÔ!Ý�w  Ñ,Ô,ð &Ø %ˆGÔ Øˆrcó —td¦«‚)Nz4TypedDict does not support instance and class checksrá)r³r1s rr=z _TypedDictMeta.__subclasscheck__ó s€åÐNÑOÔOÐOrN)T)r�ršr›rOrÁr-r=r9r rrr€r€¥ sJ€€€€€ðIðIðIðIðV€HðPðPðPð*ÐÐÐrr€©rfc óÜ—|€|}n|rtd¦«‚|rtjdtd¬¦«dt |¦«i}t ¦«}|�||d<t |d||¬ ¦«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. Nz@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Ž©Ú stacklevelr�ršr rs)r‚ÚwarningsÚwarnÚDeprecationWarningrÁr»r€)rSr=rfrPrOrvs rrMrMú s €ð^€~؈ˆØ ð)Ýð(ñ)ô)ð )à ð ÝŒ ð 7õ Øð  ñ ô ð ð �T &™\œ\Ð *€BÝ ‰YŒY€FØ Ðà!ˆˆ<Ñå ˜( B¨°%Ð 8Ñ 8Ô 8Ð8rrMcó—tfSr )Ú _TypedDictrZs rúr|@ s€­:¨-€rcóT—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€rZs rrjrjC s0€õ( �z d¤jÐ#NÐ#NÐ#NÑ OÔ O€DÝ ˜ ˜wÑ 'Ô 'Ð'rcóT—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, ) r~rrZs rrfrf[ s0€õ �z d¤jÐ#NÐ#NÐ#NÑ OÔ O€DÝ ˜ ˜wÑ 'Ô 'Ð'rcó:—eZdZdZeZd„Zd„Zd„Zd„Z d„Z d„Z dS) rba+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| d¦«d}||_||_t ¦«}|dkr ||_dSdS)Nrr¹r¹)r›Ú rpartitionr�Ú __supertype__r»rš)r rcrôr½s rrzNewType.__init__† s_€Ø ˆÔØ �$ˆ;ˆ;Ø—?’? 3Ñ'Ô'¨Ô+ˆD؈Œ ؈ÔÝ‘)”)ˆØ �hÒ Ð Ø%ˆDŒOˆOˆOð Ð rcó6‡—|jŠGˆfd„d¦«}|fS)Ncó•—eZdZˆfd„ZdS)ú&NewType.__mro_entries__..Dummyc óD•—|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 €rrz8NewType.__mro_entries__..Dummy.__init_subclass__– sUø€Ø #¤ � ÝðYØ%ðYðYØ2?ðYðYØETðYðYðYñôðrN)r�ršr›r)rŠs€rÚDummyr‡• s.ø€€€€€ð ð ð ð ð ð ð rr‹r�)r r!r‹rŠs @rr"zNewType.__mro_entries__� sGø€ðœ-ˆð ð ð ð ð ð ð ñ ô ð ðˆxˆrcó$—|j›d|j›�S)Nr)ršr›r s rr'zNewType.__repr__Ÿ s€Ø”/Ð7Ð7 DÔ$5Ð7Ð7Ð7rcó—|jSr )r›r s rr*zNewType.__reduce__¢ s €ØÔ Ð rcó —t||fSr r/r0s rr2zNewType.__or__¥ r3rcó —t||fSr r/r0s rr5zNewType.__ror__¨ r6rN) r�ršr›rr r-rr"r'r*r2r5r rrrbrbn s€€€€€ððð*€Hð&ð&ð&ð ð ð ð8ð8ð8ð!ð!ð!ð"ð"ð"ð"ð"ð"ð"ð"rrbcó¨—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#„¦«ZdS))rPaû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ó—dSr r r s rÚmodezIO.modeà ó €ð ˆrcó—dSr r r s rrczIO.nameÈ r“rNcó—dSr r r s rÚclosezIO.closeÍ rrcó—dSr r r s rÚclosedz IO.closedÑ r“rcó—dSr r r s rÚfilenoz IO.filenoÖ rrcó—dSr r r s rÚflushzIO.flushÚ rrcó—dSr r r s rÚisattyz IO.isattyÞ rrr¹r8có—dSr r )r r8s rÚreadzIO.readâ rrcó—dSr r r s rÚreadablez IO.readableæ rrÚlimitcó—dSr r )r r£s rÚreadlinez IO.readlineê rrÚhintcó—dSr r )r r¦s rÚ readlinesz IO.readlinesî rrrÚoffsetÚwhencecó—dSr r )r r©rªs rÚseekzIO.seekò rrcó—dSr r r s rÚseekablez IO.seekableö rrcó—dSr r r s rÚtellzIO.tellú rrÚsizecó—dSr r )r r±s rÚtruncatez IO.truncateþ rrcó—dSr r r s rÚwritablez IO.writable rrrLcó—dSr r ©r rLs rÚwritezIO.write rrÚlinescó—dSr r )r r¹s rÚ writelinesz IO.writelines rrú IO[AnyStr]có—dSr r r s rÚ __enter__z IO.__enter__ rrcó—dSr r )r rxrêÚ tracebacks rÚ__exit__z IO.__exit__ rr)r“N)r¹r4r )r“r¼) r�ršr›rrrírrzr’rcr–r¢r˜rršrœržrTr r¢r¥rHr¨r¬r®r°r³rµr¸r»r¾rÁr rrrPrP´ sŠ€€€€€ð ð ð€Ià Øð �cð ð ð ñ„^ñ„Xð ðØð �cð ð ð ñ„^ñ„Xð ðð ð ð ñ„^ð ðØð ˜ð ð ð ñ„^ñ„Xð ðð ˜ð ð ð ñ„^ð ðð ð ð ñ„^ð ðð ˜ð ð ð ñ„^ð ðð ð �cð  6ð ð ð ñ„^ð ðð ˜$ð ð ð ñ„^ð ðð ð ˜cð ¨6ð ð ð ñ„^ð ðð ð ˜cð ¨4°¬<ð ð ð ñ„^ð ðð ð ˜3ð ¨ð °Cð ð ð ñ„^ð ðð ˜$ð ð ð ñ„^ð ðð �cð ð ð ñ„^ð ðð ð ˜Sð ¨Cð ð ð ñ„^ð ðð ˜$ð ð ð ñ„^ð ðð �vð  #ð ð ð ñ„^ð ðð   V¤ ð °ð ð ð ñ„^ð ðð ð ð ñ„^ð ðð ð ð ñ„^ð ð ð rrPcó^—eZdZdZdZedeeefde fd„¦«Z edd„¦«Z dS) rOz5Typed version of the return of open() in binary mode.r rLr“có—dSr r r·s rr¸zBinaryIO.write rrcó—dSr r r s rr¾zBinaryIO.__enter__ rrN)r“rO) r�ršr›rrrr"r)Ú bytearrayrr¸r¾r rrrOrO su€€€€€Ø?Ð?à€Iàð �u˜U IÐ-Ô.ð °3ð ð ð ñ„^ð ðð ð ð ñ„^ð ð ð rrOcó—eZdZdZdZeedefd„¦«¦«Zeede fd„¦«¦«Z eede e fd„¦«¦«Z eede fd„¦«¦«Zeedefd„¦«¦«Zed d „¦«Zd S) rSz3Typed version of the return of open() in text mode.r r“có—dSr r r s rÚbufferz TextIO.buffer* r“rcó—dSr r r s rÚencodingzTextIO.encoding/ r“rcó—dSr r r s rÚerrorsz TextIO.errors4 r“rcó—dSr r r s rÚline_bufferingzTextIO.line_buffering9 r“rcó—dSr r r s rÚnewlineszTextIO.newlines> r“rcó—dSr r r s rr¾zTextIO.__enter__C rrN)r“rS)r�ršr›rrrírrOrÈrzrÊrrÌr¢rÎrrÐr¾r rrrSrS% s6€€€€€Ø=Ð=à€Ià Øð ˜ð ð ð ñ„^ñ„Xð ðØð ˜#ð ð ð ñ„^ñ„Xð ðØð ˜ œ ð ð ð ñ„^ñ„Xð ðØð  ð ð ð ñ„^ñ„Xð ðØð ˜#ð ð ð ñ„^ñ„Xð ðð ð ð ñ„^ð ð ð rrScó‡—eZdZˆfd„ZˆxZS)Ú_DeprecatedTypec󸕗|dvr5||jvr,tj|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.12.rŽru)r�rwrxr�ryrGÚ__getattribute__)r³rcrHs €rrÕz _DeprecatedType.__getattribute__I syø€Ø Ð<Ð <Ð <ÀÈÌÐAUÐAUÝ ŒMØ”<ð"ð"Ø(+¬ ð"ð"ð"õ#Øð  ñ ô ð õ‰wŒw×'Ò'¨Ñ-Ô-Ð-r)r�ršr›rÕrKrLs@rrÓrÓH s8ø€€€€€ð .ð .ð .ð .ð .ð .ð .ð .ð .rrÓcó&—eZdZdZgd¢ZeZeZeZdS)Úioz)Wrapper namespace for IO generic classes.)rPrSrON)r�ršr›rÚ__all__rPrSrOr rrr×r×U s.€€€€€Ø3Ð3à*Ð*Ð*€GØ €BØ €FØ€H€H€Hrr×z.iocó"—eZdZdZddgZeZeZdS)Úrez&Wrapper namespace for re type aliases.rRrQN)r�ršr›rrØrRrQr rrrÚrÚd s(€€€€€Ø0Ð0à˜'Ð"€GØ€GØ €E€E€ErrÚz.rerŸcóf—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)Úprintrxr�r‚Ústderrržs rrkrkp s0€õ Ð 3�T #™YœYÔ/Ð 3Ð 3½#¼*ÐEÑEÔEÐEØ €Jr)Ú eq_defaultÚ order_defaultÚkw_only_defaultÚfield_specifiersrßràrárâ.rPc ó"‡‡‡‡‡—ˆˆˆˆˆfd„}|S)aÿDecorator 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:: T = TypeVar("T") @dataclass_transform() def create_model(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. - ``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ârP)Ú__dataclass_transform__)Ú cls_or_fnrßrârárPràs €€€€€rrëz&dataclass_transform..decoratorÉ s)ø€à$Ø*Ø.Ø 0Øð - ð- ˆ Ô)ðÐrr )rßràrárârPrës````` rrYrYƒ s=øøøøø€ðLððððððððð Ðrr r’)rar¢)r¨)NNF)r )×rr�rrr�rÚcollections.abcr®rærûrÚÚ stdlib_rer‚r˜rwrrrr Ú_typingr Ú ImportErrorrØr|rˆrŒr”r r¤r¶r½rÅrÃrÑrØrÛrèrìr^rórr rrƒrBrxrErrerarmr`rrr"rrrprrqrr¢r—r™r›r r r!rhrirròrôr€r9rHrNrVrÓrhrÚr‹rrrkrrÚ_TYPING_INTERNALSÚ_SPECIAL_NAMESr”r˜r�rŸr»r«r¼r°rr¾rrlrWrUrœÚBuiltinFunctionTyperürãrär^rÙr\r[r_rùrVrcrdrÚpartialrÁrrgr]rXrZrrrrrrrrr)rzrTÚ_aliasr'r4r7r6r5r)r*r;r2r%r8rrJr#r0r,r.r1r/r$r„rrŠrHÚdequerErrKr-r+r(r3r¬r&r­r:rFrGrIrDrCrNr9rrAr?r>r=r@r<rBr?rQrRrHrLrOrKr[r"r€rMr{rjrfrbrnrorPrOrSrÓr×r�rƒrRrQrkrYr rrúrñshðððð*(Ð'Ð'Ð'Ð'Ð'Ð'Ð'ØÐÐÐØ#Ð#Ð#Ð#Ð#Ð#ØÐÐÐØÐÐÐØÐÐÐØ€€€ØÐÐÐØ € € € Ø € € € Ø€€€Ø^Ð^Ð^Ð^Ð^Ð^Ð^Ð^Ð^Ð^Ð^Ð^ðØÐÐÐÐÐÐøØðððððððððøøøð m ðm ðm €ðh¸5ððððððÐPUððððððB@ð@ð@ð ððð0ððð*ðððB <ð <ð <ðððð16ð/ð/ð/ð/ð/ðððð ð ð ð Að Að Að ððð € ð Uðððððð.6?°Y±[´[ð ð ð ð ðDFðFðFðFðFñFôFðFð ð ð ð ð ñ ô ð ðððððñôðð((/ð(/ð(/ð(/ð(/�6˜<¨tð(/ñ(/ô(/ð(/ðV0ð0ð0ð0ð0˜,¨dð0ñ0ô0ð0ð "ð "ð "ð "ð "ˆtñ "ô "ð "ð$ð$ð$ð$ð$�Hð$ñ$ô$ð$ð$ð4ð4ñ„ð4ð(ð4ð4ñ„ð4ð0ð4ð4ñ„ð4ð&ð4ð4ñ„ð4ð4ð(ð(ñ„ð(ð*ð(ð(ñ„ð(ð*ð)0ð)0ñ„ð)0ðVð"ð"ñ„ð"ð Ø €�ÐÑÔð2ð2ñÔñÔð2ðBð 4ð 4ñ„ð 4ð ð;ð;ñ„ð;ð4ð.(ð.(ñ„ð.(ðbQDðQDðQDðQDðQD�˜tðQDñQDôQDðQDðhF ðF¨ðFðFðFðFð O˜ðO ðOðOðOðOðððððñôðð"&ð"&ð"&ð"&ð"&ñ"&ô"&ð"&ðJAðAðAðAðAˆf�jÐ"5Ð7LØðAñAôAðAðHL ðL ðL ðL ðL �6˜:Ð'<ÀDðL ñL ôL ðL ð^3ð3ð3ð3ð3�F˜J¨dð3ñ3ô3ð3ð03ð3ð3ð3ð3�f˜j°ð3ñ3ô3ð3ð0JðJðJðJðJ�˜ Ð$7Ð9NØðJñJôJðJðX9ð9ð9ðCTðCTðCTðCTðCT˜ dðCTñCTôCTðCTðbZðZðZðZðZÐ%¨TðZñZôZðZðB)!ð)!ð)!ð)!ð)!˜<Ð):À$ð)!ñ)!ô)!ð)!ðV2ð2ð2ð2ð2˜L¨-¸tð2ñ2ô2ð2ð"&ð&ð&ð&ð&Ð(°ð&ñ&ô&ð&ðD &ð &ð &ð &ð &Ð%¨Tð &ñ &ô &ð &ð"#ð"#ð"#ð"#ð"#˜ }¸Dð"#ñ"#ô"#ð"#ðJ.ð.ð.ðDðDðDðDðD˜=°ðDñDôDðDð)ð)ð)ð)ð)˜}°Dð)ñ)ô)ð)ðð:ð:ñ„ð:ðD:ð:ð:ð:ð:˜-¨tð:ñ:ô:ð:ð8i*ði*ði*ði*ði*ñi*ôi*ði*ðX3ð3ð3ð3ð3ñ3ô3ð3ðJðJðJÐðJðJðJ€ð (¨.Ñ8ÐÑ >Ô >€ ؈f�[”_Ô0°!Ñ4Ô4€ Ø ˆ6�+”/Ô*¨AÑ .Ô .€Ø ˆF�;”?Ô,¨aÑ 0Ô 0€ Ø ˆV�K”OÔ.°Ñ 2Ô 2€ Ø�˜ Ô9¸1ÐCSÐTÑTÔT€Ø�f˜ZÔCÀQÐMbÐcÑcÔcÐØ €vˆd�A˜E¨Ð/Ñ/Ô/€Øˆf�[Ô,¨a°mÐDÑDÔD€ ؈f�[Ô,¨aÑ0Ô0€ Ø ˆ&�Ô$ aÑ (Ô (€Ø ˆ6�+Ô&¨Ñ *Ô *€Ø ˆF�;”?Ô,¨aÑ 0Ô 0€ Ø�˜ œÔ6¸Ñ:Ô:€Ø €vˆd�A˜E¨Ð/Ñ/Ô/€ðð„ ð4ð ð ð ð ð �(ñ ô ñÔð ðð ð ð ð ð �Hñ ô ñÔð ðð ð ð ð ð �hñ ô ñÔð ðð ð ð ð ð �Hñ ô ñÔð ðð ð ð ð ð �Hñ ô ñÔð ðð ð ð ð ð �(˜4”.ñ ô ñÔð ðð ð ð ð ð �H˜T”Nñ ô ñÔð ðððððˆiðDðDðDñEôE€ ð ˆ9ÐBÐBÐBÑ CÔ C€ð!ð!ð!ð!ð!�Tñ!ô!ð!ðH=ð=ð=ð=ð6�lŠl˜>¨<¸¸RÑ@Ô@€ ðððð5€ ÔðR*ðR*ðR*ðR*ðR*�TñR*ôR*ðR*ðjC9°ðC9ðC9ðC9ðC9ðC9ðJ�\Š\˜.¨+°r¸2Ñ >Ô >€ Ø7Ð7€ Ôðð(ð(ñ„ð(ð.ð(ð(ñ„ð(ð$;"ð;"ð;"ð;"ð;"ñ;"ô;"ð;"ð~ €ð€ ð` ð` ð` ð` ð` ˆ�Œñ` ô` ð` ðF  ð  ð  ð  ð  ˆr�%Œyñ  ô  ð  ð  ð  ð  ð  ð  ˆR�ŒWñ  ô  ð  ðF .ð .ð .ð .ð .�dñ .ô .ð .ððððð�?ðñôðð˜Ñ€„ Ø€„ ˆBŒKÑà ˆ&�Ô" AÑ &Ô &€ØˆˆyŒ Ñ"Ô"€ððððð�?ðñôðð˜Ñ€„ Ø€„ ˆBŒKÑð�Qð˜aððððð*ØØ!ØCEð OðOðOàðOððOðð Oð ˜D œI¨°°c°Ô(:Ñ:¸CÐ?Ô@ð Oð ð Oðˆqˆc�1ˆfÔðOðOðOðOðOðOsÁA Á AÁA