grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026ó _>ìÆr K]ãó†•SrSSKJrJr SSKrSSKJr SSKrSSKrSSKrSSK r SSK r SSK r SSK J r J r JrJr SSKJrJrJrJrJrJrJrJrJr /SQrSëSS .S jjrSìSS .S jjrS rSrSrS S.S\ 4Sjjr!Sr"Sr#SS.Sjr$Sr%Sr&Sr'Sr(/r)0r*SëSS.Sjjr+S\,SS4Sjr-"S S!5r.\."5r/\/4\0"5S".S#jjr1"S$S%5r2"S&S'5r3"S(S)\2\3S S*9r4"S+S,\4S S*9r5"S-S.\65r7"S/S0\7S19r8\4S25r9\4S35r:\4S45r;\4S55r<\4S65r=\4S75r>\4S85r?S9r@\4S:5rA\5\+"S S9S;55rB\4S<5rC\4S=5rD\4S>5rE\4S?5rF"S@SA\2S S*9rGSBrHSC\8S\ 4SDjrISC\8S\ 4SEjrJSFrKSGrLSHrMSIrN\+SJ5rOSKrPSLrQ"SMSN\2S S*9rR"SOSP\RS S*9rS"SQSR\3\RS S*9rT"SSST\TS S*9rU"SUSV\3\SS S*9rV"SWSX\TS S*9rW"SYSZ\TS S*9rX"S[S\\3\SS S*9rYS]rZ"S^S_\SS S*9r["S`Sa\SS S*9r\\4Sb5r]"ScSd\SS S*9r^"SeSf5r_\0"1Sgk5r`\0"1Shk5ra\`\a-Si1-rbSjrcSkrdSíSmjreSîSojrf/SpQSqSr/Ss.rg\RÐSt5ri\)RÕ\iRÖ5 Surl\RÚ"\\l5 Svrn\RÚ"\\n5 ClCn\RÞrp\RârrSwrs"SxSy\5rt\uSz5rv"S{S|\\tS19rw"S}S~\3\SS S*9rx\5\+"S S9S55ryS€rzS�r{S‚r|\ Rú\ Rü\ Rþ\ GR\ \ \4r�SïSƒjr‚S„rƒS…r„S†r…S‡r†Sˆr‡S‰\:S\:4SŠjrˆS‹r‰SŒrŠS�r‹\"\GR"\\�55rŽSŽr�S�r�S�r‘S‘r’\"S’5r“\"S“5r”\"S”5r•\"S•S S–9r–\"S—S S–9r—\"S˜S S–9r˜\"S™S Sš9r™\"S›S \6Sœ9rš\"S�\›\,5rœ\Tr�\�"\RGR<S5rž\�"\RGR>Sl5rŸ\�"\RGR@Sž5r \�"\RGRBSl5r¡\�"\RGRDSl5r¢\�"\RGRFSl5r£\�"\RGRHSl5r¤\�"\RGRJSl5r¥\�"\RGRLS5r¦\�"\RGRNSl5r§\�"\RGRPSl5r¨\W"\RGRRSn5r©SŸ\©l\�"\RGRTSlS S¡9r«\�"\RGRXSl5r¬\�"\RGRZSn5r­\�"\RGR\Sn5r®\�"\RGR^Sl5r¯\�"\RGR`Sl5r°\U"\RGRbSS¢S£9r±\X"\²S¤SS¥S¦9r³S§\³l\�"\´SlSS¨S¦9rµ\�"\GRlSlS©S¡9r·\�"\¸SlSSªS¦9rª\�"\0SlSS«S¦9r¹\�"\RGRtSl5rº\�"\RGRvSl5r»\�"\RGRxSn5r¼\�"\RGRzSl5r½\�"\�SnSS¬S¦9r¾\�"\R SnS­S¡9r¿\�"\GR€Sn5rÀ\�"\GR‚Sl5rÁ\�"\GR„Sn5rÂ\�"\RGR†Sž\ GRˆ\ GRˆ4S®9rÃ\�"\RGRŠSn\ GRˆ4S®9rÅ\�"\6SlSS¯S¦9rÆS°\Æl\z"S±S²\w55rÇ\z"S³S´\w55rÈ\z"SµS¶\w55rÉ\z"S·S¸\w55rÊ\z"S¹Sº\w55rË\zS»"55rÌ\zS¼"55rÍSðS¾jrÎ\0"1S¿k5rÏ\0"1SÀk5rÐ"SÁSÂ\65rÑ\/4SÃjrÒ\6GR§\ÑSÄS½05rÔSÅrÕ\Õ\ÒlÖSÆr×"SÇSÈ\65rØ\/4S SÉ.SÊjjrÙ\6GR§\ØSËS½05rÚSÌ\ÙlÖ\4SÍ5rÛ\4SÎ5rÜ\4SÏ5rÝ"SÐSÑ5rÞ\,rßSrà"SÒSÓ\\œ5rá"SÔSÕ\á\›5râ"SÖS×\á\,5rãSØ"5rä"SÙSÚ\w5råS SSSS½SÛ.SÜ\ SÝ\ SÞ\ Sß\ Sà\²\6\8\©Sá\84-Sá4Sâ\8S\å4SãjjræSäSSå47 rçSæ"5rèSç\6S\ 4SèjréSç\6S\0\,4SéjrêSêrëg)ñ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: Any, 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 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Ú NoDefault)hÚ 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_protocol_membersÚget_type_hintsÚ is_protocolÚ is_typeddictÚ LiteralStringÚNeverÚNewTypeÚ no_type_checkÚno_type_check_decoratorrÚNoReturnÚ NotRequiredÚoverloadÚoverriderrÚReadOnlyÚRequiredÚ reveal_typeÚruntime_checkableÚSelfÚTextÚ TYPE_CHECKINGÚ TypeAliasÚ TypeGuardÚTypeIsrÚUnpackF©Úallow_special_formscó`•Uc [S5$[U[5(a [XUS9$U$)z=For converting None to type(None), and strings to ForwardRef.N)ÚmoduleÚis_class)ÚtypeÚ isinstanceÚstrr)Úargrvrts Ú-/opt/alt/python313/lib64/python3.13/typing.pyÚ _type_convertr}¤s1€à �{Ü�D‹zÐÜ�#”s×Ñܘ#Ð7JÑKÐKØ €JóTcó •[[4nU(dU[4- nU(a U[4- n[ XUS9n[ U[ 5(aURU;a[US35eU[[[[[[4;aU$U(aU[[4;aU$[ U[5(dU[[4;a[SUS35e[!U5["La[USU<SS35eU$)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). )rvrtú is not valid as type argumentzPlain z Got z.100Ú.)rrrrr}ryÚ _GenericAliasÚ __origin__Ú TypeErrorrr_rdr`rlroÚ _SpecialFormrxÚtuple)r{ÚmsgÚ is_argumentrvrtÚinvalid_generic_formss r|Ú _type_checkrŠ­sò€ô%¤hÐ/ÐÞ Ø¤( Ñ,ÐÞ Ø !¤e XÑ -Ð !ä ˜Ð@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 L¨4 L°Ð2Ó3Ð3Ø €Jr~cóX•USL=(d [U[[[[45$©N.)ryr†Úlistr Ú_ConcatenateGenericAlias©r{s r|Ú_is_param_exprr�Îs,€Ø �#ˆ:÷ @œ CÜ ”Dœ)Ô%=Ð >ó@ð@r~có¬•UR[RRL=(a( [ U5S:H=(a [ US5(+$)aInternal 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Ð2÷ =Ü�T“˜a‘×;¤N°4¸±7Ó$;Ô <ðr~cóx•[U[5(a7URS:Xa UR$URSUR3$USLag[U[R 5(a UR $[U[5(aSSRSU55-S-$[U5$) 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ó8# •UHn[U5v• M g7f©N)Ú _type_repr)Ú.0Úts r|Ú Ú_type_repr..sé€Ð:²c°œz¨!Ÿ}˜}²cùó‚Ú]) ryrxÚ __module__Ú __qualname__ÚtypesÚ FunctionTypeÚ__name__r†ÚjoinÚrepr©Úobjs r|r r ës£€ô�#”t×ÑØ �>‰>˜ZÓ 'Ø×#Ñ#Ð #Ø—.‘.Ð!  3×#3Ñ#3Ð"4Ð5Ð5Ø ˆc‚zØÜ�#”u×)Ñ)×*Ñ*Ø�|‰|ÐÜ�#”u×Ñà�T—Y‘YÑ:±cÓ:Ó:Ñ:¸SÑ@Ð@Ü �‹9Ðr~©Úenforce_default_orderingr±cóŠ•SnSn/nUGH,n[U[5(aM[U[5(a6UH.n[U/5HnXt;dM UR U5 M M0 Mf[ US5(awXT;apU(aVU(a UR 5(a [S5eUR 5(aSnOU(a[SU<S35eUR U5 MìMî[U5(aSn[USS5HnXd;dM UR U5 M GM/ [U5$) zßCollect all type parameters in args in order of first appearance (lexicographic order). For example:: >>> P = ParamSpec('P') >>> T = TypeVar('T') >>> _collect_type_parameters((T, Callable[P, T])) (~T, ~P) FÚ__typing_subst__z2Type parameter with a default follows TypeVarTupleTzType parameter z8 without a default follows type parameter with a defaultÚ__parameters__©) ryrxr†Ú_collect_type_parametersÚappendÚhasattrÚ has_defaultr„Ú_is_unpacked_typevartupleÚgetattr)r—r±Údefault_encounteredÚtype_var_tuple_encounteredÚ parametersr¢ÚxÚ collecteds r|r¶r¶s<€ð Ðà!&ÐØ€JÜ ˆÜ �aœ× Ñ á Ü ˜œ5× !Ñ !ó�Ü!9¸1¸#Ö!>�IØ Õ2Ø"×)Ñ)¨)Ö4ó"?óô�QÐ*× +Ñ +ØÓ"Þ+Þ1°a·m±m·o±oÜ'ð)@óAðAð—}‘}—‘Ø.2Ñ+Þ,Ü'¨/¸!¹ð?Qð)QóRðRð×!Ñ! !Ö$ñ#ô)¨×+Ñ+Ø-1Ð*ܘQÐ 0°"Ö5�ØÕ&Ø×%Ñ% aÖ(ô6ñ9ô> �Ó Ðr~c óR•[UR5nU(d[US35e[U5nX2:wamX2:aHURUR5(agU[ SUR55-nSU3nOUn[SX2:”aSOSSUS US U35eg) 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 classNc3ó@# •UHoR5v• M g7frŸ)r¹©r¡Úps r|r£Ú0_check_generic_specialization..Lsé€ÐLÒ9K°A§ ¡ § Ò9Kùs‚ú at least úToo ÚmanyÚfewú arguments for ú ; actual ú , expected )r•r´r„r¹Úsum)ÚclsÚ argumentsÚ expected_lenÚ actual_lenÚ expect_vals r|Ú_check_generic_specializationrÔ6sÉ€ô �s×)Ñ)Ó*€LÞ Ü˜3˜%Ð6Ð7Ó8Ð8Ü�Y“€JØÓ!à Ó $ð×!Ñ! *Ñ-×9Ñ9×;Ñ;Øà œCÑL¸×9KÒ9KÓLÓLÑ LˆLØ$ \ NÐ3‰Jà%ˆJä˜$¨Ó)B™vÈÐNðO Ø #˜u I¨j¨\¸ÀZÀLðRóSð Sð%"r~có¢•/nUHFn[USS5nUb"U(aUSSLdURU5 M5URU5 MH U$)NÚ__typing_unpacked_tuple_args__éÿÿÿÿ.)r»Úextendr·)r—Únewargsr{Úsubargss r|Ú _unpack_argsrÛUsR€Ø€Gۈܘ#Ð?ÀÓFˆØ Ñ ®°G¸B±KÀ3Ò4FØ �N‰N˜7Ö #à �N‰N˜3Ö ñ ð €Nr~©Úunhashable_fallbackcót•[RU5$![a U(de[U5s$f=frŸ)ÚdictÚfromkeysr„Ú_deduplicate_unhashable)ÚparamsrÝs r|Ú _deduplicaterã_s6€ð/Ü�}‰}˜VÓ$Ð$øÜ ó/Þ"Ø ä& vÓ.Ò.ð /ús ‚—7¶7cóL•/nUHnX!;dM URU5 M U$rŸ)r·)Úunhashable_paramsÚnew_unhashabler¢s r|ráráis-€Ø€NÛ ˆØ Õ "Ø × !Ñ ! !Ö $ñð Ðr~có¨•[U5n[U5n[U5nUHnURU5 M U(+$![a gf=f)NF)rár�ÚremoveÚ ValueError)Ú first_argsÚ second_argsÚfirst_unhashableÚsecond_unhashabler¢Úelems r|Ú_compare_args_orderlessrïpsZ€Ü.¨zÓ:ÐÜ/° Ó<ÐÜ Ð Ó€AðÛ$ˆDØ �H‰H�TŽNñ%ðŒ5€Løô óÙðús£AÁ AÁAcóä•/nUHVn[U[[R45(aUR UR 5 MEUR U5 MX [[USS95$)zoInternal helper for Union creation and substitution. Flatten Unions among parameters, then remove duplicates. TrÜ) ryÚ_UnionGenericAliasr©Ú UnionTyperØÚ__args__r·r†rã©r¾rârÅs r|Ú_remove_dups_flattenrõ{sZ€ð €FÛ ˆÜ �aÔ,¬e¯o©oÐ>× ?Ñ ?Ø �M‰M˜!Ÿ*™*Ö %à �M‰M˜!Ö ñ ô ”˜f¸$Ñ?Ó @Ð@r~có´•/nUHFn[U[5(aURUR5 M5UR U5 MH [ U5$)zHInternal helper for Literal creation: flatten Literals among parameters.)ryÚ_LiteralGenericAliasrØrór·r†rôs r|Ú_flatten_literal_paramsrø‹sG€à €FÛ ˆÜ �aÔ-× .Ñ .Ø �M‰M˜!Ÿ*™*Ö %à �M‰M˜!Ö ñ ô �‹=Ðr~©Útypedcó*^•U4SjnUbU"U5$U$)z�Internal wrapper caching __getitem__ of generic types. For non-hashable arguments, the original function is used as a fallback. cóÎ>^•[R"TS9"T5nU[T'[R UR 5 A[R "T5U4Sj5nU$)NrùcóT>•[T"U0UD6$![a Of=fT"U0UD6$rŸ)Ú_cachesr„)r—ÚkwdsÚfuncs €r|ÚinnerÚ+_tp_cache..decorator..innerªs>ø€ð ܘt’} dÐ3¨dÑ3Ð3øÜó Ùð úá˜Ð& Ñ&Ð &s ƒ’ ž)Ú functoolsÚ lru_cacherþÚ _cleanupsr·Ú cache_clearÚwraps)rÚcacherrús` €r|Ú decoratorÚ_tp_cache..decoratorŸs\ù€ô ×#Ò#¨%Ò0°Ó6ˆØŒ�‰ Ü×ј×*Ñ*Ô+Ø ä �Š˜Ó ô 'ó ð 'ð ˆ r~rµ)rrúr s ` r|Ú _tp_cacher šs ø€õ ð( ÑÙ˜‹Ðà Ðr~ÚfuncnameÚreturncóJ•SSKnSU<SUS3nURU[SS9 g)Nrz:Failing to pass a value to the 'type_params' parameter of z@ is deprecated, as it leads to incorrect behaviour when calling zl on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.é©ÚcategoryÚ stacklevel)ÚwarningsÚwarnÚDeprecationWarning)r rÚ depr_messages r|Ú._deprecation_warning_for_no_type_params_passedr¹s=€Ûð Ø‰\ðØ �zð"0ð 1ðð ‡M�M�,Ô);È€MÒJr~có•\rSrSrSrSrSrg)Ú _SentineliÆrµcó•g)Nz rµ©Úselfs r|Ú__repr__Ú_Sentinel.__repr__Ès€Ør~N)r«r§r¨Ú__firstlineno__Ú __slots__rÚ__static_attributes__rµr~r|rrÆs †Ø€Iõr~r©Úrecursive_guardcóL^^^^•T[La [S5 Sm[U[5(aUR TTTTS9$[U[ [ [R45(Ga7[U[ 5(ao[SUR55nURn[X5(aURUSSUS4nOURUnU(a [Un[UUUU4SjUR55nXpR:XaU$[U[ 5(a[ URU5$[U[R5(a%[R "["R$U5$UR'U5$U$)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. ztyping._eval_typerµr"c3óf# •UH'n[U[5(a [U5OUv• M) g7frŸ)ryrzr©r¡r{s r|r£Ú_eval_type..Ýs,é€ðâ%�Cô$.¨c´3×#7Ñ#7” ˜3”¸SÔ@Ú%ùs‚/1Nr×c 3ó>># •UHn[UTTTTS9v• M g7f)r"N)Ú _eval_type)r¡ÚaÚglobalnsÚlocalnsr#Ú type_paramss €€€€r|r£r'és,øé€ð ò �ô Ø�8˜W kÀ?ö ò ùsƒ)Ú _sentinelrryrÚ _evaluater‚r r©ròr†róÚ __unpacked__r˜rƒrrrÚreduceÚoperatorÚor_Ú copy_with)r¢r+r,r-r#r—Ú is_unpackedÚev_argss ```` r|r)r)ÏsTû€ð”iÒÜ6Ð7JÔK؈ Ü�!”Z× Ñ Ø�{‰{˜8 W¨kÈ?ˆ{Ð[Ð[Ü�!”m¤\´5·?±?ÐC×DÒDÜ �aœ× &Ñ &ÜñàŸ:š:óóˆDðŸ.™.ˆKÜ.¨q×7Ñ7Ø—L‘L $ s¨ )¨T°"©XÐ!6Ñ7‘à—L‘L Ñ&�Þܘ1‘I�ä÷ ð—Z’Zó  ó ˆð —j‘jÓ ØˆHÜ �aœ× &Ñ &Ü § ¡ ¨gÓ6Ð 6Ü �aœŸ™× )Ñ )Ü×#Ò#¤H§L¡L°'Ó:Ð :à—;‘;˜wÓ'Ð 'Ø €Hr~có"•\rSrSrSrSrSrSrg)Ú_FinaliúzMixin to prohibit subclassing.)Ú __weakref__có&•SU;a [S5eg)NÚ_rootz&Cannot subclass special typing classes©r„)rÏr—rÿs r|Ú__init_subclass__Ú_Final.__init_subclass__ÿs€Ø ˜$Ó ÜÐDÓEÐ Eð r~rµN)r«r§r¨rÚ__doc__r r=r!rµr~r|r8r8ús†Ù(à €IõFr~r8có •\rSrSrSrSrSrSrg)Ú _NotIterableiarMixin 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?r Ú__iter__r!rµr~r|rArAs†ñ ð€I؃Hr~rAcód•\rSrSrSrSrSrSrSrSr Sr S r S r S r S r\S 5rSrg)r…i)Ú_namer?Ú_getitemcóT•XlURUlURUlgrŸ)rEr«rDr?)rÚgetitems r|Ú__init__Ú_SpecialForm.__init__s€ØŒ Ø×%Ñ%ˆŒ Ø—‘ˆ� r~có<•US;a UR$[U5e)N>r«r¨)rDÚAttributeError)rÚitems r|Ú __getattr__Ú_SpecialForm.__getattr__ s €Ø Ð/Ó /Ø—:‘:Ð ä˜TÓ"Ð"r~có •[SU<35e)NúCannot subclass r<©rÚbasess r|Ú__mro_entries__Ú_SpecialForm.__mro_entries__&s€ÜÐ*¨4©(Ð3Ó4Ð4r~có •SUR-$©Nútyping.©rDrs r|rÚ_SpecialForm.__repr__)ó€Ø˜4Ÿ:™:Ñ%Ð%r~có•UR$rŸrXrs r|Ú __reduce__Ú_SpecialForm.__reduce__,ó €Ø�z‰zÐr~có •[SU<35e)NzCannot instantiate r<)rr—rÿs r|Ú__call__Ú_SpecialForm.__call__/s€ÜÐ-¨d©XÐ6Ó7Ð7r~có•[X4$rŸ©r©rÚothers r|Ú__or__Ú_SpecialForm.__or__2ó€Ü�T�[Ñ!Ð!r~có•[X4$rŸrcrds r|Ú__ror__Ú_SpecialForm.__ror__5ó€Ü�U�[Ñ!Ð!r~có•[US35e)Nz! cannot be used with isinstance()r<©rr¯s r|Ú__instancecheck__Ú_SpecialForm.__instancecheck__8ó€Ü˜4˜&Ð AÐBÓCÐCr~có•[US35e)Nz! cannot be used with issubclass()r<©rrÏs r|Ú__subclasscheck__Ú_SpecialForm.__subclasscheck__;rqr~có$•URX5$rŸ)rE©rr¾s r|Ú __getitem__Ú_SpecialForm.__getitem__>s€à�}‰}˜TÓ.Ð.r~)r?rErDN)r«r§r¨rr rHrMrSrr\r`rfrjrortr rxr!rµr~r|r…r…sO†Ø0€Iò'ò #ò 5ò&òò8ò"ò"òDòDðñ/óó/r~r…)r;có•\rSrSrSrSrg)Ú_TypedCacheSpecialFormiCcóX•[U[5(dU4nUR"U/UQ76$rŸ)ryr†rErws r|rxÚ"_TypedCacheSpecialForm.__getitem__Ds*€Ü˜*¤e×,Ñ,Ø$˜ˆJØ�}Š}˜TÐ/ JÒ/Ð/r~rµN)r«r§r¨rrxr!rµr~r|r{r{Cs†õ0r~r{có4^•\rSrSrU4SjrU4SjrSrU=r$)Ú_AnyMetaiJcóJ>•U[La [S5e[TU] U5$)Nz+typing.Any cannot be used with isinstance())rr„Úsuperro)rr¯Ú __class__s €r|roÚ_AnyMeta.__instancecheck__Ks&ø€Ø ”3Š;ÜÐIÓJÐ J܉wÑ(¨Ó-Ð-r~có4>•U[Lag[TU] 5$)Nz typing.Any)rr�r)rr‚s €r|rÚ_AnyMeta.__repr__Psø€Ø ”3Š;ØÜ‰wÑÓ!Ð!r~rµ)r«r§r¨rrorr!Ú __classcell__©r‚s@r|rrJsø†õ.÷ "ó"r~rcó,^•\rSrSrSrU4SjrSrU=r$)riVa;Special type indicating an unconstrained type. - Any is assignable to every type. - Any assumed to have all methods and attributes. - All values are assignable to Any. Note that all the above statements are true from the point of view of static type checkers. At runtime, Any cannot be used with instance checks. cóJ>•U[La [S5e[TU] U5$)NzAny cannot be instantiated)rr„r�Ú__new__©rÏr—Úkwargsr‚s €r|rŠÚ Any.__new__bs%ø€Ø ”#Š:ÜÐ8Ó9Ð 9܉w‰˜sÓ#Ð#r~rµ)r«r§r¨rr?rŠr!r†r‡s@r|rrVsø†ñ ÷$ó$r~r)Ú metaclasscó•[US35e)ajSpecial 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<rws r|rdrdhs€ô �t�fÐ1Ð2Ó 3Ð3r~có•[US35e)a(The bottom type, a type that has no members. This can be used to define a function that should never be called, or a function that never returns:: from typing 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 r�r<rws r|r`r`}s€ô, �t�fÐ1Ð2Ó 3Ð3r~có•[US35e)aKUsed 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 r�r<rws r|rlrl–s€ô" �t�fÐ1Ð2Ó 3Ð3r~có•[US35e)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. r�r<rws r|r_r_ªs€ô0 �t�fÐ1Ð2Ó 3Ð3r~có4•[XS3SS9n[X45$)aSpecial 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 cannot be used with isinstance() or issubclass(). ú accepts only single type.Trs©rŠr‚©rr¾rLs r|rrÅó&€ô& �z VÐ+EÐ#FÐ\`Ñ a€DÜ ˜˜wÓ 'Ð'r~có4•[XS3SS9n[X45$)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•Trsr–r—s r|rrÛr˜r~có(^•US:Xa [S5e[U[5(dU4nSm[U4SjU55n[U5n[ U5S:XaUS$[ U5S:Xa[ S5U;a [ XS S 9$[ X5$) 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ó<># •UHn[UT5v• M g7frŸ©rŠ©r¡rÅr‡s €r|r£ÚUnion..søé€Ð?²J¨q”{ 1 c×*Ð*²Jùóƒérr’Nr©Úname)r„ryr†rõr•rxrñ©rr¾r‡s @r|rrñs‘ø€ð>�RÓÜÐ:Ó;Ð;Ü �j¤%× (Ñ (Ø �]ˆ Ø 5€CÜÔ?±JÓ?Ó?€JÜ% jÓ1€JÜ ˆ:ƒ˜!ÓØ˜!‰}ÐÜ ˆ:ƒ˜!Ó¤ T£ ¨jÓ 8Ü! $¸ÑDÐDÜ ˜dÓ /Ð/r~có•[X4$)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). rc)ÚleftÚrights r|Ú _make_unionr§s€ô ��Ñ Ðr~cóF•[XS35n[U[S54$)z&Optional[X] is equivalent to X | None.z requires a single type.N)rŠrrx)rr¾r{s r|rr&s)€ô �j FÐ*BÐ"CÓ D€CÜ �”d˜4“j�Ñ !Ð!r~cóŠ•[U5n[[U55n[S[ USS955n[ X5$)aÐSpecial 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ó*# •UH upUv• M g7frŸrµ)r¡rÅÚ_s r|r£ÚLiteral..Gsé€ð$ò ‰DˆAõ ò ùs‚TrÜ)rør�Ú_value_and_type_iterr†rãr÷)rr¾Úvalue_and_type_parametersÚdeduplicated_parameterss r|rr,sO€ô2)¨Ó4€JÜ $Ô%9¸*Ó%EÓ FÐÜ#ñ$ä Ø %Ø $ò ó$óÐô  Ó >Ð>r~có•[US35e)a&Special form for marking type aliases. TypeAlias can be used 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. r�r<rws r|roroRs€ô �t�fÐ1Ð2Ó 3Ð3r~cóô^•US:Xa [S5e[U[5(dU4nUSSLd#[US[5(d [S5eSm/U4SjUSS5QUSP7n[ X5$) aGSpecial 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ó<># •UHn[UT5v• M g7frŸrœr�s €r|r£ÚConcatenate..ysøé€ÐA²¨A”K  3×'Ð'²ùrŸN)r„ryr†r rŽr£s @r|rrcsŠø€ð�RÓÜÐ@ÓAÐAÜ �j¤%× (Ñ (Ø �]ˆ Ø �r‰N˜cÒ !¤Z° ¸2±Ä ×%JÑ%JÜð:ó;ð ;à ;€CØRÔA°¸C¸R±ÓAÐRÀ:ÈbÁ>ÑR€JÜ # DÓ 5Ð5r~có6•[XS35n[X45$)a Special typing construct for marking user-defined type predicate functions. ``TypeGuard`` can be used to annotate the return type of a user-defined type predicate 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 predicate". Sometimes it would be convenient to use a user-defined boolean function as a type predicate. Such a function should use ``TypeGuard[...]`` or ``TypeIs[...]`` as its return type to alert static type checkers to this intention. ``TypeGuard`` should be used over ``TypeIs`` when narrowing from an incompatible type (e.g., ``list[object]`` to ``list[int]``) or when the function does not return ``True`` for all instances of the narrowed type. Using ``-> TypeGuard[NarrowedType]`` 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 ``NarrowedType``. 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 predicates 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 r|rprp}s$€ôh �z VÐ+EÐ#FÓ G€DÜ ˜˜wÓ 'Ð'r~có6•[XS35n[X45$)aV Special typing construct for marking user-defined type predicate functions. ``TypeIs`` can be used to annotate the return type of a user-defined type predicate function. ``TypeIs`` only accepts a single type argument. At runtime, functions marked this way should return a boolean and accept at least one argument. ``TypeIs`` aims to benefit *type narrowing* -- a technique used by static type checkers to determine a more precise type of an expression within a program's code flow. Usually type narrowing is done by analyzing conditional code flow and applying the narrowing to a block of code. The conditional expression here is sometimes referred to as a "type predicate". Sometimes it would be convenient to use a user-defined boolean function as a type predicate. Such a function should use ``TypeIs[...]`` or ``TypeGuard[...]`` as its return type to alert static type checkers to this intention. ``TypeIs`` usually has more intuitive behavior than ``TypeGuard``, but it cannot be used when the input and output types are incompatible (e.g., ``list[object]`` to ``list[int]``) or when the function does not return ``True`` for all instances of the narrowed type. Using ``-> TypeIs[NarrowedType]`` tells the static type checker that for a given function: 1. The return value is a boolean. 2. If the return value is ``True``, the type of its argument is the intersection of the argument's original type and ``NarrowedType``. 3. If the return value is ``False``, the type of its argument is narrowed to exclude ``NarrowedType``. For example:: from typing import assert_type, final, TypeIs class Parent: pass class Child(Parent): pass @final class Unrelated: pass def is_parent(val: object) -> TypeIs[Parent]: return isinstance(val, Parent) def run(arg: Child | Unrelated): if is_parent(arg): # Type of ``arg`` is narrowed to the intersection # of ``Parent`` and ``Child``, which is equivalent to # ``Child``. assert_type(arg, Child) else: # Type of ``arg`` is narrowed to exclude ``Parent``, # so only ``Unrelated`` is left. assert_type(arg, Unrelated) The type inside ``TypeIs`` must be consistent with the type of the function's argument; if it is not, static type checkers will raise an error. An incorrectly written ``TypeIs`` function can lead to unsound behavior in the type system; it is the user's responsibility to write such functions in a type-safe manner. ``TypeIs`` also works with type variables. For more information, see PEP 742 (Narrowing types with ``TypeIs``). r•r–r—s r|rqrqµs$€ôB �z VÐ+EÐ#FÓ G€DÜ ˜˜wÓ 'Ð'r~cóX•\rSrSrSrSrSSS.Sjjr\4SjrS r S r S r S r S r Srg)riúz-Internal wrapper to hold a forward reference.)Ú__forward_arg__Ú__forward_code__Ú__forward_evaluated__Ú__forward_value__Ú__forward_is_argument__Ú__forward_is_class__Ú__forward_module__NF)rwcó •[U[5(d[SU<35e[[ U5SS5nXlXPlSUlSUl X l X@l X0l g![ a [ SU<35ef=f)Nz*Forward reference must be a string -- got zÚevalz/Forward reference must be an expression -- got F) ryrzr„ÚcompileÚ_rewrite_star_unpackÚ SyntaxErrorr·r¸r¹rºr»r¼r½)rr{rˆrvrwÚcodes r|rHÚForwardRef.__init__s“€Ü˜#œs×#Ñ#ÜÐHÈÉÐPÓQÐ Qð YÜÔ/°Ó4°jÀ&ÓIˆDð #ÔØ $ÔØ%*ˆÔ"Ø!%ˆÔØ'2Ô$Ø$,Ô!Ø"(Õøôó YÜÐ OÐPSÉwÐWÓXÐ Xð Yús ¦A)Á)Bcó¶•U[La [S5 SnURU;aU$UR(aX!LGaUcUc0=pO UcUnOUcUnURb5[ [ RRURS5SU5nU(aX[U5[U5p!UH=nURnUR(aXa;dM'XQU'URUS5 M? [[URX5SUR URS9n[#UUUUX@R1-S9UlSUlUR$$)Nztyping.ForwardRef._evaluaterµÚ__dict__z*Forward references must evaluate to types.)rˆrtr"T)r.rr·r¹r½r»ÚsysÚmodulesÚgetrßr«r¼ÚpoprŠr¿r¸r»r)rº)rr+r,r-r#ÚparamÚ param_nameÚtype_s r|r/ÚForwardRef._evaluatesQ€Ø œ)Ò #Ü :Ð;XÔ Y؈KØ × Ñ  ?Ó 2؈KØ×)×)¨WÓ-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Ó>Ø<Ø ×8Ñ8Ø$(×$=Ñ$=ñ ˆEô &0ØØØØØ!0×4HÑ4HÐ3IÑ!Iñ &ˆDÔ "ð*.ˆDÔ &Ø×%Ñ%Ð%r~có`•[U[5(d[$UR(aJUR(a9URUR:H=(a UR UR :H$URUR:H=(a UR UR :H$rŸ)ryrÚNotImplementedr¹r·rºr½rds r|Ú__eq__ÚForwardRef.__eq__DsŽ€Ü˜%¤×,Ñ,Ü!Ð !Ø × %× %¨%×*E×*EØ×(Ñ(¨E×,AÑ,AÑA÷FØ×*Ñ*¨e×.EÑ.EÑEð Gà×$Ñ$¨×(=Ñ(=Ñ=÷DØ×'Ñ'¨5×+CÑ+CÑCð Er~cóD•[URUR45$rŸ)Úhashr·r½rs r|Ú__hash__ÚForwardRef.__hash__Ms€Ü�T×)Ñ)¨4×+BÑ+BÐCÓDÐDr~có•[X4$rŸrcrds r|rfÚForwardRef.__or__Prhr~có•[X4$rŸrcrds r|rjÚForwardRef.__ror__Srlr~cóh•URcSnOSUR<3nSUR<US3$)NÚz , module=z ForwardRef(Ú))r½r·)rÚ module_reprs r|rÚForwardRef.__repr__Vs@€Ø × "Ñ "Ñ *؉Kà% d×&=Ñ&=Ñ%@ÐAˆKؘT×1Ñ1Ñ4°[°MÀÐCÐCr~)r·r¸r¹r»r¼r½rº©TN)r«r§r¨rr?r rHr.r/rÑrÕrfrjrr!rµr~r|rrús@†Ù7ð'€Ið )Àuö)ð"8Aô/&òbEòEò"ò"õDr~rcó>•URS5(aSUS3$U$)zlIf the given argument annotation expression is a star unpack e.g. `'*Ts'` rewrite it to a valid expression. Ú*Ú(z,)[0])Ú startswithr�s r|rÁrÁ^s&€ð ‡~�~�c×ÑØ�3�%�uˆ~Ðàˆ r~r¿cóT•[U[5(+=(a [USS5$)NÚ#__typing_is_unpacked_typevartuple__F)ryrxr»©r¿s r|rºrºhs(€Ü˜AœtÓ$Ô $÷ EÜ �AÐ<¸eÓ DðFr~cóR•[U[[45=(d [U5$rŸ)ryr r rºrçs r|Ú_is_typevar_likeréms€Ü �aœ'¤9Ð-Ó .× NÔ2KÈAÓ2NÐNr~cóØ•Sn[XSS9n[U[5(aUR[Ld'[U[ 5(a [ USS5(a[US35eU$)Nú*Parameters to generic types must be types.T)rˆr0Fr€)rŠryr‚rƒrrr r»r„)rr{r‡s r|Ú_typevar_substrìqs^€Ø 6€CÜ �c¨DÑ 1€CÜ �Cœ× 'Ñ '¨C¯N©N¼fÒ,DÜ �Cœ× &Ñ &¬7°3¸È×+NÑ+Nܘ3˜%Ð=Ð>Ó?Ð?Ø €Jr~c ó •URnURU5nX4S-SH&n[U[5(dM[ SU35e [ U5n[ U5nUnXt- S- n Sn Sn [ U5HbupÍ[U [5(aM[U SS5nU(dM2[ U5S:XdMCUSSLdMMU b [ S5eU n USn Md U b[XŠ5n[X–U - S- 5n OX‰-U:”a[ S US US US- 35eX†U - :Xa+UR5(a[UR5nOX(Xi- n/USUQU /XH- -QUPU /Xy- U- U- S- -QX&U - SQ7$) Nr z(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ÛÚ __default__)rÚaliasr—râÚtypevartuple_indexrËÚalenÚplenr¥r¦Úvar_tuple_indexÚfillargÚkr{rÚÚ replacements r|Ú_typevartuple_prepare_substrûzsè€Ø × !Ñ !€FØŸ™ dÓ+ÐØ¨QÑ.Ð/Ó0ˆÜ �eœ\× *Ó *ÜÐFÀuÀgÐNÓOÐ Oñ1ô ˆt‹9€DÜ ˆv‹;€DØ €DØ Ñ %¨Ñ )€EØ€OØ€GܘD–/‰ˆÜ˜#œt×$Ó$ܘcÐ#CÀTÓJˆG߈wœ3˜w›<¨1Õ,°¸±ÀÔ1CØ"Ñ.Ü#Ð$\Ó]Ð]Ø"#�Ø! !™*’ñ"ðÑ"Ü�4Ó)ˆÜ�E /Ñ1°AÑ5Ó6‰Ø ‰˜Ó ÜÐ0°°ð8#Ø#' &Ð(<¸TÀ!¹V¸HðFóGð Gà �e‰|Ó × 0Ñ 0× 2Ñ 2Ü" 4×#3Ñ#3Ó4‰ à ¡Ð.ˆ ð Ø ˆeˆtˆð à ˆ)Ð'Ñ.Ñ /ð ð ð ð ˆ)�T‘\ DÑ(Ð+=Ñ=ÀÑAÑ Bð  ð �U‰lˆmÐ ñ  ðr~có •[U[[45(a[SU55nU$[U5(d[ SU35eU$)Nc3ó:# •UHn[US5v• M g7f)zExpected a type.Nrœ©r¡r*s r|r£Ú#_paramspec_subst..¥sé€ÐD¸1”K Ð#5×6Ð6Âùó‚zFExpected a list of types, an ellipsis, ParamSpec, or Concatenate. Got )ryr�r†r�r„©rr{s r|Ú_paramspec_substr£s[€Ü�#œœe�}×%Ñ%ÜÑDÁÓDÓDˆð €Jô˜C× Ñ Üð:Ø:=¸ð@óAð Aà €Jr~có˜•URnURU5nU[U5:Xa&UR5(a/UQURP7nU[U5:¼a[ SU35e[U5S:Xa[ US5(dU4nU$[X$[5(a/USUQ[X$5PX$S-SQ7nU$)Nrîr r) r´rïr•r¹ròr„r�ryr�r†)rrór—râÚis r|Ú_paramspec_prepare_substr¬sÍ€Ø × !Ñ !€FØ� ‰ �TÓ€AØŒC�‹Iƒ~˜$×*Ñ*×,Ñ,Ø(�Ð(�t×'Ñ'Ñ(ˆØŒC�‹Iƒ~ÜÐ0°°Ð8Ó9Ð9ä ˆ6ƒ{�aÓ¤¨t°A©w× 7Ñ 7àˆwˆð €Kô �D‘GœT× "Ñ "Ø7��b�q�Ð7œ5 ¡›>Ð7¨D°1±°¨JÑ7ˆØ €Kr~có„•[U[5(dU4n[SU55nU[[4;nU(a‹U(d[ SUR S35e[ SU55(d[ SURS35e[[U55[U5:wa[ SURS35eO•URnUHn[US S 5nUcMU"X5nM [X5 /n[!X15H>upi[U["5(aUR%U 5 M-UR'U 5 M@ [U5n[)X5$![aIn[USS 5nUS [R1;a URS UR <S 35 eS nAff=f) ajParameterizes 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 `args=int`. However, note that this method is also called when defining generic classes in the first place with `class Foo(Generic[T]): ...`. c3ó8# •UHn[U5v• M g7frŸ©r}rÄs r|r£Ú)_generic_class_getitem..Ësé€Ð0ª4 a”˜q×!Ð!ª4ùr¥zParameter list to z[...] cannot be emptyc3ó8# •UHn[U5v• M g7frŸ)rérÄs r|r£r Ôsé€Ð5²¨1Ô# A×&Ð&²ùr¥zParameters to zF[...] must all be type variables or parameter specification variables.z[...] must all be uniquer=Nz-Note: this exception may have been caused by z^ (or the '__init_subclass__' method on a superclass) not calling 'super().__init_subclass__()'Ú__typing_prepare_subst__)ryr†rrr„r¨Úallr«r•Úsetr´rKr»r=Úadd_noterÔÚzipr rØr·r‚) rÏr—Úis_generic_or_protocolr¾ÚeÚ init_subclassrËÚprepareÚnew_argsÚnew_args r|Ú_generic_class_getitemr½sÀô �dœE× "Ñ "؈wˆä Ñ0©4Ó0Ó 0€DØ ¤W¬hÐ$7Ñ7ÐææÜØ$ S×%5Ñ%5Ð$6Ð6KÐLóð ôÑ5±Ó5×5Ñ5ÜØ  §¡ ð/8ð9ó:ð :ô Œs�4‹y‹>œS ›YÓ &ÜØ  §¡ Ð.FÐGóIð Ið 'ð Ø×+Ñ+ˆJó ˆEܘeÐ%?ÀÓFˆGØÓ"Ù˜sÓ)’ñ ô & cÔ0àˆÜ! *Ö3‰NˆEܘ%¤×.Ñ.Ø—‘ Ö(à—‘ Ö(ñ 4ô �X‹ˆä ˜Ó #Ð#øô1ó Ü# CÐ)<¸dÓCˆMØ T¬7×+DÑ+DÐ$EÓEØ— ‘ ØCØ$×1Ñ1Ñ4ð5<ð=ôð ûð úsà E,Å, F?Å6AF:Æ:F?có^ •[[U] "U0UD6 /nSUR;a[UR;nOB[UR ;=(a( UR S:g=(a [U5[:gnU(a [S5eSUR;aÖ[UR5nSnURHIn[U[5(dMUR[LdM/Ub [S5eURnMK Ubc[U5n[U5m UT ::dESR!U 4SjU55nSR!SU55n [SUS U S 35eUn[#U5Ulg) NÚ__orig_bases__rz!Cannot inherit from plain Genericz0Cannot inherit from Generic[...] multiple times.r�c3óH># •UHoT;dM [U5v• M g7frŸ©rz)r¡r¢Úgvarsets €r|r£Ú)_generic_init_subclass..søé€Ð"M²5¨aÀWÑ.Ts-é€ðâ"+˜Bô# 2¤tÓ,×H´¸BÄÓ1HÔHÚ"+ùs‚46) rƒr·rïryr/rxr»r†Úanyr=r)rrRÚresrÚbÚmethÚ new_basess r|rSÚ!_BaseGenericAlias.__mro_entries__@s߀ØˆØ �?‰? %Ó 'Ø �J‰J�t—‘Ô 'ð �K‰K˜Ó ˆØ˜‘s�t“ˆAܘ!Ô.×/Ñ/Ùܘa¤×&Ñ&ܘqÐ"3°TÓ:�Þ+/™D œK°T� ä˜y¬%×0Ñ0Üñá"+ó÷ññ ñ ñ1ô˜Aœw×'Ó'Ùñð" �J‰J”wÔ Ü�S‹zÐr~cóâ•US;a)UR=(d URR$SUR;a&[ U5(d[ URU5$[ U5e)N>r«r¨rƒ)rDrƒr«rÆr-r»rK)rr,s r|rMÚ_BaseGenericAlias.__getattr__`sX€Ø Ð/Ó /Ø—:‘:×9 §¡×!9Ñ!9Ð 9ð ˜4Ÿ=™=Ó (´¸D×1AÑ1Aܘ4Ÿ?™?¨DÓ1Ð 1ܘTÓ"Ð"r~có~>•[U5(dUS;a[TU] X5 g[URX5 g)N>r3rDÚ_nparamsÚ _defaults)r-r�Ú __setattr__Úsetattrrƒ)rr,Úvalr‚s €r|rKÚ_BaseGenericAlias.__setattr__js1ø€Ü �d× Ñ ˜tÐ'RÓRÜ ‰GÑ  Õ *ä �D—O‘O TÕ /r~có6•UR[U55$rŸ)rtrxrns r|roÚ#_BaseGenericAlias.__instancecheck__ps€Ø×%Ñ%¤d¨3£iÓ0Ð0r~có•[S5e)NzBSubscripted generics cannot be used with class and instance checksr<rss r|rtÚ#_BaseGenericAlias.__subclasscheck__ss€Üð5ó6ð 6r~c óÀ>•[[[TU] 5[ UR 5Vs/sHn[ U5(aMUPM sn-55$s snfrŸ)r�r r�Ú__dir__Údirrƒr-©rr,r‚s €r|rTÚ_BaseGenericAlias.__dir__wsPø€Ü”Cœ™™Ó)Ü$'¨¯©Ô$8ÓQÒ$8˜DÄ È4×@P—4Ñ$8ÑQñRóSóTð TùÚQs °AÁA)rƒr r3rD)r«r§r¨rr?rHr`rSrMrKrortrTr!r†r‡s@r|r/r/#s?ø†ñð(,°$õò òò@#õ0ò 1ò6÷TóTr~r/cóŽ^•\rSrSrSrSSS.U4SjjrSrSrS rS r \ S 5r S r S r SrSrSrU4SjrSrSrU=r$)r‚i‡aôThe type of parameterized generics. That is, for example, `type(List[int])` is `_GenericAlias`. Objects which are instances of this class include: * Parameterized container types, e.g. `Tuple[int]`, `List[int]`. * Note that native container types, e.g. `tuple`, `list`, use `types.GenericAlias` instead. * Parameterized classes: class C[T]: pass # C[int] is a _GenericAlias * `Callable` aliases, generic `Callable` aliases, and parameterized `Callable` aliases: T = TypeVar('T') # _CallableGenericAlias inherits from _GenericAlias. A = Callable[[], None] # _CallableGenericAlias B = Callable[[T], None] # _CallableGenericAlias C = B[int] # _CallableGenericAlias * Parameterized `Final`, `ClassVar`, `TypeForm`, `TypeGuard`, and `TypeIs`: # All _GenericAlias Final[int] ClassVar[float] TypeForm[bytearray] TypeGuard[bool] TypeIs[range] Note that instances of this class are not classes (e.g by `inspect.isclass`), even though they behave like them. TNr0cóî>•[TU]XUS9 [U[5(dU4n[SU55UlU[ [ 4;n[UUS9UlU(dURUl gg)Nr0c3ó<# •UHnU[LaSOUv• M g7f).N)Ú_TypingEllipsisrþs r|r£Ú)_GenericAlias.__init__..©s&é€ð/Ú)- Að&'¬/Ò%9™cØô Ú)-ùs‚r°) r�rHryr†rórrr¶r´r§)rr4r—r1r¢r±r‚s €r|rHÚ_GenericAlias.__init__¥s|ø€Ü ‰Ñ˜°ÐÑ6ܘ$¤×&Ñ&Ø�7ˆDÜñ/Ù)-ó/ó/ˆŒ à#)¬g´xÐ-@Ñ#@Ð Ü6Ø Ø%=ñ ˆÔöØ$×/Ñ/ˆD�Oðr~cóª•[U[5(d[$URUR:H=(a URUR:H$rŸ)ryr‚rÐrƒrórds r|rÑÚ_GenericAlias.__eq__³sA€Ü˜%¤×/Ñ/Ü!Ð !Ø—‘ 5×#3Ñ#3Ñ3÷4Ø—M‘M U§^¡^Ñ3ð 5r~cóD•[URUR45$rŸ)rÔrƒrórs r|rÕÚ_GenericAlias.__hash__¹s€Ü�T—_‘_ d§m¡mÐ4Ó5Ð5r~có•[X4$rŸrc©rr¦s r|rfÚ_GenericAlias.__or__¼rhr~có•[X4$rŸrc©rr¥s r|rjÚ_GenericAlias.__ror__¿ó€Ü�T�ZÑ Ð r~có&•UR[[4;a[SU35eUR(d[US35e[ U[ 5(dU4n[SU56nURU5nURU5nU$)a³Parameterizes an already-parameterized object. For example, we arrive here doing something like: T1 = TypeVar('T1') T2 = TypeVar('T2') T3 = TypeVar('T3') class A(Generic[T1]): pass B = A[T2] # B is a _GenericAlias C = B[T3] # Invokes _GenericAlias.__getitem__ We also arrive here when parameterizing a generic `Callable` alias: T = TypeVar('T') C = Callable[[T], None] C[int] # Invokes _GenericAlias.__getitem__ z%Cannot subscript already-subscripted rÂc3ó8# •UHn[U5v• M g7frŸrrÄs r|r£Ú,_GenericAlias.__getitem__..Ýsé€Ð=º°1œm¨A×.Ð.ºùr¥) rƒrrr„r´ryr†rÛÚ_determine_new_argsr4)rr—rÚrs r|rxÚ_GenericAlias.__getitem__Âs�€ð$ �?‰?œw¬Ð1Ó 1äÐCÀDÀ6ÐJÓKÐ KØ×"×"ܘt˜fÐ$;Ð<Ó=Ð =ô˜$¤×&Ñ&Ø�7ˆDÜÑ=¹Ó=Ð>ˆØ×+Ñ+¨DÓ1ˆØ �N‰N˜8Ó $ˆØˆr~c óD•URnUHn[USS5nUcMU"X5nM [U5n[U5nXV:wa[SXV:”aSOSSUSUSU35e[ [ X!55n[ URURU55$) a—Determines new __args__ for __getitem__. For example, suppose we had: T1 = TypeVar('T1') T2 = TypeVar('T2') class A(Generic[T1, T2]): pass T3 = TypeVar('T3') B = A[int, T3] C = B[str] `B.__args__` is `(int, T3)`, so `C.__args__` should be `(int, str)`. Unfortunately, this is harder than it looks, because if `T3` is anything more exotic than a plain `TypeVar`, we need to consider edge cases. r NrÈrÉrÊrËrÌrÍ) r´r»r•r„rßrr†Ú_make_substitutionró)rr—rârËrrõröÚnew_arg_by_params r|rlÚ!_GenericAlias._determine_new_argsâs¸€ð×$Ñ$ˆãˆEܘeÐ%?ÀÓFˆGØÓ"Ù˜tÓ*’ñô�4‹yˆÜ�6‹{ˆØ ‹<ܘd¨T«[¡6¸eÐ"DÀOÐTXÐSYðZ'Ø'+ f¨K¸°vð?ó@ð @䤠FÓ 1Ó2ÐÜ�T×,Ñ,¨T¯]©]Бä# GÐ-=¸rÓB� Þ Ø%‘Gà �GÛ&˜Ü% a¬×6Ñ6Ø#ŸN™NÐ+;Ñ+>Ö?à#ŸN™NÐ+;Ñ+>Ö?ñ 'ð &¤e¨G£nÑ5�Gà�‰¤+§/¡/×":Ñ":Ó:¼zÈ'ÔSX×?YÑ?Yð—‘ ×(Ü*¨7×3Ñ3ð—‘ ×(ܘG¤U×+Ñ+ð—‘ܘ$×1Ñ1°'ÓLÓM÷ð—‘ ×(ñqðrˆr~có`•URURXRURS9$©N)r¢r1)r‚rƒrDr3©rr—s r|r4Ú_GenericAlias.copy_with=s#€Ø�~‰~˜dŸo™o¨t¿*¹*È4Ï:É:ˆ~ÐVÐVr~có•UR(aSUR-nO[UR5nUR(a6SR URVs/sHn[U5PM sn5nOSnUSUS3$s snf)NrWr�z()rœr¦)rDr rƒrór¬)rr¢r*r—s r|rÚ_GenericAlias.__repr__@sq€Ø �:�:ؘtŸz™zÑ)‰Dä˜dŸo™oÓ.ˆDØ �=�=Ø—9‘9°T·]²]ÓC²]°œj¨žm±]ÑCÓD‰DðˆDØ��q˜˜˜aÐ Ð ùò DsÁ!Bcó•UR(a[5URnO URn[UR5n[ U5S:Xa[ US[5(dUun[RX44$)Nr r) rDÚglobalsrƒr†rór•ryr2rG)rr4r—s r|r\Ú_GenericAlias.__reduce__Lse€Ø �:�:Ü“Y˜tŸz™zÑ*‰Fà—_‘_ˆFÜ�T—]‘]Ó#ˆÜ ˆt‹9˜‹>¤*¨T°!©W´e×"<Ñ"<؉EˆDÜ×Ñ & Ð/Ð/r~cón>•[UR[5(a[SU<35eUR(a[ TU]U5$UR[LaG[U;agURU5nXS-SH n[U[5(dMX0LdM g UR4$)NrPrµr ) ryrƒr…r„rDr�rSrrrïr/)rrRrrBr‚s €r|rSÚ_GenericAlias.__mro_entries__Vs™ø€Ü �d—o‘o¤|× 4Ñ 4ÜÐ.¨t©hÐ7Ó8Ð 8à �:�:Ü‘7Ñ*¨5Ó1Ð 1Ø �?‰?œgÒ %ܘ5Ó ØØ— ‘ ˜DÓ!ˆAؘQ™3˜4“[�ܘaÔ!2×3Ó3¸¼ Ùñ!ð—‘Ð!Ð!r~c#ó"# •[Uv• g7frŸ)rrrs r|rBÚ_GenericAlias.__iter__esé€Ü�T‰lÓùs‚ )rór§r´)r«r§r¨rr?rHrÑrÕrfrjr rxrlrpr4rr\rSrBr!r†r‡s@r|r‚r‚‡slø†ñð:.2¸÷ 0ð 0ò5ò 6ò"ò!ðñóðò>Oò:<ò|Wò !ò0õ "÷ðr~r‚cón^•\rSrSrSSSS.U4Sjjr\S5rSrS rU4S jr S r S r S r Sr U=r$)Ú_SpecialGenericAliasimTNrµ)r1r¢Údefaultscóè>•Uc URn[TU] XUS9 X lXPlUR S:XaSUR S3UlgSUR SUR S3Ulg)Nr0ršzDeprecated alias to r�)r«r�rHrIrJr§r¨r?)rr4Únparamsr1r¢r‡r‚s €r|rHÚ_SpecialGenericAlias.__init__nswø€Ø ‰<Ø—?‘?ˆDÜ ‰Ñ˜°ÐÑ6ØŒ Ø!ŒØ × Ñ   Ó *Ø1°&×2EÑ2EÐ1FÀaÐHˆD�Là1°&×2CÑ2CÐ1DÀAÀf×FYÑFYÐEZÐZ[Ð\ˆD�Lr~c óä^•[U[5(dU4nSm[U4SjU55nUR(ar[U5UR:aY[U5[UR5-UR:¼a*/UQUR[U5UR- SQ7n[U5nX R:wa“UR(a&SUR[UR5- 3nO[ UR5nUR(d[ US35e[ SX R:”aSOSSUS US U35eURU5$) Nrëc3ó<># •UHn[UT5v• M g7frŸrœr�s €r|r£Ú3_SpecialGenericAlias.__getitem__..~óøé€Ð;²F¨q”{ 1 c×*Ð*²FùrŸrÇrÂrÈrÉrÊrËrÌrÍ)ryr†rJr•rIrzr„r4)rrârÒÚexpectedr‡s @r|rxÚ _SpecialGenericAlias.__getitem__ys:ø€ä˜&¤%×(Ñ(Ø�YˆFØ:ˆÜÔ;±FÓ;Ó;ˆØ �N�NÜ�F“ ˜dŸm™mÓ+Ü�F“ œc $§.¡.Ó1Ñ1°T·]±]ÓBàM�vÐM §¡¬s°6«{¸T¿]¹]Ñ/JÐ/KÐ LÑMˆFܘ“[ˆ à Ÿ™Ó &Ø�~�~Ø& t§}¡}´s¸4¿>¹>Ó7JÑ'JÐ&KÐL‘ä˜tŸ}™}Ó-�Ø—=—=Ü 4 &Ð(?Ð @ÓAÐAܘd¨Z¿-¹-Ó-G¡6ÈUÐ"SÐSbÐcgÐbhði'Ø'1 l°+¸h¸ZðIóJð Jà�~‰~˜fÓ%Ð%r~cóV•[URUURURS9$ry)r‚rƒrDr3©rrâs r|r4Ú_SpecialGenericAlias.copy_with‘s$€Ü˜TŸ_™_¨fØ"&§*¡*°4·:±:ñ?ð ?r~có •SUR-$rVrXrs r|rÚ_SpecialGenericAlias.__repr__•rZr~cóà>•[U[5(a [URUR5$[U[5(d[XR5$[ TU]U5$rŸ)ryr†r=rƒr‚r�rt)rrÏr‚s €r|rtÚ&_SpecialGenericAlias.__subclasscheck__˜sRø€Ü �cÔ/× 0Ñ 0ܘcŸn™n¨d¯o©oÓ>Ð >ܘ#œ}×-Ñ-ܘc§?¡?Ó3Ð 3܉wÑ(¨Ó-Ð-r~có•UR$rŸrXrs r|r\Ú_SpecialGenericAlias.__reduce__Ÿr^r~có•[X4$rŸrcrcs r|rfÚ_SpecialGenericAlias.__or__¢rhr~có•[X4$rŸrcrfs r|rjÚ_SpecialGenericAlias.__ror__¥rhr~)r?rJrI)r«r§r¨rrHr rxr4rrtr\rfrjr!r†r‡s@r|r†r†msMø†Ø04¸4È"÷ ]ð ]ðñ&óð&ò.?ò&õ.òò"÷!ð!r~r†có>^•\rSrSrSSS.U4SjjrU4SjrSrU=r$)Ú_DeprecatedGenericAliasi©TNr0có.>•[TU]XXES9 X0lg)Nr0)r�rHÚ_removal_version)rr4r‰Úremoval_versionr1r¢r‚s €r|rHÚ _DeprecatedGenericAlias.__init__ªsø€ô ‰Ñ˜¨tÐÑ?Ø /Õr~có�>•SSKnURURSUR3URS9 [ TU]U5$)Nrr�©rè)rÚ _deprecatedr§rDr¡r�ro)rr1rr‚s €r|roÚ)_DeprecatedGenericAlias.__instancecheck__°sJø€ÛØ×ÑØ�‰Ð˜q §¡  Ð -°d×6KÑ6Kð ñ ô‰wÑ(¨Ó.Ð.r~)r¡)r«r§r¨rrHror!r†r‡s@r|rŸrŸ©sø†à8<À4÷0ð0÷ /ó/r~rŸcó.^•\rSrSrU4SjrSrSrU=r$)Ú_CallableGenericAliasi¸c ó>•URn[U5S:Xa![US5(a[TU]5$SSR USSVs/sHn[ U5PM sn5S[ US5S3$s snf)Nr’rztyping.Callable[[r�r×z], r¦)rór•r�r�rr¬r )rr—r*r‚s €r|rÚ_CallableGenericAlias.__repr__¹s€ø€à�}‰}ˆÜ ˆt‹9˜‹>œn¨T°!©W×5Ñ5Ü‘7Ñ#Ó%Ð %ðØ—Y‘Y°t¸C¸R±yÓA²y°!¤ ¨1¦ ±yÑAÓBÐCÀ3ܘd 2™hÓ'Ð(¨ð+ð ,ùÚAsÁA? có´•URn[U5S:Xa[US5(d[USS5US4n[R [ U44$)Nr’rr×)rór•r�r�r2rGrrzs r|r\Ú _CallableGenericAlias.__reduce__ÂsR€Ø�}‰}ˆÜ�D“ ˜Q“¤>°$°q±'×#:Ñ#:ܘ˜S˜b˜ “? D¨¡HÐ,ˆDÜ×Ѥ(¨DÐ!1Ð1Ð1r~rµ)r«r§r¨rrr\r!r†r‡s@r|r©r©¸sø†õ,÷2ð2r~r©có0•\rSrSrSrSr\S5rSrg)Ú _CallableTypeiÉcóV•[URUURURS9$ry)r©rƒrDr3r’s r|r4Ú_CallableType.copy_withÊs&€Ü$ T§_¡_°fØ*.¯*©*¸4¿:¹:ñGð Gr~cóÖ•[U[5(a[U5S:wa [S5eUup#[U[5(a[U5U4nOX#4nUR U5$)Nr’z6Callable must be used as Callable[[arg, ...], result].)ryr†r•r„r�Ú__getitem_inner__)rrâr—r9s r|rxÚ_CallableType.__getitem__Îsh€Ü˜&¤%×(Ñ(¬C°«K¸1Ó,<Üð<ó=ð =à‰ ˆô �dœD× !Ñ !ܘD“k 6Ð*‰Fà�^ˆFØ×%Ñ% fÓ-Ð-r~cóä•Uup#Sn[X45nU[LaUR[U45$[ U[ 5(dU4n[ SU55nX#4-nURU5$)Nz.Callable[args, result]: result must be a type.c3ó8# •UHn[U5v• M g7frŸrr&s r|r£Ú2_CallableType.__getitem_inner__..åsé€Ð8²4¨C”] 3×'Ð'²4ùr¥)rŠÚEllipsisr4r[ryr†)rrâr—r9r‡s r|r³Ú_CallableType.__getitem_inner__Üsq€à‰ ˆØ>ˆÜ˜VÓ)ˆØ ”8Ò Ø—>‘>¤?°FÐ";Ó<Ð <ܘ$¤×&Ñ&Ø�7ˆDÜÑ8±4Ó8Ó8ˆØ˜ Ñ!ˆØ�~‰~˜fÓ%Ð%r~rµN) r«r§r¨rr4rxr r³r!rµr~r|r¯r¯És!†òGò .ðñ &óó &r~r¯có$•\rSrSr\S5rSrg)Ú _TupleTypeiêcó^•[U[5(dU4n[U5S:¼a<USSLa4Sm[U4SjUSS55nUR/UQ[P75$Sm[U4SjU55nURU5$)Nr’r×.z Tuple[t, ...]: t must be a type.c3ó<># •UHn[UT5v• M g7frŸrœr�s €r|r£Ú)_TupleType.__getitem__..ñsøé€ÐDº °1œ; q¨#×.Ð.º ùrŸz*Tuple[t0, t1, ...]: each t must be a type.c3ó<># •UHn[UT5v• M g7frŸrœr�s €r|r£r¾ôrŽrŸ)ryr†r•r4r[)rrâr‡s @r|rxÚ_TupleType.__getitem__ës‡ø€ä˜&¤%×(Ñ(Ø�YˆFÜ ˆv‹;˜!Ó   r¡ ¨cÒ 1Ø4ˆCÜÔD¸¸sÀ¹ ÓDÓDˆFØ—>‘>Ð"< FÐ"<¬OÑ"<Ó=Ð =Ø:ˆÜÔ;±FÓ;Ó;ˆØ�~‰~˜fÓ%Ð%r~rµN)r«r§r¨rr rxr!rµr~r|r»r»ês†Øñ &óó &r~r»cóR^•\rSrSrSrSrSrU4SjrSrSr U4Sjr S r U=r $) rñiøcó•[U$rŸrcr’s r|r4Ú_UnionGenericAlias.copy_withùs €Ü�V‰}Ðr~có•[U[[R45(d[$[ UR 5[ UR 5:H$![a# [UR UR 5s$f=frŸ) ryrñr©ròrÐr rór„rïrds r|rÑÚ_UnionGenericAlias.__eq__üsh€Ü˜%Ô"4´e·o±oÐ!F×GÑGÜ!Ð !ð JÜ�t—}‘}Ó%¬¨U¯^©^Ó)<Ñ<Ð <øÜó JÜ*¨4¯=©=¸%¿.¹.ÓIÒ Ið Jús­*AÁ*BÂBcó>•[[UR55$rŸ)rÔÚ frozensetrórs r|rÕÚ_UnionGenericAlias.__hash__s€Ü”I˜dŸm™mÓ,Ó-Ð-r~cóâ>•URn[U5S:XaFUS[S5LaS[US5S3$US[S5LaS[US5S3$[TU]5$)Nr’rztyping.Optional[r r¦)rór•rxr r�r©rr—r‚s €r|rÚ_UnionGenericAlias.__repr__swø€Ø�}‰}ˆÜ ˆt‹9˜‹>Ø�A‰wœ$˜t›*Ò$Ø)¬*°T¸!±WÓ*=Ð)>¸aÐ@Ð@Ø�a‘œD ›JÒ&Ø)¬*°T¸!±WÓ*=Ð)>¸aÐ@Ð@܉wÑÓ!Ð!r~cóN•URHn[X5(dM g g©NTF)róry)rr¯r{s r|roÚ$_UnionGenericAlias.__instancecheck__ó#€Ø—=”=ˆCܘ#×#Ó#Ùñ!ðr~cóN•URHn[X5(dM g grÍ)rór=)rrÏr{s r|rtÚ$_UnionGenericAlias.__subclasscheck__rÏr~có>>•[TU]5unup#U[U44$rŸ)r�r\r)rrr4r—r‚s €r|r\Ú_UnionGenericAlias.__reduce__s&ø€Ü$™wÑ1Ó3ш‰nˆvØ”e˜T�]Ð"Ð"r~rµ) r«r§r¨rr4rÑrÕrrortr\r!r†r‡s@r|rñrñøs,ø†òòJò.õ"òò ÷ #ó#r~rñcó•SU5$)Nc3ó:# •UHo[U54v• M g7frŸ)rxrÄs r|r£Ú'_value_and_type_iter.."sé€Ð -¢*˜Q”�Q“�L¢*ùrrµ)r¾s r|r­r­!s €Ù -¡*Ó -Ð-r~có •\rSrSrSrSrSrg)r÷i%có²•[U[5(d[$[[ UR 55[[ UR 55:H$rŸ)ryr÷rÐr r­rórds r|rÑÚ_LiteralGenericAlias.__eq__&sB€Ü˜%Ô!5×6Ñ6Ü!Ð !äÔ'¨¯ © Ó6Ó7¼3Ô?SÐTY×TbÑTbÓ?cÓ;dÑdÐdr~cóP•[[[UR555$rŸ)rÔrÇr­rórs r|rÕÚ_LiteralGenericAlias.__hash__,s€Ü”IÔ2°4·=±=ÓAÓBÓCÐCr~rµN)r«r§r¨rrÑrÕr!rµr~r|r÷r÷%s†òeõ Dr~r÷có(^•\rSrSrU4SjrSrU=r$)rŽi0cóÖ>•[US[[45(a /USSQUSQ7$[US[5(a/USSQUSRQ7n[ TU]U5$)Nr×)ryr�r†rŽrór�r4)rrâr‚s €r|r4Ú"_ConcatenateGenericAlias.copy_with1ssø€Ü �f˜R‘j¤4¬ -× 0Ñ 0Ø.�V˜C˜R�[Ð. 6¨"¡:Ñ.Ð .Ü �f˜R‘jÔ":× ;Ñ ;Ø9�v˜c˜r�{Ð9 V¨B¡Z×%8Ñ%8Ñ9ˆF܉wÑ  Ó(Ð(r~rµ)r«r§r¨rr4r!r†r‡s@r|rŽrŽ0s ø†÷)ó)r~rŽcó2•[XS35n[X4S9$)amType 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 is accepted by static type checkers. For more information, see PEPs 646 and 692. r•)r4r—)rŠÚ_UnpackGenericAliasr—s r|rrrr9s$€ô^ �z VÐ+EÐ#FÓ G€DÜ  d°Ñ 9Ð9r~cóN^•\rSrSrSrU4Sjr\S5r\S5rSr U=r $)ràilcó:•S[URS5S3$)Nztyping.Unpack[rr¦)r rórs r|rÚ_UnpackGenericAlias.__repr__ms"€ð ¤ ¨4¯=©=¸Ñ+;Ó <Ð=¸QÐ?Ð?r~cóH>•UR(aU$[TU] U5$rŸ)rær�rxrÊs €r|rxÚ_UnpackGenericAlias.__getitem__rs!ø€Ø × 3× 3؈K܉wÑ" 4Ó(Ð(r~có¾•URun[U[[R45(a*UR [ La [S5eUR$g)Nz*Unpack[...] must be used with a tuple type)róryr‚r©r rƒr†r„rs r|rÖÚ2_UnpackGenericAlias.__typing_unpacked_tuple_args__wsL€ð�}‰}‰ˆÜ �cœM¬5×+=Ñ+=Ð>× ?Ñ ?Ø�~‰~¤UÒ*ÜÐ LÓMÐMØ—<‘<Ð Ør~có<•[URS[5$©Nr)ryrór rs r|ræÚ7_UnpackGenericAlias.__typing_is_unpacked_typevartuple__‚s€ô˜$Ÿ-™-¨Ñ*¬LÓ9Ð9r~rµ) r«r§r¨rrrxÚpropertyrÖrær!r†r‡s@r|ràràls6ø†ò@õ )ð ñóððñ:óö:r~ràcó•\rSrSrSrSrg)r[i‰z(Internal placeholder for ... (ellipsis).rµN)r«r§r¨rr?r!rµr~r|r[r[‰s†Ü2r~r[>Ú _is_protocolrr7r´Ú__type_params__Ú__protocol_attrs__Ú_is_runtime_protocolÚ__non_callable_proto_members__>r?rŠrÆrHr r§r9Ú__match_args__Ú__annotations__rÚ__subclasshook__Ú__class_getitem__Ú__abstractmethods__r!Ú_MutableMapping__markercó•[5nURSSHonURS;aM[US05n/URQUQ7H8nUR S5(aMU[ ;dM'URU5 M: Mq U$)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äÚEXCLUDED_ATTRIBUTESÚadd)rÏÚattrsr$Ú annotationsr,s r|Ú_get_protocol_attrsrÿžs€€ô ‹E€EØ— ‘ ˜C˜RÓ ˆØ �=‰=Ð3Ó 3٠ܘdÐ$5°rÓ:ˆ Ø2�d—m‘mÐ2 kÔ2ˆDØ—?‘? 7×+Ó+°ÔNr”r)r )rs r|Ú_allow_reckless_class_checksr ×s€ô �5‹>Ð7Ñ 7Ð7r~) rr1r&r'r3r2r$r/r"r5r8ÚBufferÚAbstractContextManagerÚAbstractAsyncContextManager)zcollections.abcÚ contextlibcó•SSKJn U$)Nr©Úgetattr_static)Úinspectrrs r|Ú_lazy_load_getattr_staticrês €õ'Ø Ðr~có(•[UR44$rŸ)rrƒ)Úpsargss r|Ú_pickle_psargsrôs€Ü ˜6×,Ñ,Ð.Ð .Ð.r~có(•[UR44$rŸ)rrƒ)Úpskwargss r|Ú_pickle_pskwargsrùs€Ü ˜X×0Ñ0Ð2Ð 2Ð2r~cóD•[U[5(d [S5eg)a»Raise TypeError if `arg` is not an instance of `type` in `issubclass(arg, )`. In most cases, this is verified by type.__subclasscheck__. Checking it again unnecessarily would slow down issubclass() checks, so, we don't perform this check unless we absolutely have to. For various error paths, however, we want to ensure that *this* error message is shown to the user where relevant, rather than a typing.py-specific error message. z"issubclass() arg 1 must be a classN)ryrxr„r�s r|Ú_type_check_issubclass_arg_1r s"€ô �cœ4× Ñ äÐ<Ó=Ð=ð !r~có@^•\rSrSrU4SjrU4SjrSrSrSrU=r $)Ú _ProtocolMetaic ób>•US:Xa U[4:XaO‹[U;a�UH{nU[[1;aMUR[R UR /5;aME[U[5(a[USS5(aMn[SU<35e [TU],"XX#40UD6$)NrríFz5Protocols can only inherit from other protocols, got ) rrrr«Ú_PROTO_ALLOWLISTrÉr§r=r»r„r�rŠ)Úmclsr¢rRÚ namespacerŒr$r‚s €r|rŠÚ_ProtocolMeta.__new__s¦ø€Ø �:Ó  %¬G¨:Ó"5Ø Ü ˜Ó Û�àœV¤WÐ-Õ-Ø—}‘}Ô(8×(<Ñ(<¸T¿_¹_ÈbÓ(QÕQä" 4¬×1Ñ1Ü# D¨.¸%×@Ó@ô$ðØ#™hð(óðñô‰wŠ˜t¨5ÑF¸vÑFÐFr~cól>•[TU]"U0UD6 [USS5(a[U5Ulgg)NríF)r�rHr»rÿrïr‹s €r|rHÚ_ProtocolMeta.__init__0s6ø€Ü ‰Ò˜$Ð) &Ò)Ü �3˜¨× .Ñ .Ü%8¸Ó%=ˆCÕ "ð /r~có•U[La[RX5$[USS5(a¥[ 5(d–[USS5(d[ U5 [ S5eUR(a]URRS5[La;[ U5 [UR5n[ S[U5SSS 35e[X5$) NríFrðúLInstance and class checks can only be used with @runtime_checkable protocolsrôzRProtocols with non-method members don't support issubclass(). Non-method members: r r×r�)rrxrtr»r rr„rñrÆrÉÚ _proto_hookÚsortedrzÚ_abc_subclasscheck)rÏreÚnon_method_attrss r|rtÚ_ProtocolMeta.__subclasscheck__5sÒ€Ø ”(Š?Ü×)Ñ)¨#Ó5Ð 5ä �C˜¨× /Ñ /Ü0×2Ñ2ä˜3Ð 6¸×>Ñ>Ü,¨UÔ3Üð3óðð ×2×2Ø—L‘L×$Ñ$Ð%7Ó8¼KÒGä,¨UÔ3Ü#)¨#×*LÑ*LÓ#MÐ Üð,Ü,/Ð0@Ó,AÀ!ÀBÐ,GÐ+HÈðKóðô" #Ó-Ð-r~cóŽ•U[La[RX5$[USS5(d [ X5$[USS5(d[ 5(d [ S5e[ X5(ag[5nURH"nU"X5nUbMX0R;dM" g g![a  gf=f)NríFrðr(T) rrxror»Ú_abc_instancecheckr r„rrïrKrñ)rÏÚinstancerr,rMs r|roÚ_ProtocolMeta.__instancecheck__OsÒ€ð ”(Š?Ü×)Ñ)¨#Ó8Ð 8Ü�s˜N¨E×2Ñ2ä% cÓ4Ð 4ô˜Ð3°U×;Ñ;Ü,×.Ñ.äð<ó=ð =ô ˜c× ,Ñ ,Øä2Ó4ˆØ×*Ô*ˆDð Ù$ XÓ4�ð‹{˜t×+MÑ+MÕMØðñ+ðøô "ó Ùðð úsÂB6Â6 CÃCrµ) r«r§r¨rrŠrHrtror!r†r‡s@r|rrsø†õGõ&>ò .÷4ðr~rcóØ•URRSS5(d[$URH³nURHšnX#R;aURUc [s s $ M>[ US05n[ U[RR5(dMgX$;dMn[U[5(dM…[ USS5(dM™ M« [s $ g)NríFróT) rÆrÉrÐrïrúr»ryr“r”r)r=r)rÏrer,r$rþs r|r)r)qs¹€à �<‰<× Ñ ˜N¨E× 2Ñ 2ÜÐà×&Ô&ˆØ—M”MˆDà—}‘}Ó$Ø—=‘= Ñ&Ñ.Ü)Ô)Úô" $Ð(9¸2Ó>ˆKܘ;¬ ¯©×(?Ñ(?×@Ó@ØÕ'ܘu¤g×.Ó.´7¸5À.ÐRW×3XÓ3XÚñ"ô"Ò !ñ'ð r~có8^•\rSrSrSrSrSrSrU4SjrSr U=r $)ri‰a 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óV>•[TU]"U0UD6 URRSS5(d![ SUR 55UlSUR;a [UlUR (a*UR[RLa [Ul ggg)NríFc3ó0# •UH o[Lv• M g7frŸ©r©r¡rBs r|r£Ú-Protocol.__init_subclass__..³sé€Ð"Hº-°Q¬¥=º-ùs‚rô) r�r=rÆrÉr@rrír)rôrHrrr‹s €r|r=ÚProtocol.__init_subclass__®s‡ø€Ü ‰Ò! 4Ð2¨6Ò2ð�|‰|×Ñ °×6Ñ6Ü"Ñ"H¸#¿-º-Ó"HÓHˆCÔ ð  S§\¡\Ó 1Ü#.ˆCÔ ð × ×  § ¡ ´×0AÑ0AÒ AÜ3ˆC�Lð!BÐ r~) r«r§r¨rr?r rírðr=r!r†r‡s@r|rr‰s%ø†ñð@€IØ€LØ Ð÷ 4ó 4r~rcó\^•\rSrSrSrU4SjrSrSrSrSr Sr U4S jr S r S r U=r$) Ú_AnnotatedAliasi¾alRuntime 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óŽ>•[U[5(aURU-nURn[TU]XSS9 X lg)Nrr¡)ryr;Ú __metadata__rƒr�rH)rr4Úmetadatar‚s €r|rHÚ_AnnotatedAlias.__init__ÉsCø€Ü �fœo× .Ñ .Ø×*Ñ*¨XÑ5ˆHØ×&Ñ&ˆFÜ ‰Ñ˜¨kÐÑ:Ø$Õr~có6•USn[X R5$ré)r;r=)rrâÚnew_types r|r4Ú_AnnotatedAlias.copy_withÐs€à˜!‘9ˆÜ˜x×):Ñ):Ó;Ð;r~cóŒ•SR[UR5SRSUR555$)Nztyping.Annotated[{}, {}]r�c3ó8# •UHn[U5v• M g7frŸ)r­rþs r|r£Ú+_AnnotatedAlias.__repr__..Øsé€Ð9Ò'8 !”d˜1—g�gÒ'8ùr¥)Úformatr rƒr¬r=rs r|rÚ_AnnotatedAlias.__repr__Õs9€Ø)×0Ñ0Ü �t—‘Ó 'Ø �I‰IÑ9 t×'8Ò'8Ó9Ó 9ó ð r~cób•[R[UR4UR-44$rŸ)r2rGrrƒr=rs r|r\Ú_AnnotatedAlias.__reduce__Ûs1€Ü×ÑÜ ˜Ÿ™Ð)¨D×,=Ñ,=Ñ=ð" ð ð r~cóª•[U[5(d[$URUR:H=(a URUR:H$rŸ)ryr;rÐrƒr=rds r|rÑÚ_AnnotatedAlias.__eq__àsE€Ü˜%¤×1Ñ1Ü!Ð !Ø—‘ 5×#3Ñ#3Ñ3÷<Ø×%Ñ%¨×);Ñ);Ñ;ð =r~cóD•[URUR45$rŸ)rÔrƒr=rs r|rÕÚ_AnnotatedAlias.__hash__æs€Ü�T—_‘_ d×&7Ñ&7Ð8Ó9Ð9r~có0>•US;ag[TU]U5$)N>r«r¨r)r�rMrVs €r|rMÚ_AnnotatedAlias.__getattr__ésø€Ø Ð/Ó /ØÜ‰wÑ" 4Ó(Ð(r~có•UR4$rŸ)rƒrQs r|rSÚ_AnnotatedAlias.__mro_entries__îs€Ø—‘Ð!Ð!r~)r=)r«r§r¨rr?rHr4rr\rÑrÕrMrSr!r†r‡s@r|r;r;¾s5ø†ñõ%ò<ò  ò  ò =ò :õ)÷ "ð"r~r;cóÄ•[U5S:a [S5e[US5(a [S5eSn[USUSS9n[ USS 5n[ X45$) a»Add context-specific metadata to a type. Example: Annotated[int, runtime_check.Unsigned] indicates to the hypothetical runtime_check module that this type is an unsigned int. Every other consumer of this type can ignore this metadata and treat this type as int. The first argument to Annotated must be a valid type. 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’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.Trsr N)r•r„rºrŠr†r;)rrâr‡r4r>s r|rròsw€ôb ˆ6ƒ{�QƒÜð'ó(ð (ô! ¨¡×+Ñ+Üð0ó1ð 1à 0€CÜ ˜ ™ C¸TÑ B€FÜ�V˜A˜B�ZÓ €HÜ ˜6Ó ,Ð,r~có|•[U[5(a[USS5(d[SU-5eSUl[ 5UlURH=n[[XS55nU(dUR RU5 M=M? U$![an[SU<S35UeSnAff=f)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! ríFzB@runtime_checkable can be only applied to protocol classes, got %rTNz,Failed to determine whether protocol member z is a method member) r=rr»r„rðr rñrïÚcallablerür8)rÏr,Ú is_callablers r|rkrk0 s΀ô& �cœ7× #Ñ #¬7°3¸È×+NÑ+NÜð"Ø$'ñ(ó)ð )à#€CÔô *-«€CÔ&Ø×&Ô&ˆð =Ü"¤7¨3°dÓ#;Ó<ˆKöØ×2Ñ2×6Ñ6°tÖ<ññ'ð €Jøôó ÜØ>¸t¹hðG%ð%óðð ûð úsÁB B;Â%B6Â6B;có•U$)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–rMs r|rTrTZ s €ð €Jr~có•U$)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µ)rMr–s r|rRrRe s €ð €Jr~cóŽ•[USS5(a0$[U[5(GaP0n[UR5HýnUc6[[ R RURS5S05nOUnURRS05n[U[R5(a0nUc[[U55OUnUcUcX†p†UR5HMupšU c [S5n [U [5(a [!U SSS9n [#X¦X…R$5n X¤U 'MO Mÿ U(aU$UR5V V s0sHup¼U ['U 5_M sn n $Ucµ[U[R(5(a URnOƒUn [+U 51n[-U S5(aWU R.n [+U 5U;a[1S U<35eUR3[+U 55 [-U S5(aMW[U S 05nUcUnOUcUn[USS5nUc1[U[45(a0$[7S R9U55e[U5n[US S 5nUR5H^upšU c [S5n [U [5(a([!U [U[R(5(+SS9n [#X¡X/5XI'M` U(aU$UR5V V s0sHup¼U ['U 5_M sn n $s sn n fs sn n f)aÒReturn type hints for an object. This is often the same as inspect.get_annotations(obj) or 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ˆrwÚ __wrapped__zwrapper loop when unwrapping Ú __globals__z1{!r} is not a module, class, method, or function.rîrµ)r»ryrxÚreversedrúrÇrÈrÉr§rÆr©ÚGetSetDescriptorTyperßÚvarsÚitemsrzrr)rîÚ_strip_annotationsÚ ModuleTypeÚidr¸rZrérüÚ_allowed_typesr„rF)r¯r+r,Úinclude_extrasÚhintsr$Ú base_globalsÚannÚ base_localsr¢Úvaluerùr¢ÚnsobjÚseenr-s r|r\r\z 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ž{‘ �Ø‘=Ü  ›J�Eܘe¤S×)Ñ)Ü& u¸%È$ÑO�EÜ" 5¸ ×EYÑEYÓZ�Ø#�d“ ó +ñ#*ö0'ˆuÐ`ÐRW×R]ÑR]ÔR_Ô,`ÒR_É$È!¨QÔ0BÀ1Ó0EÒ-EÑR_Ò,`Ð`àÑÜ �cœ5×+Ñ+× ,Ñ ,Ø—|‘|‰HàˆEä�u“I�;ˆDܘ% ×/Ñ/Ø×)Ñ)�Ü�e“9 Ó$Ü$Ð'DÀSÁGÐ%LÓMÐMØ—‘œ˜E›Ô#ô ˜% ×/Ó/ô ˜u m°RÓ8ˆHØ ‰?؈GøØ ‰ØˆÜ �CÐ*¨DÓ 1€EØ �}ä �cœ>× *Ñ *؈Iäð+ß+1©6°#«;ó8ð 8ä �‹K€Eܘ#Ð0°"Ó5€KØ—{‘{–}‰ ˆØ ‰=ܘ“JˆEÜ �eœS× !Ñ !ôØÜ *¨3´×0@Ñ0@Ó AÔAØñˆEô ! °'ÓGˆ‹ ñ%ö#ˆ5Ð\ÈeÏkÉkÌmÔ(\ÊmÁdÀa¨Ô,>¸qÓ,AÒ)AÉmÒ(\Ð\ùóS-aùóR)]s ÅL;ÌMcó"•[U[5(a[UR5$[ US5(a7UR[ [ [4;a[URS5$[U[5(a>[SUR55nXR:XaU$URU5$[U[5(aC[SUR55nXR:XaU$[URU5$[U[R5(aR[SUR55nXR:XaU$[R "["R$U5$U$)z(Strip the annotations from a given type.rƒrc3ó8# •UHn[U5v• M g7frŸ©r`rþs r|r£Ú%_strip_annotations..é óé€ÐHºZ¸Ô0°×3Ð3ºZùr¥c3ó8# •UHn[U5v• M g7frŸrnrþs r|r£roî rpr¥c3ó8# •UHn[U5v• M g7frŸrnrþs r|r£roó rpr¥)ryr;r`rƒr¸rirerhrór‚r†r4r r©ròrr1r2r3)r¢Ú stripped_argss r|r`r`â s €ä�!”_×%Ñ%Ü! !§,¡,Ó/Ð/܈q�,×Ñ A§L¡L´X¼{ÌHÐ4UÓ$UÜ! !§*¡*¨Q¡-Ó0Ð0Ü�!”]×#Ñ#ÜÑH¸Q¿ZºZÓHÓHˆ Ø ŸJ™JÓ &؈HØ�{‰{˜=Ó)Ð)Ü�!”\×"Ñ"ÜÑH¸Q¿ZºZÓHÓHˆ Ø ŸJ™JÓ &؈HܘAŸL™L¨-Ó8Ð8Ü�!”U—_‘_×%Ñ%ÜÑH¸Q¿ZºZÓHÓHˆ Ø ŸJ™JÓ &؈HÜ×Ò¤§ ¡ ¨mÓ<Ð<à €Hr~có•[U[5(a[$[U[[[ [ 45(a UR$U[La[$[U[R5(a[R$g)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 rrrƒrr©rò©Útps r|rYrYû si€ô$�"”o×&Ñ&ÜÐÜ�"Ô(¬,Ü$¤oð7÷8ñ8à�}‰}ÐØ ŒW‚}܈Ü�"”e—o‘o×&Ñ&Ü�‰ÐØ r~cóP•[U[5(aUR4UR-$[U[[ 45(a1UR n[X5(a[USS5US4nU$[U[R5(a UR $g)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ò)rvrAs r|rXrX sˆ€ô�"”o×&Ñ&Ø— ‘ Р"§/¡/Ñ1Ð1Ü�"”}¤lÐ3×4Ñ4Ø�k‰kˆÜ *¨2× 3Ñ 3ܘ˜C˜R˜“> 3 r¡7Ð+ˆC؈ Ü�"”e—o‘o×&Ñ&Ø�{‰{ÐØ r~có"•[U[5$)zûCheck if an object 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 rus r|r^r^3 s€ô �bœ.Ó )Ð)r~édr{cór•[U5n[U5[:”a US[S-n[SU35e)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{ris r|rSrSH s@€ô& �‹I€EÜ ˆ5ƒzÔ1Ó1ØÐ4Ô4Ð5¸Ñ=ˆÜ ÐEÀeÀWÐMÓ NÐNr~có:•[U[5(aì[U5HÝn[X5n[ US5(aDUR UR SUR 3:wd[USS5UR:waMe[U[R5(aSUl [U[R5(aSURl [U[5(dMÒ[U5 Mß SUl U$![a U$f=f)a5Decorator 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)ryrxrUr»r¸r¨r«r§r©rªrYÚ MethodTypeÚ__func__rbr„)r{Úkeyr¯s r|rbrba sð€ô�#”t×ÑÜ�s–8ˆCܘ#Ó#ˆCä˜C ×0Ñ0Ø×#Ñ#¨#×*:Ñ*:Ð);¸1¸S¿\¹\¸NÐ'KÓKܘ3  ¨dÓ3°s·~±~ÓEñ ä˜#œu×1Ñ1×2Ñ2Ø(,�Ô%ܘ#œu×/Ñ/×0Ñ0Ø15�— ‘ Ô.ä˜#œt×$Ó$ܘcÖ"ñ%ð& Ø $ˆÔð €Jøô ó Ø Ø €Jð úsÄD Ä DÄDcón^•SSKnURSSS9 [R"T5U4Sj5nU$)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. rNztyping.no_type_check_decorator©rér¥có.>•T"U0UD6n[U5nU$rŸ)rb)r—rÿrr s €r|Úwrapped_decoratorÚ2no_type_check_decorator..wrapped_decorator� s!ø€á˜$Ð' $Ñ'ˆÜ˜TÓ"ˆØˆ r~)rr¦rr)r rr…s` r|rcrc… s?ø€ó Ø ×ÑÐ9À'ÐÑJ܇_‚_�YÓôó ðð Ðr~có•[S5e)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ó :ð:r~có•[USU5nU[URURURR '[$![ a [$f=f)aVDecorator for overloaded functions/methods. In a non-stub file, place two or more stub definitions for the same function in a row, each decorated with @overload, followed by 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 In a stub file or in an abstract method (for example, in a Protocol definition), the implementation may be omitted:: @overload def utf8(value: None) -> None: ... @overload def utf8(value: bytes) -> bytes: ... @overload def utf8(value: str) -> bytes: ... The overloads for a function can be retrieved at runtime using the get_overloads() function. r)r»Ú_overload_registryr§r¨Ú__code__Úco_firstlinenorKr‰)rÚfs r|rfrf£ s`€ô> ��j $Ó'€Að ØVZÔ˜1Ÿ<™<Ñ(¨¯©Ñ8¸¿¹×9RÑ9RÑSô Ðøô ó à Ü Ðð ús�7A Á AÁAcóÜ•[USU5nUR[;a/$[URnURU;a/$[ X!RR 55$)z6Return all defined overloads for *func* as a sequence.r)r»r§r‹r¨r�Úvalues)rrŽÚmod_dicts r|rZrZË s^€ô ��j $Ó'€A؇|�|Ô-Ó-؈ Ü! !§,¡,Ñ/€H؇~�~˜XÓ%؈ Ü �Ÿ™Ñ(×/Ñ/Ó1Ó 2Ð2r~có,•[R5 g)z$Clear all overloads in the registry.N)r‹Úclearrµr~r|rUrU× s€ä×ÑÕr~cóD•SUlU$![[4a U$f=f)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 the 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__rKr„)rŽs r|rWrWÜ s5€ð4 ؈Œ ð €Høô œIÐ &ó ð Ø €Hð  úó ‚ ‹žÚTÚKTÚVTÚT_co)Ú covariantÚV_coÚVT_coÚT_contra)Ú contravariantÚCT_co)r›ÚboundrQraDeprecated 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 r¡)ré)r¢r×rr0a]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, ...]. rErBrGrHrCrD)r‡raå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ó4•\rSrSrSrSr\S\4Sj5rSr g)r>ip z,A protocol with one abstract method __int__.rµr có•grŸrµrs r|Ú__int__ÚSupportsInt.__int__v ó€à r~N) r«r§r¨rr?r rÚintr¥r!rµr~r|r>r>p s#†á6à€Iàð ˜ó óó r~r>có4•\rSrSrSrSr\S\4Sj5rSr g)r<i{ z.A protocol with one abstract method __float__.rµr có•grŸrµrs r|Ú __float__ÚSupportsFloat.__float__� r§r~N) r«r§r¨rr?r rÚfloatr«r!rµr~r|r<r<{ ó#†á8à€Iàð ˜5ó óó r~r<có4•\rSrSrSrSr\S\4Sj5rSr g)r;i† z0A protocol with one abstract method __complex__.rµr có•grŸrµrs r|Ú __complex__ÚSupportsComplex.__complex__Œ r§r~N) r«r§r¨rr?r rÚcomplexr±r!rµr~r|r;r;† s#†á:à€Iàð ˜Wó óó r~r;có4•\rSrSrSrSr\S\4Sj5rSr g)r:i‘ z.A protocol with one abstract method __bytes__.rµr có•grŸrµrs r|Ú __bytes__ÚSupportsBytes.__bytes__— r§r~N) r«r§r¨rr?r rÚbytesr¶r!rµr~r|r:r:‘ r®r~r:có4•\rSrSrSrSr\S\4Sj5rSr g)r=iœ z.A protocol with one abstract method __index__.rµr có•grŸrµrs r|Ú __index__ÚSupportsIndex.__index__¢ r§r~N) r«r§r¨rr?r rr¨r»r!rµr~r|r=r=œ s#†á8à€Iàð ˜3ó óó r~r=có@^^•S7=m4m"UU4SjST7 n[U5$)r—có>>•\rSrSrYrSrSr\SY4Sj5rSr g)r9i§ zQA protocol with one abstract method __abs__ that is covariant in its return type.rµr có•grŸrµrs r|Ú__abs__ÚSupportsAbs.__abs__­ r§r~N) r«r§r¨rrîr?r rrÀr!©Ú .type_paramsr—s€€r|r9r9§ s&ø‡�á[à€Iàð ™ó óó r~r9r6©Ú .generic_baserÃr—s @@r|Ú#rƧ sù€Ü÷ ô ”Xõ r~có@^^•S7=m4m"UU4SjST7 n[U5$)r—cóF>•\rSrSrYrSrSr\SS\SY4Sjj5r Sr g) r?i² zSA protocol with one abstract method __round__ that is covariant in its return type.rµÚndigitsr có•grŸrµ)rrÉs r|Ú __round__ÚSupportsRound.__round__¸ r§r~N©r) r«r§r¨rrîr?r rr¨rËr!rÂs€€r|r?r?² s-ø‡�á]à€Iàñ  ð ©Qô óó r~r?r6rÄs @@r|Ú%rβ sù€Ü÷ ô ”xõ r~rµc óî•UVVs/sHupEUPM nnnUVVs0sHupEU[USUS35_M nnn[R"XX2S9nU=UlURlU$s snnfs snnf)Nzfield z annotation must be a type©r‡rv)rŠr“Ú namedtuplerórŠ)r¢r©rvr‡Únr¢ÚfieldsÚnm_tpls r|Ú _make_nmtuplerÕ½ s‰€Ù!Ô "šE‘D�A‹a™E€FÑ "áô Ú‘�ð” ˜A ¨ sÐ*DÐEÓFÒ FÙð ñ ä × #Ò # DØ-5ñF€Fà>CÐC€FÔ˜VŸ^™^Ô;Ø €Mùó #ùó s †A+œA1> Ú_makerŠÚ_asdictÚ_fieldsÚ_sourcerHÚ_replacer Ú__getnewargs__Ú_field_defaults>r«r§rócó•\rSrSrSrSrg)ÚNamedTupleMetaiÏ c óÜ•UH"nU[LdMU[LdM[S5e [SU55nUR S05n/nUHVnXs;aUR U5 MU(dM$[SUS[ U5S:”aSOSS S RU535e [XR"5UVs/sHoƒUPM snUS S 9n X)l [U;a[n [U 5U l UR5Hdup¼U [;a[S U -5eU [ ;dM)X¹R";a [%X›U 5 ['U 5R(n U "XÉU 5 Mf [U;aU R15 U $s snf![*a6nUR-S['U 5R.<SU <SU<35 eSnAff=f![a MÙf=f)Nz3can only inherit from a NamedTuple type and Genericc3óB# •UHo[La[OUv• M g7frŸ)Ú _NamedTupler†)r¡r$s r|r£Ú)NamedTupleMeta.__new__..Ö sé€ÐOÊÀ¤{Ò2•e¸Ô<Êùó‚rózNon-default namedtuple field z cannot follow default fieldr ÚsrÜÚ r�r§rÐz&Cannot overwrite NamedTuple attribute zError calling __set_name__ on z instance z in )rárr„r†rÉr·r•r¬rÕr_rrÚ classmethodrõÚ _prohibitedrKÚ_specialrØrLrxÚ __set_name__Ú BaseExceptionrr«r=)rÏÚtypenamerRÚnsr$r©Ú default_namesÚ field_namerÒrÔÚ class_getitemr€rMÚset_namers r|rŠÚNamedTupleMeta.__new__Ð sù€ãˆDØœ;Ô&¨4´wÔ+>ÜØIóKðKñôÑOÉÓOÓOˆØ—‘Ð(¨"Ó-ˆØˆ ÛˆJØÓØ×$Ñ$ ZÖ0ß�ÜÐ"?À ¸|ðL>ä*-¨mÓ*<¸qÓ*@¡3ÀbÐ"IÈØ#'§9¡9¨]Ó#;Ð"<ð!>ó?ð?ñ  ô˜x¯ª«Ù8EÓ(Fº °1¨A¬¹ Ñ(FØ&(¨Ñ&6ñ8ˆð!ÔÜ �eÓ Ü2ˆMÜ'2°=Ó'AˆFÔ $àŸ™ž ‰HˆCØ”kÓ!Ü$Ð%MÐPSÑ%SÓTÐTØœHÕ$ØŸn™nÓ,ܘF¨Ô-ð Ü# C›y×5Ñ5�HðÙ  ¨cÖ2ñ#ô( �eÓ Ø × $Ñ $Ô &؈ ùò;)Gøô()óØŸ ™ Ø<¼TÀ#»Y×=OÑ=OѰ(±¸VÐDˆGð,ðñ ð ñ ‰Oð ‰Þ ÜðBóð ð JРؘ(˜ >°(±¸VÐDˆGð,ðñ ð ñ ‰Oö ÜðCóDð Dà ”Ò˜f™nÛØ×ÑÐ-°ÈwÐÑWØ—‘“ˆÜ �x´³ Ñ :€BÜ#˜ €BÔØ €Ir~rIcó•[4$rŸ)rá©rRs r|Ú_namedtuple_mro_entriesrÿB s €ä ˆ>Ðr~c#ó&# •[U5nU[La[U5nU(aUSnO_gU[La[v• [U5unO?U[La[v• [U5unO U[ La[ v• [U5unOgM�7fré)rYrrXrirerh)Úannotation_typeÚannotation_originÚannotation_argss r|Ú_get_typeddict_qualifiersrI sŒé€Ø Ü& Ó7ÐØ ¤ Ò )Ü& Ó7ˆOÞØ"1°!Ñ"4‘àØ ¤(Ò *ÜŠNÜ!)¨/Ó!:Ñ ‰_Ø ¤+Ò -ÜÒ Ü!)¨/Ó!:Ñ ‰_Ø ¤(Ò *ÜŠNÜ!)¨/Ó!:Ñ ‰_à ñ% ùs‚BBcó,•\rSrSrSSjr\rSr\rSr g)r i_ c ót•UH+n[U5[LdMU[LdM"[S5e [ SU55(a[4nOSn[R [U/UQ[ P7U5n[US5(dX'l0nURS05n Sn U R5V V s0sHup¼U [XÊURS9_M n n n [5n [5n[5n[5nUHànURURRS055 URRS[55nU U-n UU-nURRS [55nU U-n UU-nURURRS S55 URURRS S55 Mâ URU 5 U R5H×unn[[!U55n["U;aS nO[$U;aS nOUnU(a#U R'U5 UR)U5 O"UR'U5 U R)U5 [*U;a)UU;a[SU<S35eUR'U5 MµUR'U5 UR)U5 MÙ X‡l[/U 5Ul[/U5Ul[/U5Ul[/U5UlXGlU$s sn n f)aCreate a new typed dict class object. This method is called when TypedDict is subclassed, or when TypedDict is instantiated. This way TypedDict classes can be created through both class-based and functional syntax. Subclasses and instances of TypedDict return actual dictionaries. zHcannot inherit from both a TypedDict type and a non-TypedDict base classc3óB# •UHn[U[5v• M g7frŸ)r=rr7s r|r£Ú)_TypedDictMeta.__new__..m sé€Ð5ªu¨!Œz˜!œW×%Ð%ªuùrãrµrróz?TypedDict('Name', {f0: t0, f1: t1, ...}); each t must be a typerøÚ__required_keys__Ú__optional_keys__Ú__readonly_keys__Ú__mutable_keys__TFzCannot override mutable key z with read-only key)rxr rr„r@rŠrßr¸rrÉr_rŠr§r ÚupdaterÆrrirerüÚdiscardrhrórÇr r r r Ú __total__)rÏr¢rRrìÚtotalr$Ú generic_baseÚtp_dictrþÚown_annotationsr‡rÒrvÚ required_keysÚ optional_keysÚ readonly_keysÚ mutable_keysÚ base_requiredÚ base_optionalÚannotation_keyrÚ qualifiersÚ is_requireds r|rŠÚ_TypedDictMeta.__new__` sý€óˆDÜ�D‹z¤Ô/°DÄÔ4GÜð!AóBðBñô Ñ5©uÓ5× 5Ñ 5Ü#˜:‰LàˆLä—,‘,œ~¨tÐ5J°|Ð5JÄTÑ5JÈBÓOˆä�wÐ 0×1Ñ1Ø%*Ô "àˆ ØŸ&™&Ð!2°BÓ7ˆØOˆð)×.Ñ.Ô0ô â0‘�ð Œ{˜2¨7×+=Ñ+=Ñ>Ò >Ù0ð ñ ô›ˆ Ü›ˆ Ü›ˆ Ü“uˆ ãˆ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à × Ñ  §¡×!2Ñ!2Ð3FÈÓ!KÔ LØ × Ñ  § ¡ × 1Ñ 1Ð2DÀbÓ IÖ Jñð ×ј?Ô+Ø/>×/DÑ/DÖ/FÑ +ˆN˜OÜÔ6°ÓGÓHˆJܘ:Ó%Ø"‘ Ü  Ó*Ø#‘ à#� æØ×!Ñ! .Ô1Ø×%Ñ% nÕ5à×!Ñ! .Ô1Ø×%Ñ% nÔ5ä˜:Ó%Ø! \Ó1Ü#Ø6°~Ñ6HØ-ð.óðð×!Ñ! .Ö1à× Ñ  Ô0Ø×%Ñ% nÖ5ñ30Gð>#.ÔÜ$-¨mÓ$<ˆÔ!Ü$-¨mÓ$<ˆÔ!Ü$-¨mÓ$<ˆÔ!Ü#,¨\Ó#:ˆÔ Ø!ÔØˆùó{ sÂ8!L4có•[S5e)Nz4TypedDict does not support instance and class checksr<)rÏres r|rtÚ _TypedDictMeta.__subclasscheck__» s€äÐNÓOÐOr~rµN)T) r«r§r¨rrŠrßr`rtror!rµr~r|r r _ s†ôWðr€HòPð*Ór~r ©rcóô•U[LdUc6SSKnU[LaSnOSnSUSU<S3nSU-S -nURXFS S 9 0nS [U50n[ 5nUbX‡S '[ USXrS9n [ 4U lU $)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 by calling inspect.get_annotations(Point2D), and via 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 using the NotRequired and Required special forms:: 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 This means that a Point2D TypedDict can have the "y" key omitted, but the "x" key must be present. Items are required by default, so the Required special form is not necessary in this example. In addition, the total argument to the TypedDict function can be used to make all items not required:: 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 special form can be used to mark individual keys as required in a total=False TypedDict. The ReadOnly special form can be used to mark individual keys as immutable for type checkers:: class DatabaseUser(TypedDict): id: ReadOnly[int] # the "id" key must not be modified username: str # the "username" key can be changed See PEPs 589, 655, and 705 for more information. Nrrórõrôz = TypedDict(z, {{}})`z¦{name} is deprecated and will be disallowed in Python {remove}. To create a TypedDict class with 0 fields using the functional syntax, pass an empty dictionary, e.g. r�r‚rörór§rµr )r.rr¦rßr r rJr) rërÓrrrùrûrúrìrvÚtds r|rJrJ s²€ðp”Ò˜f™nÛà ”YÒ ØSÑ àIÐ à�h�Z˜}¨X©L¸ ÐEˆð .ð ñ ð ñ ˆð ×ÑÐ-ÈwÐÑWØˆà œT &›\Ð *€BÜ ‹Y€FØ Ñà!ˆ<Ñä ˜ " bÑ 6€BÜ"˜ €BÔØ €Ir~rJcó•[4$rŸ)Ú _TypedDictrþs r|Úr% s€¬:©-r~cóJ•[XRS35n[X45$)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', # type checker 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ŠrDr‚r—s r|riri s'€ô( �z§j¡j \Ð1MÐ#NÓ O€DÜ ˜˜wÓ 'Ð'r~cóJ•[XRS35n[X45$)aSpecial 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', # type checker error if key is omitted year=1999, ) r'r(r—s r|rere2 s'€ô �z§j¡j \Ð1MÐ#NÓ O€DÜ ˜˜wÓ 'Ð'r~cóJ•[XRS35n[X45$)aYA special typing construct to mark an item of a TypedDict as read-only. For example:: class Movie(TypedDict): title: ReadOnly[str] year: int def mutate_movie(m: Movie) -> None: m["year"] = 1992 # allowed m["title"] = "The Matrix" # type checker error There is no runtime checking for this property. r'r(r—s r|rhrhE s'€ô �z§j¡j \Ð1MÐ#NÓ O€DÜ ˜˜wÓ 'Ð'r~có@•\rSrSrSr\rSrSrSr Sr Sr Sr S r g ) raiY 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óŠ•XlSU;aURS5SnXlX l[ 5nUS:waX0lgg)Nr�r×Útyping)r¨Ú rpartitionr«Ú __supertype__r r§)rr¢rvÚdef_mods r|rHÚNewType.__init__q sF€Ø ÔØ �$‹;Ø—?‘? 3Ó'¨Ñ+ˆDØŒ ØÔÜ“)ˆØ �hÓ Ø%�Oð r~có<^•URm"U4SjS5nU4$)Ncó">•\rSrSrU4SjrSrg)Ú&NewType.__mro_entries__..Dummyi€ c óH>•URn[SUSU<STS35e)NzGCannot subclass an instance of NewType. Perhaps you were looking for: `z = NewType(r�z)`)r«r„)rÏÚ subclass_nameÚsuperclass_names €r|r=Ú8NewType.__mro_entries__..Dummy.__init_subclass__� s:ø€Ø #§ ¡ � ÜðØ%� k°-Ñ1BÀ"À_ÐDUÐUWðYóðr~rµN)r«r§r¨rr=r!)r7s€r|ÚDummyr4€ s ø†÷ ð r~r9)r«)rrRr9r7s @r|rSÚNewType.__mro_entries__{ s!ø€ðŸ-™-ˆ÷ ô ðˆxˆr~có8•URSUR3$)Nr�)r§r¨rs r|rÚNewType.__repr__Š s€Ø—/‘/Ð" ! D×$5Ñ$5Ð#6Ð7Ð7r~có•UR$rŸ)r¨rs r|r\ÚNewType.__reduce__� s€Ø× Ñ Ð r~có•[X4$rŸrcrds r|rfÚNewType.__or__� rhr~có•[X4$rŸrcrds r|rjÚNewType.__ror__“ rlr~)r§r«r¨r/N)r«r§r¨rr?r r`rHrSrr\rfrjr!rµr~r|raraY s,†ñð*€Hò&ò ò8ò!ò"õ"r~racóJ•\rSrSrSrSr\\S\4Sj55r \\S\4Sj55r \S"Sj5r \\S\ 4S j55r \S\4S j5r\S"S j5r\S\ 4S j5r\S#S \S\4Sjj5r\S\ 4Sj5r\S#S\S\4Sjj5r\S#S\S\\4Sjj5r\S$S\S\S\4Sjj5r\S\ 4Sj5r\S\4Sj5r\S%S\S\4Sjj5r\S\ 4Sj5r\S\S\4Sj5r\S\\SS4Sj5r\S&S j5r\S"S!j5r Sr!g)'rMiŸ a±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. For more precise types, define a custom Protocol. rµr có•grŸrµrs r|ÚmodeÚIO.mode® ó€ð r~có•grŸrµrs r|r¢ÚIO.name³ rGr~Ncó•grŸrµrs r|ÚcloseÚIO.close¸ r§r~có•grŸrµrs r|ÚclosedÚ IO.closed¼ rGr~có•grŸrµrs r|ÚfilenoÚ IO.filenoÁ r§r~có•grŸrµrs r|ÚflushÚIO.flushÅ r§r~có•grŸrµrs r|ÚisattyÚ IO.isattyÉ r§r~rÒcó•grŸrµ)rrÒs r|ÚreadÚIO.readÍ r§r~có•grŸrµrs r|ÚreadableÚ IO.readableÑ r§r~Úlimitcó•grŸrµ)rr_s r|ÚreadlineÚ IO.readlineÕ r§r~Úhintcó•grŸrµ)rrcs r|Ú readlinesÚ IO.readlinesÙ r§r~ÚoffsetÚwhencecó•grŸrµ)rrgrhs r|ÚseekÚIO.seekÝ r§r~có•grŸrµrs r|ÚseekableÚ IO.seekableá r§r~có•grŸrµrs r|ÚtellÚIO.tellå r§r~Úsizecó•grŸrµ)rrrs r|ÚtruncateÚ IO.truncateé r§r~có•grŸrµrs r|ÚwritableÚ IO.writableí r§r~räcó•grŸrµ©rräs r|ÚwriteÚIO.writeñ r§r~Úlinescó•grŸrµ)rr}s r|Ú writelinesÚ IO.writelinesõ r§r~có•grŸrµrs r|Ú __enter__Ú IO.__enter__ù r§r~có•grŸrµ)rrxriÚ tracebacks r|Ú__exit__Ú IO.__exit__ý r§r~)r N)r×rÍrŸ)r z IO[AnyStr])"r«r§r¨rr?r rërrzrEr¢rKÚboolrNr¨rQrTrWrQrZr]rarErerjrmrprtrwr{rr‚r†r!rµr~r|rMrMŸ sd†ñ ð€Ià Øð �có óóð ðØð �có óóð ðó óð ðØð ˜ó óóð ðð ˜ó óð ðó óð ðð ˜ó óð ðñ �cð  6ô óð ðð ˜$ó óð ðñ ˜cð ¨6ô óð ðñ ˜cð ¨4°©<ô óð ðñ ˜3ð ¨ð °Cô óð ðð ˜$ó óð ðð �có óð ðñ ˜Sð ¨Cô óð ðð ˜$ó óð ðð �vð  #ó óð ðð   V¡ ð °ó óð ðó óð ðó óó r~rMcóV•\rSrSrSrSr\S\\\ 4S\ 4Sj5r \S Sj5r Sr g) rLiz;Typed approximation of the return of open() in binary mode.rµrär có•grŸrµrzs r|r{ÚBinaryIO.writer§r~có•grŸrµrs r|r‚ÚBinaryIO.__enter__ r§r~N)r rL)r«r§r¨rr?r rrr¸Ú bytearrayr¨r{r‚r!rµr~r|rLrLsH†ÙEà€Iàð �u˜U IÐ-Ñ.ð °3ó óð ðó óó r~rLcóà•\rSrSrSrSr\\S\4Sj55r \\S\ 4Sj55r \\S\ \ 4Sj55r \\S\4Sj55r\\S\4S j55r\S S j5rSrg ) rPiz9Typed approximation of the return of open() in text mode.rµr có•grŸrµrs r|ÚbufferÚ TextIO.bufferrGr~có•grŸrµrs r|ÚencodingÚTextIO.encodingrGr~có•grŸrµrs r|ÚerrorsÚ TextIO.errorsrGr~có•grŸrµrs r|Úline_bufferingÚTextIO.line_buffering$rGr~có•grŸrµrs r|ÚnewlinesÚTextIO.newlines)rGr~có•grŸrµrs r|r‚ÚTextIO.__enter__.r§r~N)r rP)r«r§r¨rr?r rërrLr‘rzr”rr—rˆršrr�r‚r!rµr~r|rPrPsφÙCà€Ià Øð ˜ó óóð ðØð ˜#ó óóð ðØð ˜ ™ ó óóð ðØð  ó óóð ðØð ˜#ó óóð ðó óó r~rPcó"•S7=n4SUSU4Sjs8$)r—r¯r cód•[S[U5R<3[RS9 U$)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 r|rjrj3s*€ô Ð œT #›Y×/Ñ/Ñ2Ð 3¼#¿*¹*ÒEØ €Jr~rµ)Ú .defaultsr—s r|Ú#r§3s€”ð˜ð ör~có4^•\rSrSrmU4Sj"5rSrUrg)Ú_IdentityCallableiFcó$>•S7=n4SUSU4Sjs8$)r—r{r có•grŸrµrs r|r`Ú_IdentityCallable.__call__Gs€Ø r~rµ)r¦r—Ú __classdict__s €r|Ú Ú2_IdentityCallable.Gsø€”ð ˜qð ¨ö r~rµN)r«r§r¨rr`r!Ú__classdictcell__)r­s@r|r©r©Fsø‡€÷ ÷ r~r©)Ú eq_defaultÚ order_defaultÚkw_only_defaultÚfrozen_defaultÚfield_specifiersr±r²r³r´rµ.rŒc ó(^^^^^^•UUUUUU4SjnU$)aºDecorator to mark an object as providing dataclass-like behavior. 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ó$>•TTTTTTS.UlU$)N)r±r²r³r´rµrŒ)Ú__dataclass_transform__)Ú cls_or_fnr±rµr´r³rŒr²s €€€€€€r|r Ú&dataclass_transform..decorator’s'ø€à$Ø*Ø.Ø,Ø 0Øñ - ˆ Ô)ðÐr~rµ)r±r²r³r´rµrŒr s`````` r|rVrVKsý€÷N ò ð Ðr~Ú_Funccó •[S[4$rŒ)rrrµr~r|r»r»Ÿs€ŒX�cœ3�hÑ Ðr~có&•SS8=n4SUSU4Sjs8$)ÚFcó•[$rŸ)r»rµr~r|r¾r¾¢s€•r~Úmethodr cóD•SUlU$![[4a U$f=f)aÖIndicate 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__rKr„)rÀs r|rgrg¢s6€ð2 Ø"ˆÔð €Møô œIÐ &ó ð Ø €Mð  úr–rµ)r¦r¾s r|Ú râs€ˆX‘‹Xð ˜qð ¨ö r~rvcój•[U[5=(a [USS5=(a U[:g$)zÿReturn True if the given type is a Protocol. Example:: >>> from typing import Protocol, is_protocol >>> class P(Protocol): ... def a(self) -> str: ... ... b: int >>> is_protocol(P) True >>> is_protocol(int) False ríF)ryrxr»rrus r|r]r]Ås0€ô �2”tÓ÷ Ü �B˜¨Ó .÷ à ”(‰Nðr~cój•[U5(d[U<S35e[UR5$)aDReturn the set of members defined in a Protocol. Example:: >>> from typing import Protocol, get_protocol_members >>> class P(Protocol): ... def a(self) -> str: ... ... b: int >>> get_protocol_members(P) == frozenset({'a', 'b'}) True Raise a TypeError for arguments that are not Protocols. z is not a Protocol)r]r„rÇrïrus r|r[r[Ús1€ô �r�?‰?ܘ2™&Ð 2Ð3Ó4Ð4Ü �R×*Ñ*Ó +Ð+r~có6•US;aSSKn[[X5S5nOkUS;a&SSKn[[USU35SU[S-4S9nO?US :Xa"SSKnS nUR U[SS 9 [nO[S [<S U<35eU[5U'U$)zƒImprove the import time of the typing module. Soft-deprecated objects which are costly to create are only created on-demand here. >rNrOrNr >r#r7ÚAbstractr’)r¢r‡Ú_collect_parametersz²The private _collect_parameters function is deprecated and will be removed in a future version of Python. Any use of private functions is discouraged and may break in the future.rzmodule z has no attribute ) ÚreÚ_aliasr»rrˆrrrr¶rKr«r)r,rÉr¯rrrs r|rMrMís®€ð  Ð#Ó#ÛÜ”W˜RÓ&¨Ó*‰Ø Ð:Ó :ÛÜ”W˜Z¨8°D°6Ð):Ó;¸QÀTÔUYÐ\`ÑU`ÐTbÑc‰Ø Ð&Ó &Ûð ;ð ð � ‰ �lÔ-?ÈAˆ ÑNÜ&‰ä˜w¤x¡lÐ2DÀTÁHÐMÓNÐNØ„GƒIˆd�OØ €Jr~rŸrà)r Ú__main__)r’)NNF)rµ)ìr?r”rrr“rÚcollections.abcÚcopyregrr2rÇr©rrrr Ú_typingr r r r rrrrrÚ__all__r}rŠr�r˜r rˆr¶rÔrÛrãrárïrõrørrþr rzrrr.rÇr)r8rAr…r{rxrrrdr`rlr_rrrr§rrrorrprqrrÁrºrérìrûrrrr(r-r/r‚r†rŸr©r¯r»rñr­r÷rŽrrràr[Ú_TYPING_INTERNALSÚ_SPECIAL_NAMESrûrÿrr r r!rrr·rrÚpicklerror/rtr+rrrær)rr;rrkrTrRrªÚBuiltinFunctionTyper~rarcr\r`rYrXr^r{rSrbrcr‰Úpartialrßr‹rfrZrUrWr—r˜r™ršrœr�ržr r¸rQrÊr$r1r4r3r2r&r'r8r/r"r5rrGr r-r)r+r.r,r!r†rr�rEÚdequerBr rHr*r(r%r0rCrDrFrAr@rKÚNoneTyper6rr>r<r;r:r=r9r?rÕrçrèrÞrIrŠrárÿrSrr rJr$rirerhrarmrnrMrLrPrjr©rVr»rgr]r[rMrµr~r|Úr×s ðñ÷((ÛÝ#ÛÛÛÛÛ Û ß^Ó^÷ ÷ õ òt €ðn¸5öðÐPUöòB@ò ò0ð2HLò/Àõ/òdSò>ð16õ/òò ò Aò ð € Ø €ð Uöð> K¸Sð KÀTô K÷ññ ‹K€ ð2;ð( ÉyË{ö( ÷VFñF÷ñô((/�6˜<¨tò(/ôV0˜\°ò0ô "ˆtô "ô$�Hò$ð$ñ4óð4ð(ñ4óð4ð0ñ4óð4ð&ñ4óð4ð4ñ(óð(ð*ñ(óð(ð*ñ)0óð)0òVðñ"óð"ð Ù �Ññ!?óóð!?ðHñ 4óð 4ð ñ6óð6ð2ñ4(óð4(ðnñA(óðA(ôHaD�˜tòaDòHðF ðF¨ôFð O˜ðO ôOòò&òRòð" ñ9$ó ð9$òx#&òL9ôVT˜ dòVTôH_Ð%¨Tò_ôL9!˜<Ð):À$ò9!ôx /Ð2¸$ò /ô2˜L¨-¸tò2ô"&Ð(°ò&ôB &Ð%¨Tò &ô&#˜ }¸Dò&#òR.ôD˜=°òDô)˜}°Dò)ðñ/:óð/:ôd:˜-¨tò:÷:3ñ3ñòóÐñ òó€ð(¨.Ñ8Ðô"T�GôTðn ñó ðô.24ˆw -ò24ôj1"�l M¸ò1"ðhÙ �Ññ9-óóð9-òx'òTò ð ×$Ñ$ e×&?Ñ&?Ø×"Ñ" E×$4Ò$4Ø'Ð):Ѐ Ù�[—_‘_×0Ò0°!Ó4€ Ù �+—/‘/×*Ò*¨AÓ .€Ù �;—?‘?×,Ò,¨aÓ 0€ Ù �K—O‘O×.Ò.°Ó 2€ Ù ˆd�A˜E¨Ñ/€Ù�[×,Ñ,¨a°mÑD€ Ù�[×,Ò,¨aÓ0€ Ù �×$Ò$ aÓ (€Ù �+×&Ò&¨Ó *€Ù �;—?‘?×,Ò,¨a¸5¿>º>È5Ï>Ê>Ð:ZÑ [€ Ù˜ Ÿ™×6Ò6¸ÀUÇ^Â^ÐDUÑV€Ù ˆd�A˜E¨Ñ/€ðð„ ð2ô �(ó óð ðô �Hó óð ðô �hó óð ðô �Hó óð ðô �Hó óð ðö óð ðö óð ôñòDóE€ ñ ÒBÓ C€ô0�Tô0ðf!*ô<ð|�lŠl˜>¨<¸¸RÓ@€ òð5€ Ôòô,`*�Tô`*ðF )ðR°döRðh�\Š\˜.¨+°r¸2Ó >€ Ù7€ Ôðñ(óð(ð.ñ(óð(ð$ñ(óð(÷&;"ñ;"ð~ €ð€ ô` ˆ�‰ô` ôF  ˆr�%‰yô  ô  ˆR�‰Wô  ÷Fô& ˜ô ðØØ!Ø ØCEò QàðQððQðð Qð ð Qð ˜D ™I¨°°c°Ñ(:Ñ:¸CÐ?Ñ@ð QððQðõQöh ÷ ðF�Dð ôð*,˜Tð,¨°3©ô,ó&r~