Qf ddlmZmZddlZddlmZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddlZddl mZmZmZmZddlmZmZmZmZmZmZmZmZgdZdddd Zdddd Zd Zd Z dZ!dZ"dZ#dZ$dddZ%dZ&dZ'dZ(dZ)gZ*iZ+ddddZ,de-ddZ.GddZ/GddZ0Gd d!e/e0d "Z1Gd#d$e1d "Z2Gd%d&e3Z4Gd'd(e4)Z5e1d*Z6e1d+Z7e1d,Z8e1d-Z9e1d.Z:e1d/Z;e1d0Ze2e,d d3Z?e1d4Z@e1d5ZAe1d6ZBGd7d8e/d "ZCd9e5d:eDfd;ZEd9e5d:eDfd<ZFGd=d>ZGd?ZHd@ZIdAZJdBZKe,dCZLdDZMdEZNGdFdGe/d "ZOGdHdIeOd "ZPGdJdKe0eOd "ZQGdLdMeQd "ZRGdNdOe0ePd "ZSGdPdQeQd "ZTGdRdSeQd "ZUGdTdUe0ePd "ZVdVZWGdWdXePd "ZXGdYdZePd "ZYe1d[ZZGd\d]ePd "Z[Gd^d_Z\e-hd`Z]e-hdaZ^e]e^zdbhzZ_dcZ`ddZaddfZbddhZcgdidjdkgdlZdejdmZfe*jefjdnZiejeeidoZkejeek[i[kGdpdqeZlemdrZnGdsdteel)ZoGdudve0ePd "ZpGdwdxZqdyZrdzZsd{Zte je je je jeeefZydd|Zzd}Z{d~Z|dZ}dZ~dZde7d:e7fdZdZdZdZeejeeZdZdZdZdZedZedZedZedd Zedd Zedd Zedd Zedd e3ZedeeZeQZeejj.dZeejj0deZeejj2dZeejj4deZeejj6deZeejj8deZeejj:deZeejj<deZeejj>dZeejj@deZeejjBdeZeTejjDdgZde_eejjHdedZeejjLdeZeejjNdgZeejjPdgZeejjRdeZeejjTdeZeRejjVddZeUedddZde_eededdZeej`dedZeededdZee-deddZeejjhdeZeejjjdeZeejjldgZeejjndeZeejpdedZeejtdedZeedgddZeejdgdZeej|dgZeej~deZeejdgZeejjdZeejjdgZee3deddZde_erGddeoZerGddeoZerGddeoZerGddeoZerGddeoZerdZerdZddZe-hdZe-hdZGdde3ZddZe3jeddiZdZee_Gdde3Zdd dœdÄZe3jeddiZdńe_e1dƄZe1dDŽZGdȄdɫZeZdZGdʄdeeZGd̄deeZGd΄deeZGdЄde3ZGd҄de߬)Zedze_ee jej<ee jdeZee jdeZGdՄde߬)Z edze _e e je j<d؄ZGdلdeoZd dddddۜdeDdeDdeDdeDdee3e5ede5fzdfde5d:efdZdddf ZdZy))abstractmethodABCMetaN) defaultdict)WrapperDescriptorTypeMethodWrapperTypeMethodDescriptorType GenericAlias)_idfuncTypeVar ParamSpec TypeVarTuple ParamSpecArgsParamSpecKwargs TypeAliasTypeGeneric)c AnnotatedAnyCallableClassVar ConcatenateFinal ForwardRefrLiteralOptionalr ProtocolTupleTyper r Union AbstractSet ByteString ContainerContextManagerHashable ItemsViewIterableIteratorKeysViewMapping MappingViewMutableMappingMutableSequence MutableSetSequenceSized ValuesView Awaitable AsyncIterator AsyncIterable Coroutine CollectionAsyncGeneratorAsyncContextManager Reversible SupportsAbs SupportsBytesSupportsComplex SupportsFloat SupportsIndex SupportsInt SupportsRoundChainMapCounterDequeDict DefaultDictList OrderedDictSet FrozenSet NamedTuple TypedDict GeneratorBinaryIOIOMatchPatternTextIOAnyStr assert_type assert_nevercastclear_overloadsdataclass_transformfinalget_args get_origin get_overloadsget_type_hints is_typeddict LiteralStringNeverNewType no_type_checkno_type_check_decoratorNoReturn NotRequiredoverloadoverriderrRequired reveal_typeruntime_checkableSelfText TYPE_CHECKING TypeAlias TypeGuardrUnpackFallow_special_formsc^ | tdSt|trt|||S|S)N)moduleis_class)type isinstancestrr)argrqros -/opt/alt/python312/lib64/python3.12/typing.py _type_convertrxs3G {Dz#s#f7JKK JTc ttf}|s|tfz }|r |tfz }t |||}t |t r|j|vrt|d|ttttttfvr|S|r|ttfvr|St |ts|ttfvrtd|dt!|t"urt|d|dd|S)N)rqro is not valid as type argumentzPlain z Got z.100.)rrrrrxrt _GenericAlias __origin__ TypeErrorrr\rar]rhrk _SpecialFormrstuple)rvmsg is_argumentrqroinvalid_generic_formss rw _type_checkrs %h/ (,  !eX - ! F@S TC3 & NN3 33%=>?? sM8UD)DD sx&77 #|$/B(B&%CDEE CyE3%uS4L233 JrycN|duxs t|ttttfSN.)rtrlistr _ConcatenateGenericAlias)rvs rw_is_param_exprrs, #: @C D)%= >@@ryc |jtjjuxrt |dk(xrt |d S)Nr)r~ collectionsabcrlenr)typargss rw_should_unflatten_callable_argsrsE$ +//222 =Ta;N47$; <rycX t|tr6|jdk(r |jS|jd|jS|duryt|tj r |j St|trddjd|DzdzSt|S) Nbuiltinsr|....[, c32K|]}t|ywN) _type_repr).0ts rw z_type_repr..s:cz!}c]) rtrs __module__ __qualname__types FunctionType__name__rjoinreprobjs rwrrs#t >>Z '## #..!3#3#3"455 cz#u))*||#uTYY:c:::S@@ 9rycb g}|D]}t|trt|tr/|D])}t|gD]}||vs|j |+St |dr||vsd|j |vt |ddD]}||vs|j |t|SN__typing_subst____parameters__)rtrsr_collect_parametersappendhasattrgetattr)r parametersrx collecteds rwrrs J  a   5 !!4aS!9I 2")))4":Q* + "!!!$Q 0"5J&%%a(6$  ryc  |st|dt|}||k7rtd||kDrdndd|d|d|y)N is not a generic classToo manyfew arguments for ; actual , expected )rr)clsrelenalens rw_check_genericr'sm 3%6788 z?D t|$v%@PSuU##'& D6;< <rycg}|D]=}t|dd}||r|ddus|j|-|j|?|S)N__typing_unpacked_tuple_args__.)rextendr)rnewargsrvsubargss rw _unpack_argsr3sRG#?F  GBK34F NN7 # NN3   Nryunhashable_fallbackch tj|S#t$r|st|cYSwxYwr)dictfromkeysr_deduplicate_unhashable)paramsrs rw _deduplicater=s6/}}V$$ /" &v.. /s 11cDg}|D]}||vs|j||Sr)r)unhashable_paramsnew_unhashablers rwrrGs/N  N "  ! !! $ ryct|}t|}t|} |D]}|j| | S#t$rYywxYw)NF)rrremove ValueError) first_args second_argsfirst_unhashablesecond_unhashablerelems rw_compare_args_orderlessrNsZ.z:/ < A$D HHTN%5L s? A  A c g}|D]O}t|ttjfr|j |j ?|j |Qtt|dS)NTr) rt_UnionGenericAliasr UnionTyper__args__rrrrrps rw_remove_dups_flattenrYs\ F  a,eoo> ? MM!** % MM!   f$? @@ryc g}|D]?}t|tr|j|j/|j |At |Sr)rt_LiteralGenericAliasrrrrrs rw_flatten_literal_paramsrisGR F  a- . MM!** % MM!   =rytypedc( fd}|||S|S)Nctj}|t<tj |j ~tj fd}|S)NrcP t|i|S#t$rYnwxYw|i|Sr)_cachesr)rkwdsfuncs rwinnerz+_tp_cache..decorator..inners> t}d3d33  && &s  ) functools lru_cacher _cleanupsr cache_clearwraps)rcacherrs` rw decoratorz_tp_cache..decorator}s^ 1 ##%06 **+    '  '  ryr)rrrs ` rw _tp_cacherxs%(  ryrecursive_guardc t|tr|jSt|ttt j frt|trftd|jD}|j}t||r|j|dd|df}n|j|}|r t|}tfd|jD}||jk(r|St|trt |j|St|t j r$tjtj |S|j#|S|S)Nrc3VK|]!}t|tr t|n|#ywr)rtrurrrvs rwrz_eval_type..s*%C$.c3#7 3S@%s')rc3>K|]}t|yw)rN) _eval_type)raglobalnslocalnsr type_paramss rwrz_eval_type..s2   8Wk?   s)rtr _evaluater}r rrrr __unpacked__rr~rmrreduceoperatoror_ copy_with)rrrrrr is_unpackedev_argss ```` rwrrs5 !Z {{8Wk?{[[!m\5??CD a &::D..K.q$7LL$s)T"X!67LL&1I ZZ    ajj H a & g6 6 a )##HLL': :;;w' ' HryceZdZ dZdZy)_Final) __weakref__c"d|vr tdy)N_rootz&Cannot subclass special typing classesr)rrrs rw__init_subclass__z_Final.__init_subclass__s $ DE E ryN)rrr __slots__rrryrwr r s( IFryr ceZdZ dZdZy) _NotIterablerN)rrrr__iter__rryrwrrs IHryrc\eZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z ed Zy )r)_name__doc___getitemcV||_|j|_|j|_yr)rrrr)selfgetitems rw__init__z_SpecialForm.__init__s! %%  ryc8|dvr |jSt|)N>rr)rAttributeError)ritems rw __getattr__z_SpecialForm.__getattr__s / /:: T""ryctd|)NCannot subclass rrbasess rw__mro_entries__z_SpecialForm.__mro_entries__s*4(344ryc d|jzSNtyping.rrs rw__repr__z_SpecialForm.__repr__4::%%ryc|jSrr)r*s rw __reduce__z_SpecialForm.__reduce__ zzryctd|)NzCannot instantiate r)rrrs rw__call__z_SpecialForm.__call__s-dX677ryct||fSrrrothers rw__or__z_SpecialForm.__or__T5[!!ryct||fSrr3r4s rw__ror__z_SpecialForm.__ror__UD[!!ryct|d)Nz! cannot be used with isinstance()rrrs rw__instancecheck__z_SpecialForm.__instancecheck__4& ABCCryct|d)Nz! cannot be used with issubclass()rrrs rw__subclasscheck__z_SpecialForm.__subclasscheck__r>ryc&|j||Sr)rrrs rw __getitem__z_SpecialForm.__getitem__s}}T:..ryN)rrrrrr r%r+r.r1r6r9r=rArrDrryrwrrsO0I' # 5&8""DD//ryr)rceZdZdZy)_LiteralSpecialFormcNt|ts|f}|j|g|Sr)rtrrrCs rwrDz_LiteralSpecialForm.__getitem__ s)*e,$Jt}}T/J//ryN)rrrrDrryrwrFrFs0ryrFc(eZdZfdZfdZxZS)_AnyMetacH|tur tdt| |S)Nz+typing.Any cannot be used with isinstance())rrsuperr=)rr __class__s rwr=z_AnyMeta.__instancecheck__s& 3;IJ Jw(--ryc2|turyt| S)Nz typing.Any)rrKr+)rrLs rwr+z_AnyMeta.__repr__s 3;w!!ry)rrrr=r+ __classcell__rLs@rwrIrIs. ""ryrIc eZdZ fdZxZS)rcH|tur tdt| |S)NzAny cannot be instantiated)rrrK__new__rrkwargsrLs rwrRz Any.__new__'s% #:89 9ws##ry)rrrrRrNrOs@rwrrs $$ryr) metaclassc t|dNz is not subscriptablerrCs rwrara-s  tf12 33ryc t|drWrrCs rwr]r]Bs( tf12 33ryc t|drWrrCs rwrhrh[s tf12 33ryc t|drWrrCs rwr\r\os, tf12 33ryc< t||d}t||fSN accepts only single type.rr}rrrs rwrr," zdV+E#F GD w ''ryc< t||d}t||fSr\r^r_s rwrrr`ryc |dk(r tdt|ts|f}dtfd|D}t|}t |dk(r|dSt |dk(rt d|vrt ||d St ||S) Nrz Cannot take a Union of no types.z)Union[arg, ...]: each arg must be a type.c36K|]}t|ywrrrrrs rwrzUnion..s?Jq{1c*Jrrrname)rrtrrrrsrrrrs @rwrrs:R:;; j% ( ] 5C?J??J%j1J :!!} :!T j 8!$ DD dJ //ryc t||fSrr3)leftrights rw _make_unionrns u rycJ t||d}t|tdfS)Nz requires a single type.)rrrs)rrrvs rwrrs,6 jTF*B"C DC d4j !!ryc  t|} tdttt |D}t ||S#t $rYwxYw)Nc3&K|] \}}| ywrr)rr_s rwrzLiteral.. s^)]A1)]s)rrrr_value_and_type_iterrrrCs rwrrs\,)4J ^d;OPZ;[6\)]^^  j 11    s-A AAc t|drWrrCs rwrkrks  tf12 33ryc |dk(r tdt|ts|f}|ddust|dts tddgfd|ddD|d}t ||S)Nrz&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.c36K|]}t|ywrrdres rwrzConcatenate..;sAAK3'rf)rrtrr rrjs @rwrr%s R@AA j% ( ] rNc !Z 2 %J:; ; ;CRACRAR:b>RJ #D* 55ryc< t||d}t||fSr\r^r_s rwrlrl?s-.^ zdV+E#F GD w ''rycFeZdZ dZd dddZd dZdZdZd Zd Z d Z y)r)__forward_arg____forward_code____forward_evaluated____forward_value____forward_is_argument____forward_is_class____forward_module__NF)rrc(t|tstd||jdrd|d}n|} t |dd}||_||_d|_d|_ ||_ ||_ ||_ y#t $rt d|wxYw) Nz*Forward reference must be a string -- got *(z,)[0]zevalz/Forward reference must be an expression -- got F) rtrur startswithcompile SyntaxErrorryrzr{r|r}r~r)rrvrrqrrarg_to_compilecodes rwrzForwardRef.__init__|s#s#HPQ Q >>#  U^N N Y>:v>D # $%*"!%'2$$,!"( Y OPSwWX X Ys A99Bcl|j|vr|S|jr||ur||ix}}n ||}n||}|j5ttj j |jdd|}|rQt|t|}}|D]6}|j}|jr||vs |||<|j|d8tt|j||d|j|j}t||||||jhz|_d|_|j S)N__dict__z*Forward references must evaluate to types.)rrorT)ryr{rrsysmodulesgetrrr~poprrrzr}rr|)rrrrrparam param_nametype_s rwrzForwardRef._evaluatesG   ? 2K))WH-DGO%''7!""&&2"KKOOD$;$;TBJPX$(NDM'(E!&J44 (8R/4, J5 )  T**Hg>< 88$($=$= E &0!0D4H4H3I!I &D "*.D &%%%ryc.t|tstS|jr@|jr4|j|jk(xr|j |j k(S|j|jk(xr|j |j k(Sr)rtrNotImplementedr{ryr|rr4s rw__eq__zForwardRef.__eq__s%,! !  % %%*E*E((E,A,AAF**e.E.EE G$$(=(==D''5+C+CC ErycDt|j|jfSr)hashryrr*s rw__hash__zForwardRef.__hash__sT))4+B+BCDDryct||fSrr3r4s rwr6zForwardRef.__or__r7ryct||fSrr3r4s rwr9zForwardRef.__ror__r:rycb|jd}nd|j}d|j|dS)Nz , module=z ForwardRef())rry)r module_reprs rwr+zForwardRef.__repr__s@  " " *K%d&=&=%@AKT114[MCCryTNr) rrrrrrrrr6r9r+rryrwrrts:7'I )u)0,&\EE""DryrrreturncBt|t xr t|ddS)N#__typing_is_unpacked_typevartuple__F)rtrsrrs rw_is_unpacked_typevartuplers(At$ $ E A?? Jryc |j}|j|}||dzdD] }t|tst d|t |}t |}|}||z dz } d} d} t |D]Q\} } t| trt| dd}|s't |dk(s6|ddus>| t d| } |d} S| t|| }t| || z dz } n|| z|kDrt d |d |d |dz g|d|| g||z zt|||| z | g|| z |z |z dz z||| z dS) Nrgz(More than one TypeVarTuple parameter in rrr.z6More than one unpacked arbitrary-length tuple argumentrToo few arguments for rz, expected at least ) rindexrtr rr enumeratersrminr)raliasrrtypevartuple_indexrrplenrlrmvar_tuple_indexfillargkrvrs rw_typevartuple_prepare_substrs  ! !Fd+*Q./0 e\ *FugNO O1 t9D v;D D % % )EOGD/3#t$c#CTJG3w<1,1C".#$\]]"#!!*""4)E4/1A56  08##'&(.sD1K#56zFExpected a list of types, an ellipsis, ParamSpec, or Concatenate. Got )rtrrrrrrvs rw_paramspec_substrsU#e}%DDD JC ::=@A A Jryc|j}|j|}|t|k\rtd|t|dk(rt |ds|f}|St ||t rg|d|t||||dzd}|S)Nrrgr)rrrrrrtrr)rrrris rw_paramspec_prepare_substr#s  ! !F TACI~0899 6{atAw 7w K DGT "7bq75a>7D1J7 Kryc t|ts|f}td|D}|ttfv}|r|st d|j dt d|Dst d|jdtt|t|k7rt d|jd|jD]}t|dd}||||}t||t|jg}t|j|D]8\}}t|tr|j|(|j!|:t|}t#||S) Nc32K|]}t|ywrrxrrs rwrz)_generic_class_getitem..@s4V=#VrzParameter list to z[...] cannot be emptyc32K|]}t|ywr)rrs rwrz)_generic_class_getitem..Is71#A&rzParameters to zF[...] must all be type variables or parameter specification variables.z[...] must all be unique__typing_prepare_subst__)rtrrrrrallrrsetrrrzipr rrr})rris_generic_or_protocolrpreparenew_argsnew_args rw_generic_class_getitemr2sp fe $ 4V4 4F Wh$77$S%5%5$66KL 777 /89: : s6{ s6{ * .FGI I''Ee%?FG" f-( sFC(:(:$;<!#"4"4f=NE7%.(( > x f %%ryc tt| |i|g}d|jvrt|jv}n7t|j vxr#|j dk7xrt|tk7}|r tdd|jvrt|j}d}|jD]?}t|ts|jtus'| td|j}A|at|}t| | ksDdj! fd|D}dj!d|D} td|d | d |}t#||_y) N__orig_bases__rz!Cannot inherit from plain Genericz0Cannot inherit from Generic[...] multiple times.rc3>K|]}|vst|ywrru)rrgvarsets rwrz)_generic_init_subclass..s"M5aAW.s"95a3q65rzSome type variables (z) are not listed in Generic[r)rKrrrr __bases__rrs_TypedDictMetarrrtr}r~rrrr) rrrTtvarserrorgvarsbasetvarsets_varss_argsrs @rw_generic_init_subclassrcsl '3)4:6: E3<<'3---CMM)0LLJ.0I/  ;<<3<<'#C$6$67 &&D4/OOw.$#JLL++ '  %jG%jGg%"M5"MM"95"99"7x@::@!DEEEuCrycJ|jdxr|jdS)N__)rendswith)attrs rw _is_dunderrs ??4 8T]]4%88rycVeZdZ ddddZdZdZdZfdZd Zd Z fd Z xZ S) _BaseGenericAliasTNinstric<||_||_||_d|_yr)_instrr~r)roriginrris rwrz_BaseGenericAlias.__init__s   ryc|js0td|jd|jjd|j|i|} ||_|S#t $rY|SwxYw)NzType z cannot be instantiated; use z () instead)rrrr~r__orig_class__ Exception)rrrTresults rwr1z_BaseGenericAlias.__call__szzeDJJ<0##'??#;#;"rrr~)rr~rrrrr)rrs rwr z_BaseGenericAlias.__getattr__sU / /::9!9!9 9 4== (D1A4??D1 1T""ryctt|s|dvrt| ||yt|j||y)N>rr_nparams)rrK __setattr__setattrr~)rrvalrLs rwrz_BaseGenericAlias.__setattr__s2 d t'EE G c * DOOT3 /ryc6|jt|SrrArsr<s rwr=z#_BaseGenericAlias.__instancecheck__%%d3i00ryctd)NzBSubscripted generics cannot be used with class and instance checksrr@s rwrAz#_BaseGenericAlias.__subclasscheck__s56 6ryc ttt| t |j Dcgc]}t |r|c}zScc}wr)rrrK__dir__dirr~rrrrLs rwrz_BaseGenericAlias.__dir__sPC)$'$8Q$8D 4@P4$8QRST TQs AA) rrrrr1r%r rr=rArrNrOs@rwrrs>(,$  #0 16TTryrc|eZdZdddfd ZdZdZdZdZed Z d Z d Z d Z d Z dZfdZdZxZS)r}TNrct||||t|ts|f}td|D|_t ||_|s|j|_yy)Nrc34K|]}|turdn|yw).N)_TypingEllipsisrs rwrz)_GenericAlias.__init__..s'/)-A&'/%9c )-r)rKrrtrrrrr)rrrrrirLs rwrz_GenericAlias.__init__sc d6$&7D/)-// 1$7$//DOryct|tstS|j|jk(xr|j|jk(Sr)rtr}rr~rr4s rwrz_GenericAlias.__eq__s>%/! !5#3#334MMU^^3 5rycDt|j|jfSr)rr~rr*s rwrz_GenericAlias.__hash__sT__dmm455ryct||fSrr3rrms rwr6z_GenericAlias.__or__r7ryct||fSrr3rrls rwr9z_GenericAlias.__ror__ T4Z  ryc*|jttfvrtd||jst|dt |t s|f}t d|D}t|}|j|}|j|}|S)Nz%Cannot subscript already-subscripted rc32K|]}t|ywrrrs rwrz,_GenericAlias.__getitem__..(s4t!]1%tr) r~rrrrrtrr_determine_new_argsr)rrrrs rwrDz_GenericAlias.__getitem__s" ??w1 1CD6JK K""tf$;<= =$&7D4t44D!++D1 NN8 $ryc @|j}|D]}t|dd}||||}t|}t|}||k7rtd||kDrdndd|d|d|t t ||}t |j|j|S)Nrrrrrrr) rrrrrrr_make_substitutionr)rrrrrrrnew_arg_by_params rwrz!_GenericAlias._determine_new_args.s$$Ee%?FG"tT*4y6{ 4<dTD[6e"DOTXSYZ''+fKv?@ @FD 12T,,T]]#G-=rB  %G G&%a6#NN+;A+>?#NN+;A+>? ' &eGn5G+//":"::z'SX?Y(*73(GU+$11';KLM(qrrych|j|j||j|jSN)rir)rLr~rrrrs rwrz_GenericAlias.copy_withs%~~doot$**4::~VVryc|jrd|jz}nt|j}|jr3dj |jDcgc] }t|c}}nd}|d|dScc}w)Nr(rz()rr)rrr~rr)rrirrs rwr+z_GenericAlias.__repr__sq ::tzz)Ddoo.D ==99T]]C]jm]CDDDqa  DsA;c|jrt|j}n |j}t|j}t |dk(rt |dts|\}tj||ffS)Nrgr) rglobalsr~rrrrtrr)rrrs rwr.z_GenericAlias.__reduce__sd ::Ytzz*F__FT]]# t9>*T!We"<ED&$//rycDt|jtrtd||jrt ||S|jtur>t|vry|j|}||dzdD]}t|ts||usy|jfS)Nr"rrg) rtr~rrrrKr%rrrr)rr$rrrLs rwr%z_GenericAlias.__mro_entries__s doo| 4.th78 8 ::7*51 1 ??g %5  D!A1Q34[a!23 !!!ryc#"Kt|ywr)rmr*s rwrz_GenericAlias.__iter__sTls )rrrrrrr6r9rrDrrrr+r.r%rrNrOs@rwr}r}s]2.205 6"!>O:<|W !0 "ryr}c^eZdZdddfd ZedZdZdZfdZd Z d Z d Z xZ S) _SpecialGenericAliasTNrc| |j}t| |||||_|jdk(rd|j d|_yd|jd|j d|_y)NrrzA generic version of r|)rrKrrrrr)rrnparamsrrirLs rwrz_SpecialGenericAlias.__init__sv <??D d6    *263F3F2GqIDL263D3D2EQvGZGZF[[\]DLryct|ts|f}dtfd|D}t|||j|j |S)Nrc36K|]}t|ywrrdres rwrz3_SpecialGenericAlias.__getitem__..;Fq{1c*Frf)rtrrrrrrrs @rwrDz _SpecialGenericAlias.__getitem__sH&%(YF:;F;;tVT]]3~~f%%ryc\t|j||j|jSr)r}r~rrrrs rwrz_SpecialGenericAlias.copy_withs$T__f"&**4::? ?ryc d|jzSr'r)r*s rwr+z_SpecialGenericAlias.__repr__r,ryct|tr t|j|jSt|tst||jSt ||Sr)rtr"rr~r}rKrA)rrrLs rwrAz&_SpecialGenericAlias.__subclasscheck__sN c/ 0cnndoo> >#}-c4??3 3w(--ryc|jSrr)r*s rwr.z_SpecialGenericAlias.__reduce__r/ryct||fSrr3r s rwr6z_SpecialGenericAlias.__or__r7ryct||fSrr3r s rwr9z_SpecialGenericAlias.__ror__r ry) rrrrrrDrr+rAr.r6r9rNrOs@rwr"r"s@044^&&?&."!ryr"c0eZdZdddfd ZfdZxZS)_DeprecatedGenericAliasTNrc:t|||||||_y)Nr)rKr_removal_version)rrr$removal_versionrrirLs rwrz _DeprecatedGenericAlias.__init__s# t$? /rycddl}|j|jd|j|jt ||S)Nrr|)r)warnings _deprecatedrrr3rKr=)rrr6rLs rwr=z)_DeprecatedGenericAlias.__instancecheck__sGq -d6K6K w(..ry)rrrrr=rNrOs@rwr1r1s8<40 //ryr1c$eZdZfdZdZxZS)_CallableGenericAliasc |j}t|dk(rt|drt|Sddj |ddDcgc] }t |c}dt |ddScc}w)Nrrztyping.Callable[[rrz], r)rrrrKr+rr)rrrrLs rwr+z_CallableGenericAlias.__repr__s}}} t9>nT!W57#% %YYtCRyAy! 1 yABC3d2h'(+ ,As A6 c|j}t|dk(rt|dst|dd|df}tj t |ffS)Nrrr)rrrrrrrrs rwr.z _CallableGenericAlias.__reduce__sO}}D Q>$q'#:Sb ?DH,D(D!111ry)rrrr+r.rNrOs@rwr9r9s ,2ryr9c(eZdZdZdZedZy) _CallableTypec\t|j||j|jSr)r9r~rrr*s rwrz_CallableType.copy_withs&$T__f*.**4::G Gryct|trt|dk7r td|\}}t|trt||f}n||f}|j |S)Nrz6Callable must be used as Callable[[arg, ...], result].)rtrrrr__getitem_inner__)rrrrs rwrDz_CallableType.__getitem__ sf&%(CK1,<<= = f dD !Dk6*FF^F%%f--ryc|\}}d}t||}|tur|jt|fSt |t s|f}t d|D}||fz}|j|S)Nz.Callable[args, result]: result must be a type.c32K|]}t|ywrrrs rwrz2_CallableType.__getitem_inner__..!s84C]3'4r)rEllipsisrrrtr)rrrrrs rwr@z_CallableType.__getitem_inner__st f>VS) 8 >>?F";< <$&7D8488 !~~f%%ryN)rrrrrDrr@rryrwr=r=s!G . & &ryr=ceZdZedZy) _TupleTypect|ts|f}t|dk\r:|ddur3dtfd|ddD}|jg|tSdtfd|D}|j|S)Nrr.z Tuple[t, ...]: t must be a type.c36K|]}t|ywrrdres rwrz)_TupleType.__getitem__..-sD 1;q#. rfz*Tuple[t0, t1, ...]: each t must be a type.c36K|]}t|ywrrdres rwrz)_TupleType.__getitem__..0r'rf)rtrrrrr(s @rwrDz_TupleType.__getitem__'s&%(YF v;! r c 14CDs DDF>>"A?c>tt|jSr)r frozensetrr*s rwrz_UnionGenericAlias.__hash__@sIdmm,--ryc|j}t|dk(rD|dtdurdt|ddS|dtdurdt|ddSt|S)Nrrztyping.Optional[rgr)rrrsrrKr+rrrLs rwr+z_UnionGenericAlias.__repr__Csw}} t9>Aw$t*$)*T!W*=)>a@@aDJ&)*T!W*=)>a@@w!!ryc6|jt|Srrr<s rwr=z$_UnionGenericAlias.__instancecheck__LrrycB|jD]}t||syyNT)rr)rrrvs rwrAz$_UnionGenericAlias.__subclasscheck__Os==C#s#!ryc@t|\}\}}|t|ffSr)rKr.r)rrrrrLs rwr.z_UnionGenericAlias.__reduce__Ts($w13nvteT]""ry) rrrrrrr+r=rAr.rNrOs@rwrr4s,J."1 ##ryrcd|DS)Nc36K|]}|t|fywr)rsrs rwrz'_value_and_type_iter..Zs -*QQQL*sr)rs rwrsrsYs -* --ryceZdZdZdZy)rct|tstStt |j tt |j k(Sr)rtrrrrsrr4s rwrz_LiteralGenericAlias.__eq__^s?%!56! !' 673?STYTbTb?c;dddrycPttt|jSr)rrMrsrr*s rwrz_LiteralGenericAlias.__hash__dsI24==ABCCryN)rrrrrrryrwrr]se DryrceZdZfdZxZS)rct|dttfr g|dd|dSt|dtrg|dd|dj}t ||S)Nr)rtrrrrrKr)rrrLs rwrz"_ConcatenateGenericAlias.copy_withism fRj4- 0.VCR[.6":. . fRj": ;9vcr{9VBZ%8%89Fw ((ry)rrrrrNrOs@rwrrhs ))ryrc> t||d}t||fS)Nr])rr)r_UnpackGenericAliasr_s rwrmrmqs-,Z zdV+E#F GD d$ 99rycDeZdZdZfdZedZedZxZS)r\c:dt|jddS)Nztyping.Unpack[rr)rrr*s rwr+z_UnpackGenericAlias.__repr__s" 4==+; <=Q??ryc>|jr|St| |Sr)rrKrDrOs rwrDz_UnpackGenericAlias.__getitem__s!  3 3Kw"4((ryc|j\}t|ttjfr)|j t ur td|jSy)Nz*Unpack[...] must be used with a tuple type)rrtr}rr r~rrrs rwrz2_UnpackGenericAlias.__typing_unpacked_tuple_args__sI}} cM5+=+=> ?~~U* LMM<< ryc<t|jdtSNr)rtrr r*s rwrz7_UnpackGenericAlias.__typing_is_unpacked_typevartuple__s$--*L99ry) rrrr+rDpropertyrrrNrOs@rwr\r\s6@ ) ::ryr\c eZdZy)rN)rrrrryrwrrs2ryr> _is_protocolrrr__type_params____protocol_attrs___is_runtime_protocol__non_callable_proto_members__> rrRrrrrr __annotations____subclasshook____class_getitem____abstractmethods___MutableMapping__markerc t}|jddD]`}|jdvrt|di}g|j|D].}|j dr|t vs|j|0b|S)Nr>rrrj_abc_)r__mro__rrrrEXCLUDED_ATTRIBUTESadd)rattrsr annotationsrs rw_get_protocol_attrsrvs EE CR  ==3 3 d$5r: 2dmm2k2D??7+Nrr)r)rs rw_allow_reckless_class_checksrs 5>7 77ry) rr0r%r&r2r#r.r!r4r7BufferAbstractContextManagerAbstractAsyncContextManager)zcollections.abc contextlibcddlm}|S)Nrgetattr_static)inspectrrs rw_lazy_load_getattr_staticr s ' ryc(t|jffSr)rr~)psargss rw_pickle_psargsr*s 6,,. ..ryc(t|jffSr)rr~)pskwargss rw_pickle_pskwargsr/s X002 22ryc<eZdZfdZfdZfdZfdZxZS) _ProtocolMetac 6|dk(r |tfk(rnvt|vrn|D]i}|tthvr|jtj |j gvr?t|trt|ddr]td|t|,||||fi|S)NrreFz5Protocols can only inherit from other protocols, got ) rrryr_PROTO_ALLOWLISTrrrrrrKrR)mclsrir$ namespacerTrrLs rwrRz_ProtocolMeta.__new__:s : %G:"5   VW--}}(8(<(3 22LL$$%78KGRw(//rycn|turtj||St|ddst| |St|ddst s t dt| |ryt}|jD]} |||}|||jvsyy#t$rYywxYw)NreFrhrT) rrsr=rrKrrrrgrri)rinstancerrrrLs rwr=z_ProtocolMeta.__instancecheck__ks (?))#x8 8sNE27,X6 63U;,.<= = 7 $X .24**D $Xt4{t3+M+MM+ "  s B'' B43B4)rrrrRrrAr=rNrOs@rwrr7sG&> 02ryrc|jjddstS|jD]}|jD]}||jvr|j| tccS;t |di}t |tjjs^||vsct|tstt |ddstcSy)NreFrjT) rrrrgrqrrtrrr(rr)rr5rrrus rwrrs <<  NE 2&&MMDt}}$==&.))"$(92>K; (?(?@K'ug.75.RW3X"" !' ryc,eZdZ dZdZdZfdZxZS)rrTFc:t||i||jjdds!t d|j D|_d|jvr t|_|j r)|jtjur t|_ yyy)NreFc3,K|] }|tuywrrrrs rwrz-Protocol.__init_subclass__..s"H-Q1=-srk) rKrrranyrrerrkrrrxrSs rwrzProtocol.__init_subclass__s !4262||6""H#--"HHC  S\\ 1#.C     0A0A A3CL!B ry)rrrrrerhrrNrOs@rwrrs%@IL  4 4ryrcNeZdZ fdZdZdZdZdZdZfdZ dZ xZ S) _AnnotatedAliasct|tr|j|z}|j}t|||d||_y)Nrrh)rtr __metadata__r~rKr)rrmetadatarLs rwrz_AnnotatedAlias.__init__sD fo .**X5H&&F k:$ryc8|d}t||jSrb)rr)rrnew_types rwrz_AnnotatedAlias.copy_withs!9x):):;;rycdjt|jdjd|jDS)Nztyping.Annotated[{}, {}]rc32K|]}t|ywr)rrs rwrz+_AnnotatedAlias.__repr__..s9'8!d1g'8r)formatrr~rrr*s rwr+z_AnnotatedAlias.__repr__s9)00 t ' II9t'8'89 9  rycbtjt|jf|jzffSr)rrrr~rr*s rwr.z_AnnotatedAlias.__reduce__s1 )D,=,=="   ryct|tstS|j|jk(xr|j|jk(Sr)rtrrr~rr4s rwrz_AnnotatedAlias.__eq__sB%1! !5#3#33<%%););; =rycDt|j|jfSr)rr~rr*s rwrz_AnnotatedAlias.__hash__sT__d&7&7899ryc,|dvryt||S)N>rrr)rKr rs rwr z_AnnotatedAlias.__getattr__s / /w"4((ryc|jfSr)r~r#s rwr%z_AnnotatedAlias.__mro_entries__ s!!ry) rrrrrr+r.rrr r%rNrOs@rwrrs0%<   = :) "ryrcBeZdZ dZdZdZeddZdZy) rrctd)Nz&Type Annotated cannot be instantiated.rrrrTs rwrRzAnnotated.__new__@s@AArycNt|ts|f}|j|g|Sr)rtr_class_getitem_inner)rrs rwrlzAnnotated.__class_getitem__Cs+&%(YF's''5f55ryTrct|dkr tdt|dr tdd}t|d|d}t |dd}t ||S) NrzUAnnotated[...] 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.Trnrg)rrrrrr)rrrrrs rwrzAnnotated._class_getitem_innerHss v;?+, , %VAY /45 54VAYF$vx00rycJtdj|j)NzCannot subclass {}.Annotated)rrrrs rwrzAnnotated.__init_subclass__Vs! * 1 1#.. A  ryN) rrrrrRrlrrrrryrwrrs8-^IB6 T 1 1 ryrcX t|tr t|ddstd|zd|_t |_|jD]7} tt||d}|r|j j|9|S#t$r}td|d|d}~wwxYw)NreFzB@runtime_checkable can be only applied to protocol classes, got %rTz,Failed to determine whether protocol member z is a method member) rrrrrhrrirgcallablersr)rr is_callablees rwrgrg\s$ c7 #73+N"$'() )#C *-C&&& ="73d#;thG%%  sB  B)B$$B)c |Srr)rrs rwrSrSs Jryc |Srr)rrs rwrQrQs  Jryc t|ddriSt|tr?i}t|jD]}|6tt j j|jddi}n|}|jjdi}t|tjri}|tt|n|}||||}}|jD]M\} } | td} t| trt!| dd} t#| |||j$} | || <O|r|S|jD cic]\} } | t'| c} } S|`t|tj(r |j}n4|} t+| dr| j,} t+| drt| di}||}n||}t|dd}|,t|t.riSt1d j3|t|}t|d d }|jD]Z\} } | td} t| tr't!| t|tj( d} t#| ||||| <\|r|S|jD cic]\} } | t'| c} } Scc} } wcc} } w) N__no_type_check__rrjFT)rrr __wrapped__ __globals__z1{!r} is not a module, class, method, or function.rfr)rrtrsreversedrqrrrrrrGetSetDescriptorTypervarsitemsrurrrf_strip_annotations ModuleTyperr_allowed_typesrr)rrrinclude_extrashintsr base_globalsann base_localsrivaluerrnsobjrs rwrZrZs<s'. #tS[[)D&s{{t'Mz[]^ ' --##$5r:C#u99:.5o$tDz*7K8#3-8k "yy{ e= JEeS)&u%$OE"5, TEYEYZ#d +#*0'u`RWR]R]R_,`R_$!QQ0B10E-ER_,`` c5++ ,||HE%/))%/umR8H ?G  C*D 1E } c> *I++16#;8 8 KE#0"5K{{} e =JE eS ! *30@0@ AAE !';Gd %#5\ekkm(\mda,>q,A)Am(\\K-aJ)]s J8J>c t|trt|jSt |dr0|jt t fvrt|jdSt|tr>td|jD}||jk(r|S|j|St|trCtd|jD}||jk(r|St|j|St|tjrQtd|jD}||jk(r|Stjt j"|S|S)Nr~rc32K|]}t|ywrrrs rwrz%_strip_annotations.. HZ03Zrc32K|]}t|ywrrrs rwrz%_strip_annotations.. rrc32K|]}t|ywrrrs rwrz%_strip_annotations.. rr)rtrrr~rrerbrr}rrr rrrrrr)r stripped_argss rwrr s2!_%!!,,//q,ALLX{4K$K!!**Q-00!]#HQZZHH AJJ &H{{=))!\"HQZZHH AJJ &HALL-88!U__%HQZZHH AJJ &H m<< Hryc t|trtSt|ttt t fr |jS|turtSt|tjrtjSyr) rtrrrr rrr~rrrtps rwrXrX# sc""o&"(,$o78}} W}"eoo& ryc, t|tr|jf|jzSt|tt fr-|j }t||rt|dd|df}|St|tjr |j Sy)Nrr) rtrr~rr}r rrrrr)rrs rwrWrWA s "o& "//11"}l34kk *2s 3CR>3r7+C "eoo&{{ ryc$ t|tSr)rtrrs rwr[r[[ s  b. ))rydrvcr t|}t|tkDr |dtdz}td|)Nrz*Expected code to be unreachable, but got: )rr_ASSERT_NEVER_REPR_MAX_LENGTHAssertionError)rvrs rwrRrRp sE$ IE 5z11445= EeWM NNryc t|trt|D]}t||}t |drB|j |j d|j k7st|dd|jk7r^t|tjrd|_ t|tjrd|j_ t|tst| d|_ |S#t$rY|SwxYw)Nrr|rT)rtrsrrrrrrrrr MethodType__func__r_r)rvkeyrs rwr_r_ s#ts8C#s#CC0###*:*:);1S\\N'KK3 d3s~~E #u112(,%#u//015 .#t$c"%& $ J   J s&C// C<;C<cD tjfd}|S)Nc.|i|}t|}|Sr)r_)rrrrs rwwrapped_decoratorz2no_type_check_decorator..wrapped_decorator s!$'$'T" ry)rr)rrs` rwr`r` s- __Y  ryc td)NzYou 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)rrs rw_overload_dummyr s4  9 ::ryc t|d|} |t|j|j|jj <tS#t $rYtSwxYwNr)r_overload_registryrr__code__co_firstlinenorr)rfs rwrcrc se> j$'A VZ1<<(89R9RS     s7A AAc t|d|}|jtvrgSt|j}|j|vrgSt ||jj Sr)rrrrrvalues)rrmod_dicts rwrYrY sa@j$'A||-- !!,,/H~~X% (//1 22ryc. tjyr)rclearrryrwrTrT s.rycD d|_|S#ttf$rY|SwxYwrR) __final__rr)rs rwrVrV s:2  H I &  H   TKTVTT_co) covariantV_coVT_coT_contra) contravariantCT_co)rboundrPaDeprecated 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. rrh)r)r4rrra]Deprecated alias to builtins.tuple. Tuple[X, Y] is the cross-product type of X and Y. Example: Tuple[T1, T2] is a tuple of two elements corresponding to type variables T1 and T2. Tuple[int, float, str] is a tuple of an int, a float and a string. To specify a variable-length tuple of homogeneous type, use Tuple[T, ...]. rDrArFrGr"r6rBrCraDeprecated 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(eZdZ dZedefdZy)r=rrcyrrr*s rw__int__zSupportsInt.__int__  ryN)rrrrrintr rryrwr=r= s#2I   ryr=c(eZdZ dZedefdZy)r;rrcyrrr*s rw __float__zSupportsFloat.__float__ r ryN)rrrrrfloatrrryrwr;r; #4I 5  ryr;c(eZdZ dZedefdZy)r:rrcyrrr*s rw __complex__zSupportsComplex.__complex__ r ryN)rrrrrcomplexrrryrwr:r: s#6I W  ryr:c(eZdZ dZedefdZy)r9rrcyrrr*s rw __bytes__zSupportsBytes.__bytes__ r ryN)rrrrrbytesrrryrwr9r9 rryr9c(eZdZ dZedefdZy)r<rrcyrrr*s rw __index__zSupportsIndex.__index__ r ryN)rrrrrr rrryrwr<r< s#4I 3  ryr<c>dxfGfdd }t|S)rc2eZdZWZ dZedWfdZy)r8rrcyrrr*s rw__abs__zSupportsAbs.__abs__ r ryN)rrrrfrrr! .type_paramsrsrwr8r8 s$WI   ryr8r .generic_baser#rs @@rw#r& s  X ryc>dxfGfdd }t|S)rc8eZdZWZ dZeddedWfdZy)r>rndigitsrcyrr)rr)s rw __round__zSupportsRound.__round__ r ryNr)rrrrfrrr r+r"srwr>r> s+YI  Q  ryr>rr$s @@rw%r- s  x ryrc |Dcgc]\}}| }}}|Dcic]\}}|t|d|d}}}tj||||}|x|_|j_|Scc}}wcc}}w)Nzfield z annotation must be a typedefaultsrq)rr namedtuplerjrR)rirrqr0nrfieldsnm_tpls rw _make_nmtupler5 s! "EDAqaEF " A As*DEF F   # #D&-5fFF>CCFV^^; M # s A+A1> _makerR_asdict_fields_sourcer_replacer__getnewargs___field_defaults>rrrjceZdZdZy)NamedTupleMetac |D]}|tus |tustdtd|D}|j di}g}|D]M}||vr|j ||std|dt |dkDrdndd d j|t||j|Dcgc]}|| c}|d  } || _ t|vrt} t| | _ |D]@} | tvrtd | z| t vs"| | j"vs1t%| | || Bt|vr| j'| Scc}w)Nz3can only inherit from a NamedTuple type and Genericc3<K|]}|turtn|ywr) _NamedTupler)rrs rwrz)NamedTupleMeta.__new__.. sOt{2e<rjzNon-default namedtuple field z cannot follow default fieldrgsr rrr/z&Cannot overwrite NamedTuple attribute )rArrrrrrrr5rrr classmethodrl _prohibitedr_specialr8rr) rtypenamer$nsrr default_names field_namer2r4 class_getitemrs rwrRzNamedTupleMeta.__new__ s~D;&4w+>IKKOOO("- JR$$Z0"? |L>*-m*??  x8E(F 1A (F&(&68! e 2M'2='AF $Ck!$%MPS%STTH$FNN)BRW-  e   $ $ & )Gs6 E N)rrrrRrryrwr>r> s ryr>c ||j}n |r tdt||t}tf|_|S)NzIEither list of fields or keywords can be provided to NamedTuple, not bothrq)rrr5rrHr)rHr3rTnts rwrHrH sP&~ CD D x :B# B IryrHctfSr)rAr$s rw_namedtuple_mro_entriesrR; s >ryc"eZdZddZeZdZeZy)rc  |D]'}t|tus|tustdt d|Drtf}nd}tj t|g|t |}t|ds||_i}|jdi} d} | jD cic]\} } | t| | |j } } } t} t}|D]}|j|jjdi|jjdt}| |z} ||z}|jjd t}| |z} ||z}|j| | jD]\}}t!|}|t"urt%|}|r|d }t!|}|t&urd }n |t(urd }n|}|r#| j+||j-|s|j+|| j-|||_t1| |_t1||_t|d s||_|Scc} } w)NzHcannot inherit from both a TypedDict type and a non-TypedDict base classc3<K|]}t|tywr)rrrs rwrz)_TypedDictMeta.__new__..P s5u!z!W%urBrrrjz?TypedDict('Name', {f0: t0, f1: t1, ...}); each t must be a typerN__required_keys____optional_keys__rTF __total__)rsrrrrrRrrrrrrrrupdaterrXrrWrerbrsdiscardrjrMrVrWrX)rrir$rItotalr generic_basetp_dictruown_annotationsrr2r required_keys optional_keys base_required base_optionalannotation_keyannotation_typeannotation_originannotation_args is_requireds rwrRz_TypedDictMeta.__new__C st DDz/D4G!ABB 5u5 5#:LL,,~t5J|5JT5JBOw 01%*G " &&!2B7O)..0 02 {2s7+=+=> >0    D   t}}001BBG H MM--.A35IM ] *M ] *M MM--.A35IM ] *M ] *M ?+/>/D/D/F +NO *? ;  I-"*?";"&5a&8O(2?(C% H," "k1# # !!.1%%n5!!.1%%n5)0G4#.$-m$<!$-m$<!w , %G e s+#I'ctd)Nz4TypedDict does not support instance and class checksr)rr5s rwrAz _TypedDictMeta.__subclasscheck__ sNOOryN)T)rrrrRrr1rAr=rryrwrrB sL\HP*ryrr[c ||}n |r td|rtjdtddt |i}t }|||d<t |d||}tf|_|S) Nz@TypedDict takes either a dict or keyword arguments, but not bothzThe 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 stacklevelrjrrri) rr6warnDeprecationWarningrrrrIr)rHr3r[rTrIrqtds rwrIrI s-\~ () )   7    T&\ *B YF !< "b 6B" B IryrIctfSr) _TypedDictrQs rwrr s:-rycP t||jd}t||fSNz accepts only a single type.rrr}r_s rwrere s0$ zdjj\1M#N OD w ''rycP t||jd}t||fSrtrur_s rwrbrb s0  zdjj\1M#N OD w ''ryc6eZdZ eZdZdZdZdZdZ dZ y)r^c||_d|vr|jdd}||_||_t }|dk7r||_yy)Nr|rtyping)r rpartitionr __supertype__rr)rrirdef_mods rwrzNewType.__init__( sN  $;??3'+D ) h %DO ryc:|jGfdd}|fS)NceZdZfdZy)&NewType.__mro_entries__..Dummyc F|j}td|d|dd)NzGCannot subclass an instance of NewType. Perhaps you were looking for: `z = NewType(rz)`)rr)r subclass_namesuperclass_names rwrz8NewType.__mro_entries__..Dummy.__init_subclass__8 s: # %k-1B"_DUUWYryN)rrrr)rsrwDummyr7 s ryrr)rr$rrs @rwr%zNewType.__mro_entries__2 s!--  xryc8|jd|jS)Nr|)rrr*s rwr+zNewType.__repr__A s//"!D$5$5#677ryc|jSr)rr*s rwr.zNewType.__reduce__D s   ryct||fSrr3r4s rwr6zNewType.__or__G r7ryct||fSrr3r4s rwr9zNewType.__ror__J r:ryN) rrrr r1rr%r+r.r6r9rryrwr^r^ s,*H& 8!""ryr^ceZdZ dZeedefdZeedefdZed dZ eede fdZ ede fdZ ed d Zede fd Zed!d e defd Zede fd Zed!de defdZed!de deefdZed"de de de fdZede fdZede fdZed#de de fdZede fdZedede fdZedeeddfdZed$dZed dZy)%rLrrcyrrr*s rwmodezIO.modee  rycyrrr*s rwrizIO.namej rryNcyrrr*s rwclosezIO.closeo r rycyrrr*s rwclosedz IO.closeds rrycyrrr*s rwfilenoz IO.filenox r rycyrrr*s rwflushzIO.flush| r rycyrrr*s rwisattyz IO.isatty r ryr2cyrr)rr2s rwreadzIO.read r rycyrrr*s rwreadablez IO.readable r rylimitcyrr)rrs rwreadlinez IO.readline r ryhintcyrr)rrs rw readlinesz IO.readlines r ryoffsetwhencecyrr)rrrs rwseekzIO.seek r rycyrrr*s rwseekablez IO.seekable r rycyrrr*s rwtellzIO.tell r rysizecyrr)rrs rwtruncatez IO.truncate r rycyrrr*s rwwritablez IO.writable r ryrCcyrrrrCs rwwritezIO.write r rylinescyrr)rrs rw writelinesz IO.writelines r rycyrrr*s rw __enter__z IO.__enter__ r rycyrr)rrsr tracebacks rw__exit__z IO.__exit__ r ry)rN)rr,r)rz IO[AnyStr])rrrrrcrrurrirboolrr rrrrPrrrrDrrrrrrrrrrrryrwrLrLV sd I  c   c                c 6   $   c 6   c 4<   3  C   $   c   S C   $   v #   V        ryrLcHeZdZ dZedeeefdefdZ eddZ y)rKrrCrcyrrrs rwrzBinaryIO.write r rycyrrr*s rwrzBinaryIO.__enter__ r ryN)rrK) rrrrrrr bytearrayr rrrryrwrKrK sH?I uUI-. 3    ryrKceZdZ dZeedefdZeedefdZ eede efdZ eede fdZ eedefdZed dZy ) rOrrcyrrr*s rwbufferz TextIO.buffer rrycyrrr*s rwencodingzTextIO.encoding rrycyrrr*s rwerrorsz TextIO.errors rrycyrrr*s rwline_bufferingzTextIO.line_buffering rrycyrrr*s rwnewlineszTextIO.newlines rrycyrrr*s rwrzTextIO.__enter__ r ryN)rrO)rrrrrcrrKrrurrrrrrrrrryrwrOrO s=I     #          #    ryrOceZdZfdZxZS)_DeprecatedTypec|dvrD||jvr6tj|jd|jdtdt ||S)N>rrrz5 is deprecated, import directly from typing instead. z will be removed in Python 3.13.rrk)rr6rmrrnrK__getattribute__)rrirLs rwrz _DeprecatedType.__getattribute__ s^ < <AU MM<<.!((+ ~6""#  w'--ry)rrrrrNrOs@rwrr s  . .ryrc"eZdZ gdZeZeZeZy)io)rLrOrKN)rrr__all__rLrOrKrryrwrr s3*G B FHryrz.ioceZdZ ddgZeZeZy)rerNrMN)rrrrrNrMrryrwrr s0'"GG Eryrz.rec dx}fd|d|fdcS)rrrcj tdt|jtj|S)NzRuntime type is )file)printrsrrstderrrs rwrfrf s/  T#Y//2 3#**E Jryr) .defaultsrs rw#r sryc*eZdZWfdZZy)_IdentityCallablec"dx}fd|d|fdcS)rrvrcyrrrs rwr1z_IdentityCallable.__call__& s ryr)rr __classdict__s rwz z2_IdentityCallable.& s q  ryN)rrrr1__classdictcell__)rs@rwrr% s   ryr) eq_default order_defaultkw_only_defaultfrozen_defaultfield_specifiersrrrrr.rTc ( fd}|S)Nc$d|_|S)N)rrrrrrT)__dataclass_transform__) cls_or_fnrrrrrTrs rwrz&dataclass_transform..decoratorq s'$*., 0 - )ryr)rrrrrrTrs`````` rwrUrU* s=|   ry_Funcc tdtfSr)rrrryrwrr~ sXc3h ryc$ddx}fd|d|fdcS)FctSr)rrryrwrr sXrymethodrcD d|_|S#ttf$rY|SwxYwrR) __override__rr)rs rwrdrd s;0 " M I &  M  rr)rrs rw r sX q  ryrr)rg__main__)r)NNF)r)rrrrrcollections.abccopyregrrrr stdlib_rerrr6rrrr _typingr r r r rrrrrrxrrrrrrrrrrrrrrrrMrr rrrFrsrIrrar]rhr\rrrrnrrrkrrlrrrrrrrrrrrrrr}r"r1r9r=rErrsrrrmr\r_TYPING_INTERNALS_SPECIAL_NAMESrrrvrxrrrrrrrrpicklerrrErrrrrgrSrQrBuiltinFunctionTyperrrrZrrXrWr[rrRr_r`rpartialrrrcrYrTrVrrrrrrrrrrurP_aliasr#r0r3r2r1r%r&r7r.r!r4rrrFrr,r(r*r-r+r rrrrDdequerArrGr)r'r$r/rr"rr6rBrCrEr@r?rJr5rr=r;r:r9r<r8r>r5rFrGr>rHrRrArRr%rrIrqrerbr^rirjrLrKrOrrrrrNrMrfrrUrrdrryrwrs *(# ^^   o l5PUB@ 02B <16/  A   U>% )+% PFF((/6 [__00!4 +//**A . ;??,,a 0 KOO.. 2  991CSTZCCQMbc dAE/[,,amD [,,a0 $$a ( +&& * ;??,,a 0  66: dAE/ 2 (   H   h   H   H      DE  B C!T!H:ll><R@ 5 U*TU*pEEN\\.+r2 > 7 ((.(($;";"~  ` ` F  r%y    RW  F .d .?  BKK ""A &y"?  BKK&  ! CE QQQ Q  Q DIc(::C?@ QQQh   ry