_imThddlZddlZddlZddlZddlZddlZej dddk\ZereZ nddlm Z m Z dZ dZ gdZ ere jgdeed r ej Zn Gd d ej"d Zed Zej&dZej&dZej&dZej&dd Zej&dd Zej2Zeedrej dddk\r ej4ZnTej dddk\r"Gddej6d ZeddZn Gddej"d Zed Zeedr ej<ZndZd Zeed!r ej@Z nTej dddk\r"Gd"d#ej6d Z!e!d!d$Z n Gd%d&ej"d Z"e"d Z ejFZ#ejHZ$ejJZ%Gd'd(e Z&ejNZ'ejPZ(ejRZ)ejTZ*eed)r ejVZ+n0Gd*d)ejXejZee&ejX+Z+ej\Z.eed,r ej^Z/ndd-l0m1Z2Gd.d,ejfeZ/ejhZ4eed/r ejjZ5nmdej ddcxkrd0kr#nn ejlejjeefZ5n2Gd1d/ejjejneefe&ejj+Z5eed2r ejpZ8n2Gd3d2ejpejree:fe&ejp+Z8eed4r ejvZ;n;eed4r2Gd5d4ejvejneefe&ejv+Z;eed6r ejxZej~Z?d8Z@gd9ZAd:ZBd;ZCeed<r ejZDnOer+dd=lmEZEd>ZFGd?d@ejZHGdAddLZOdMZPdNeP_Qd dOdPZRdQeR_QGdRdSeZSeSdTeTfiZNeUeN_VdUeN_WeedVr%ejZXejZYejZZnOer)GdWdXejd ZZGdYdVZXdZZ\dd[ZYn$d\Z]Gd]d^ejZ^Gd_dVe^BZXej ddd`k\rejZ_ejZ`ner ddalmaZa ddblmcZcdcZ_ddZ`eeder ejZdnej dddfk\r Gdgdhej6d ZeeediZdnjej dddk\r"Gdjdhej6d ZeeededkZdn6GdldmejZgGdndoej"egd pZhehd ZdeedqrejZiejZjn GdrdsZkGdtdqekZiGdudvekZjeedwr ejZln GdxdwemZleedys Gdzd{emZnejd|ZpeedyrejZqejZnnej dddfk\r eed}Zqnjej dddk\r"Gd~dej6d ZrerdydZqn6GddejZsGddej"esd pZtetd Zqeedr ejZunej dddfk\r Gddej6d ZvevdZunTej dddk\r"Gddej6d ZvevddZun Gddej"d Zwewd Zueedr ejZxnRej dddk\r Gddej:d ZedZxn Gddej"d Zyeyd ZxeedrejZzejZ{yej dddfk\r(Gddej6d Z|e|dZze|dZ{yej dddk\r,Gddej6d Z}e}ddZze}ddZ{yGddej"d Z~Gdde~d ZGdde~d Zed Zzed Z{y#eb$rejZaYwxYw#eb$rejZcYwxYw)N)rr) GenericMeta _type_varsc\t|}d|vr|dD]}|j|d|S)N __slots__)dictpop)dct dict_copyslots /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/_vendor/typing_extensions.py_no_slots_copyrs6S Iik*D MM$ %+ c |jst|dt|}t|j}||k7rtd||kDrdndd|d|d|y)Nz is not a generic classzToo manyfewz arguments for z ; actual z , expected )__parameters__ TypeErrorlen)cls parametersalenelens r_check_genericrs|   3%6788 z?D s!! "D t|$v%@PSuU##'& D6;< <r)!ClassVar ConcatenateFinal ParamSpecSelfType Awaitable AsyncIterator AsyncIterable CoroutineAsyncGeneratorAsyncContextManagerChainMapContextManagerCounterDeque DefaultDict OrderedDict TypedDict SupportsIndex AnnotatedfinalIntVarLiteralNewTypeoverloadProtocolruntimeruntime_checkableText TypeAlias TypeGuard TYPE_CHECKING)get_args get_originget_type_hintsNoReturnc eZdZdZdZdZdZy) _NoReturna7Special type indicating functions that never return. Example:: from typing import NoReturn def stop() -> NoReturn: raise Exception('no way') This type is invalid in other positions, e.g., ``List[NoReturn]`` will fail in static type checkers. ctd)Nz*NoReturn cannot be used with isinstance().rselfobjs r__instancecheck__z_NoReturn.__instancecheck__mHI Irctd)Nz*NoReturn cannot be used with issubclass().rErGrs r__subclasscheck__z_NoReturn.__subclasscheck__prJrN__name__ __module__ __qualname____doc__rrIrMrCrrrBrB_s   J JrrBT_rootTKTVTT_co) covariantT_contra) contravariantr)rrceZdZdZdZy) _FinalFormc d|jzSNztyping_extensions._namerGs r__repr__z_FinalForm.__repr__'$**4 4rcvtj||jd}tj||fS)N accepts only single typetyping _type_checkrb _GenericAliasrGritems r __getitem__z_FinalForm.__getitem__s9%%j)- 4M&NPD''tg6 6rNrOrPrQrdrnrCrrr^r^  5 7rr^aWA special typing construct to indicate that a 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.)doccFeZdZdZdZd dZdZdZfdZdZ dZ xZ S) _FinalaA special typing construct to indicate that a 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. __type__c ||_yNrtrGtpkwdss r__init__z_Final.__init__ DMrct|}|j.|tj||jddddSt |jddd)N accepts only single type.TrS cannot be further subscriptedtyperurirjrOrrGrmrs rrnz_Final.__getitem__smt*C}}$6--d!ll12.//IJL!%''s||AB/00NOP Prctj|j||}||jk(r|St||dSNTrSri _eval_typerurrGglobalnslocalnsnew_tps rrz_Final._eval_type>&&t}}hHF& 4:fD1 1rct|}|j&|dtj|jdz }|SN[]superrdruri _type_reprrGr __class__s rrdz_Final.__repr__B "A}}(q**4==9:!<<HrcVtt|j|jfSrwhashrrOrurcs r__hash__z_Final.__hash__ d,,dmm<= =rct|tstS|j|j|jk(S||uSrw) isinstancersNotImplementedrurGothers r__eq__z _Final.__eq__s9eV,%%}}(}}665= rrw rOrPrQrRrr{rnrrdrr __classcell__rs@rrsrss. "   Q 2    > !rrsr1c|S)auThis decorator can be used to indicate to type checkers that the decorated method cannot be overridden, and decorated class cannot be subclassed. For example: class Base: @final def done(self) -> None: ... class Sub(Base): def done(self) -> None: # Error reported by type checker ... @final class Leaf: ... class Other(Leaf): # Error reported by type checker ... There is no runtime checking of these properties. rC)fs rr1r1s (rc,tj|Srw)riTypeVarnames rr2r2s >>$ rr3ceZdZdZdZy) _LiteralFormc d|jzSr`rarcs rrdz_LiteralForm.__repr__rerc.tj||Srw)rirkrGrs rrnz_LiteralForm.__getitem__s''j9 9rNrorCrrrrs  5 :rraoA type that can be used to indicate to type checkers that the corresponding value has a value literally equivalent to the provided parameter. For example: var: Literal[4] = 4 The type checker understands that 'var' is literally equal to the value 4 and no other value. Literal[...] cannot be subclassed. There is no runtime checking verifying that the parameter is actually a value instead of a type.cFeZdZdZdZd dZdZdZfdZdZ dZ xZ S) _LiteralaA type that can be used to indicate to type checkers that the corresponding value has a value literally equivalent to the provided parameter. For example: var: Literal[4] = 4 The type checker understands that 'var' is literally equal to the value 4 and no other value. Literal[...] cannot be subclassed. There is no runtime checking verifying that the parameter is actually a value instead of a type.  __values__c ||_yrwr)rGvaluesrzs rr{z_Literal.__init__! $DOrct|}|jt|ts|f}||dSt |j ddd)NTrSr~r)rrrtuplerrO)rGrrs rrnz_Literal.__getitem__$sRt*C&!&%0$YF6..s||AB/00NOP Prc|SrwrC)rGrrs rrz_Literal._eval_type,Krct|}|j:|ddjt t j |jdz }|S)Nr, r)rrdrjoinmaprirrs rrdz_Literal.__repr__/sM "A*q3v'8'8$//#JKLANNHrcVtt|j|jfSrw)rrrOrrcs rrz_Literal.__hash__5s d,,doo>? ?rct|tstS|j|j|jk(S||uSrw)rrrrrs rrz_Literal.__eq__8s;eX.%%*%*:*:::5= rrwrrs@rrrs/ $  % Q    @ !rrceZdZfdZxZS)_ExtensionsGenericMetac|j0tjdjddvr t dy|j st ||S|j j|}|tur|S|j |jvry|j jD]!}t|trt||s!yy)a*This mimics a more modern GenericMeta.__subclasscheck__() logic (that does not have problems with recursion) to work around interactions between collections, typing, and typing_extensions on older versions of Python, see https://github.com/python/typing/issues/501. r~rOabc functoolsCParameterized generics cannot be used with class or instance checksFT) __origin__sys _getframe f_globalsr __extra__rrM__subclasshook__r__mro____subclasses__rr issubclass)rGsubclassressclsrs rrMz(_ExtensionsGenericMeta.__subclasscheck__Ns ?? &}}Q))*5=QQ!566~~7,X6 6nn--h7 n $J >>X-- -NN113D$ ,(D) 4 r)rOrPrQrMrrs@rrrMs rrr+ceZdZdZdZy)r+rCc|jturtj|i|St j tj|g|i|Srw)_gorgr+ collectionsdequeri _generic_newrargsrzs r__new__z Deque.__new__wsGyyE!"(($7$77&&{'8'8#MMM MrNrOrPrQrrrCrrr+r+rs  Nr) metaclassextrar')_check_methodscJeZdZdZdZej dZedZ y)r'rCcK|SwrwrCrcs r __aenter__zAsyncContextManager.__aenter__s Ksc KywrwrC)rGexc_type exc_value tracebacks r __aexit__zAsyncContextManager.__aexit__s sc8|tur t|ddStS)Nrr)r'_check_methods_in_mror)rCs rrz$AsyncContextManager.__subclasshook__s )),Q kJJ! !rN) rOrPrQrrrabstractmethodr classmethodrrCrrr'r's:         "  "rr-)rrr\ceZdZdZdZy)r-rCc|jturtj|i|Stjtj|g|i|Srw)rr-rrirrs rrzOrderedDict.__new__sGyyK'"..===&&{'>'>SdSdS SrNrrCrrr-r-s  Trr*ceZdZdZdZy)r*rCc|jturtj|i|Stjtj|g|i|Srw)rr*rrirrs rrzCounter.__new__sGyyG#"**D9D99&&{':':CO$O$O OrNrrCrrr*r*s  Prr(ceZdZdZdZy)r(rCc|jturtj|i|Stjtj|g|i|Srw)rr(rrirrs rrzChainMap.__new__sGyyH$"++T:T::&&{';';SP4P4P PrNrrCrrr(r(s  Qrr&ceZdZdZy)r&rCN)rOrPrQrrCrrr&r&s  rct|tsJt|dr |jS|j|j}|j|S)z@This function exists for compatibility with old typing versions.r)rrhasattrrrrs rrrsJ c; '' 'sGyy .. $nn .. $ Jr) Callabler"IterableIteratorr$r#HashableSized Container Collection Reversibler)r'cNt}|jddD]}|jdvrt|di}t |j j t |j zD]*}|jdr|dvs|j|,|S)N)r6Generic__annotations___abc_)__abstractmethods__r __weakref__ _is_protocol_is_runtime_protocol__dict____args__r__next_in_mro__rr__orig_bases__r __tree_hash__rRrr{rrP_MutableMapping__markerr) setrrOgetattrlistr keys startswithadd)rattrsbase annotationsattrs r_get_protocol_attrsrs EE CR  ==3 3 d$5r: ++-.k6F6F6H1IIDOOG,>F2F $J ! Lrc>tfdtDS)Nc3JK|]}tt|dywrw)callabler).0rrs r z,_is_callable_members_only..s"W>VdxT401>V #)allrrs`r_is_callable_members_onlyr"s W>QRU>VW WWrr6)_collect_type_varscDt|jr tdyNz Protocols cannot be instantiatedrrrrGrkwargss r_no_initr) : " ">? ? #rceZdZfdZxZS) _ProtocolMetactddr trtjryjrt fdt Dryt!S)NrFTc3K|]9}t|xr'tt|d xst|du;ywrwrrr)rrrinstances rrz2_ProtocolMeta.__instancecheck__..sV=$<4x.=$WS$%=>><$/t;=$<?A) rr"rrrr!rrrI)rr0rs``rrIz_ProtocolMeta.__instancecheck__ sfS.%8*3/x1137=$7s#;== 7,X6 6r)rOrPrQrIrrs@rr,r, s  7 7rr,cTeZdZdZdZdZfdZejdZ dZ xZ S)r6aBase 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_extensions.runtime act as simple-minded runtime protocol that checks only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:: class GenProto(Protocol[T]): def meth(self) -> T: ... rCTcH|tur tdt| |S)NzIType Protocol cannot be instantiated; it can only be used as a base class)r6rrr)rrrzrs rrzProtocol.__new__>s.h!FGG7?3' 'rc0t|ts|f}|s+|tjurt d|j ddtfd|D}|t urtd|DsYd}t||tjr#|dz }t||tjr#t d|dzd ||tt|t|k7rt d t||tj||S) NParameter list to [...] cannot be empty*Parameters to generic types must be types.c3JK|]}tj|ywrwrirjrpmsgs rrz-Protocol.__class_getitem__..LsFv!6--a5vr c3PK|]}t|tj ywrwrrirrr;s rrz-Protocol.__class_getitem__..OI&Q:a8&$&rr~zBParameters to Protocol[...] must all be type variables. Parameter z is z.Parameters to Protocol[...] must all be unique) rrriTuplerrQr6r!rrrrrk)rparamsir<s @r__class_getitem__zProtocol.__class_getitem__Dsfe, c5()9)9(::OPRR>CFvFFFhI&IIA$VAY?Q%VAY?#&&'!eWD =>>s6{#s6{2#HJJsF+''V4 4rc  g}djvrtjjv}ntjjv}|r t ddjvrt j}d}jD]o}t|tjs|jtjtfvsA|jj}| t d|j}q||}ndt|}t| | ksGdj fd|D} djd|D} t d| dd | d |}t|_ jj!d ds!t#d jD_fd } djvr| _j$syjD]p}|t(tjfvr|j*dk(r|jt,vr>t|t.r |j$r[t dt1|t2_y)Nr !Cannot inherit from plain GenericzECannot inherit from Generic[...] and/or Protocol[...] multiple types.rc3>K|]}|vst|ywrwstrrtgvarsets rrz-Protocol.__init_subclass__..~*U5aAWDT3q65 c32K|]}t|ywrwrIrgs rrz-Protocol.__init_subclass__..*A5a3q65Some type variables () are not listed in rrrc3,K|] }|tuywrw)r6rbs rrz-Protocol.__init_subclass__..s&LmqH}mcjjddstStdds5t j dj ddvrtStdts5t j dj ddvrtStdt|ts td tD]}|jD]w}||jvr|j| tccS;t|d i}t|tjsT||vsYt|tsj|j swtcSy ) Nrr Fr\rOrBInstance and class checks can only be used with @runtime protocols._proto_hooks>||''=))s$:EB}}Q'11*=AUU--#%:;;05}}Q'11*=AUU--#%BCC!%.#$HII/4D % 4==0#}}T2:'5 5!&-d4Er&J &{FNNC $ 3 *5- @ % 2 2!!. .-5rrcollections.abc5Protocols can only inherit from other protocols, got )r rirr  __bases__rr#rrkrr6rOrrrrr_anyrrobjectrP_PROTO_WHITELISTr,reprr)r{) rrr(tvarserrorgvarsrthe_basetvarsets_varss_argsrbrMs ` @r__init_subclass__zProtocol.__init_subclass__^s5E3<</#*<*<<#--7 CDD3<</*3+=+=> ..D"4)=)=> OO/II#'??#;#; ,"+!H#II!% 3 3/=!E!%jG!%jG"g-!%*U5*U!U!%*A5*A!A'*?xH::B1VHA)OPP!E!&uC <<##ND9#&&Lcmm&L#L  >"5'2$##  88+<< )99"47D)rrLs rrz(_ProtocolMeta.__new__..sH%Q:a8%rArGzACannot inherit from Generic[...] or Protocol[...] multiple times.rc3>K|]}|vst|ywrwrIrKs rrz(_ProtocolMeta.__new__..rNrOc32K|]}t|ywrwrIrQs rrz(_ProtocolMeta.__new__..rSrTc3TK|] }|jtju"ywrw)rrirrXs rrz(_ProtocolMeta.__new__..s&4D=B56LLFNN4R=Bs&(rr6rUrVrrc3VK|]!}t|tr t|n|#ywrw)rrrrXs rrz(_ProtocolMeta.__new__..s**#(a'1K&@%(aG#(s')c3dK|](}t|txr|tju*ywrw)rrrirrXs rrz(_ProtocolMeta.__new__..s+YSXa:a-I!6>>2IISXs.0c3FK|]}|tjus|ywrw)rirrXs rrz(_ProtocolMeta.__new__..sJA!6>>2Ias!!)rrTrSrc3pK|].}|tjurdn|tjurdn|0yw).rCN)ri_TypingEllipsis _TypingEmptyras rrz(_ProtocolMeta.__new__..s="3-1*+f.D.D)D#()V-@-@(@""##$-1s46 _subs_tree)!r!rrirrrrrr6rrrrfrrABCMetarupdaterr __setattr__rr rsr r  _abc_registry _abc_cacherrrrr)rrbases namespacerjroriginr orig_basesrlrrnrorpcls_name initial_basesrGrMrs @rrz_ProtocolMeta.__new__s= = )))H%HHO%OH"5)!Dv~~-'(KLL"45 OO/II ,"+!A#BB!% 3 3"=!E!%jG!%jG"g-!%*U5*U!U!%*A5*A!A034D=B4D1D9IS!'*?xH::B1VHA)OPP!E!M!d5kS[[&@&5(*#(**EYSXYYJJJ   FG Hc23eY9=3?D +t 0=C16v @#(D 7;""3-1"33@D M$0#5D !&3##%+%9%9""("3"3t\*AGd4??+<&=&+K&G&I"Krcvt|i|jjdds!t dj D_j rĉjddD]}|ttjfvr|jdk(r|jtvr>t|tjr |j ret|t r|j"tjurt%dt'|t(_fd}djvr|_yy)Nrc3xK|]2}|tuxs$t|txr|jtu4ywrw)r6rr,rrXs rrz)_ProtocolMeta.__init__.. sH'?1>1()H}(@'1!]'C(@'(||x'?(@1>s8:r~rcrdcjjddstSt|ts t dt D]}|jD]w}||jvr|j| tccS;t|di}t|tjsT||vsYt|tsj|jswtcSy)Nrr^rT) r r_rrrrrrrrir`r,rras rrbz+_ProtocolMeta.__init__.._proto_hooks||''=))!%.#$HII/4D % 4==0#}}T2:'5 5!&-d4Er&J &{FNNC $ 3 *5- @ % 2 2!!. .-5rr)rr{r r_rfrerrrgrirrPrOrhr TypingMetarrrrir)r)rrr(rrbrs` rr{z_ProtocolMeta.__init__s G d -f -<<##ND9#&'?14 '?$? KKOD VV^^$<< OO/@@ MM-==&tV->->?DDUDU&t[9 OOv~~='+;;?:,)HII, (  *"5'2$6rctddr trtjryjrt fdt Drytt'S)NrFTc3K|]9}t|xr'tt|d xst|du;ywrwr/)rrr0rGs rrz2_ProtocolMeta.__instancecheck__..;sV?%>Dx.>%gdD$&?@@= 40<>%>r1) rr"rrrr!rrrrI)rGr0rs``rrIz_ProtocolMeta.__instancecheck__3shT>59-d3x1148  ?%8$=?? d=hG GrcD|j0tjdjddvr t dy|j j ddrL|j j dds0tjdjddvryt d |j j ddrMt|sBtjdjddvrtt|+|St d tt|+|S) Nr~rOrrFrr rrrir\r]) rrrrrr r_r"rrrM)rGrrs rrMz_ProtocolMeta.__subclasscheck__Bs*==#--j9AUU#%9:: !!.$7 ))*@$G==#--j9>HH!!677 !!"8$?1$7==#--j9>HH!dEcJJ!>??d=cB Brc t|ts|f}|s4t|tjurt d|j ddtfd|D}|tjtfvrgtd|Dst dt|dtt|t|k7rt dt|d|}|}n|tjtjfvrt|}|}nR|jtjtfvrt d t|t!||t|}|}|j|fnd }|j#|j$||j&zt)|j*||||j,|j. S) Nr5r6r7c36K|]}t|ywrw)rjr:s rrz,_ProtocolMeta.__getitem__..ds?1;q#.sc3PK|]}t|tj ywrwr>r?s rrz,_ProtocolMeta.__getitem__..fr@rAzParameters to z [...] must all be type variablesz[...] must all be uniquez%Cannot subscript already-subscripted rC)rjrrrr)rrrrirBrrQrr6r!rirrrrrrrrOrerr rr )rGrCrjrprependr<s @rrnz_ProtocolMeta.__getitem__Zsfe, eDk=():):(;;PQSS>C???F11I&II#(d 4TUWWs6{#s6{2#(d 4LMOO&,,88"6*V^^X$>>"GT | TUUtV,"6*!%!8tgbG>>$--")DNN":"0"?(-'+)-(,-1-@-@"B Br)NNNNN) rOrPrQrRrr{rIrMrirrrnrrs@rr,r,sC PT> @* 3X H C0   % B % BrceZdZdZdZdZdZy)r6aBase 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_extensions.runtime act as simple-minded runtime protocol that checks only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:: class GenProto(Protocol[T]): def meth(self) -> T: ... rCTct|tur tdtj|j |g|i|S)NzIType Protocol cannot be instantiated; it can be used only as a base class)rr6rrirr rs rrzProtocol.__new__sFSzX%!FGG&&s':':CO$O$O OrN)rOrPrQrRrrrrCrrr6r6s 8   Prr8cht|tr |jstd|d|_|S)a4Mark a protocol class as a runtime protocol, so that it 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 the one-offs in collections.abc such as Hashable. z@@runtime_checkable can be only applied to protocol classes, got T)rr,rrr rs rr8r8s?#}-S5E5E$$'7,- -#'  rr/c:eZdZdZej defdZy)r/rCreturncyrwrCrcs r __index__zSupportsIndex.__index__s rN)rOrPrQrrrintrrCrrr/r/s&   s   r)r r\c tjdjddvr td y#tt f$rYywxYw)Nr~rOrz4TypedDict does not support instance and class checksF)rrrrAttributeError ValueError)rrs r _check_failsrs_ }}Q))*5>HH VWW H +   s/3AAcF|s td|d|dd}}t|i|S)N)TypedDict.__new__(): not enough argumentsrr~)rr )rr(_s r _dict_newrs4GH Hq'484T$V$$rz,($cls, _typename, _fields=None, /, **kwargs)totalc|s td|d|dd}}|r |d|dd}}n=d|vr.|jd}ddl}|jdtdn td|r |\}nBd |vrF ,- - f . "}}Q/99==j*UB| hBe<<3 .!<->? ?rcdtj|jddjd|jDdS)Nztyping_extensions.Annotated[rc32K|]}t|ywrwrirs rrz+_AnnotatedAlias.__repr__..s D2CQa2CrTr)rirrrrrcs rrdz_AnnotatedAlias.__repr__sE263D3DT__3U2VVXyy D$2C2C DDEQH Ircbtjt|jf|jzffSrw)operatorgetitemr0rrrcs r __reduce__z_AnnotatedAlias.__reduce__s1##DOO-0A0AA& rct|tstS|j|jk7ry|j|jk(S)NF)rrrrrrs rrz_AnnotatedAlias.__eq__s>e_5%%%"2"22$$(:(:: :rcDt|j|jfSrw)rrrrcs rrz_AnnotatedAlias.__hash__s$*;*;<= =r) rOrPrQrRr{rrdrrrrrs@rrrns(  ) @  I   ; >rrcDeZdZdZdZdZejdZdZ y)r0aAdd context specific metadata to a type. Example: Annotated[int, runtime_check.Unsigned] indicates to the hypothetical runtime_check module that this type is an unsigned int. Every other consumer of this type can ignore this metadata and treat this type as int. The first argument to Annotated must be a valid type (and will be in the __origin__ field), the remaining arguments are kept as a tuple in the __extra__ field. Details: - It's an error to call `Annotated` with less than two arguments. - Nested Annotated are flattened:: Annotated[Annotated[T, Ann1, Ann2], Ann3] == Annotated[T, Ann1, Ann2, Ann3] - Instantiating an annotated type is equivalent to instantiating the underlying type:: Annotated[C, Ann1](5) == C(5) - Annotated can be used as a generic type alias:: Optimized = Annotated[T, runtime.Optimize()] Optimized[int] == Annotated[int, runtime.Optimize()] OptimizedList = Annotated[List[T], runtime.Optimize()] OptimizedList[int] == Annotated[List[int], runtime.Optimize()] rCctd)Nz&Type Annotated cannot be instantiated.rErrr(s rrzAnnotated.__new__sDE Erct|trt|dkr tdd}t j |d|}t|dd}t ||S)Nr\zUAnnotated[...] should be used with at least two arguments (a type and an annotation).$Annotated[t, ...]: t must be a type.rr~)rrrrrirjr)rrCr<rrs rrEzAnnotated.__class_getitem__sbfe,F a!/009C''q 37FVABZ(H"684 4rc4td|jd)NCannot subclass z .Annotated)rrPrs rrqzAnnotated.__init_subclass__s "3>>"2*= rN) rOrPrQrRrrrirrrErqrCrrr0r0s4 @  F    5  5 rc&t|trt|jSt|tj rQt d|jD}||jk(r|S|j|}|j|_ |S|S)z2Strips the annotations from a given type. c32K|]}t|ywrw)_strip_annotationsrs rrz%_strip_annotations..s!LA"4Q"7rT) rrrrrirkrr r_special)rL stripped_argsrs rrrsu a )%all3 3 a-- .!!L!LLM *++m,C::CLJrctj|||}|r|S|jDcic]\}}|t|c}}Scc}}w)a]Return type hints for an object. This is often the same as obj.__annotations__, but it handles forward references encoded as string literals, adds Optional[t] if a default value equal to None is set and recursively replaces all 'Annotated[T, ...]' with 'T' (unless 'include_extras=True'). The argument may be a module, class, method, or function. The annotations are returned as a dictionary. For classes, annotations include also inherited members. TypeError is raised if the argument is not of a type that can contain annotations, and an empty dictionary is returned if no annotations are present. BEWARE -- the behavior of globalns and localns is counterintuitive (unless you are familiar with how eval() and exec() work). The search order is locals first, then globals. - If no dict arguments are passed, an attempt is made to use the globals from obj (or the respective module's globals for classes), and these are also used as the locals. If the object does not appear to have globals, an empty dictionary is used. - If one dict argument is passed, it is used for both globals and locals. - If two dict arguments are passed, they specify globals and locals, respectively. )rr)rir?rr)rHrrinclude_extrashintkrLs rr?r?sM>$$S8WM K59ZZ\B\TQ%a((\BBBsA cjt|dkDxr$|jdxr|jdS)z3Returns True if name is a __dunder_variable_name__.__)rrendswithrs r _is_dunderrs,4y1}N!6N4==;NNrceZdZdZfdZedZdZd fd ZdZ e jfdZ dZ d Zfd Zd Zd ZxZS) AnnotatedMetazMetaclass for Annotatedc td|Drtdttzt |||||fi|S)Nc3,K|] }|tuywrw)rgrXs rrz(AnnotatedMeta.__new__.. s2Eq1F?ErZr)rfrrJr0rr)rrrrr(rs rrzAnnotatedMeta.__new__ s@2E22 2S^ CDD7?3eYI&I Irc(|jdS)Nr\)rrcs rrzAnnotatedMeta.__metadata__s??$Q' 'rc|\}}}t|tstj|}n|dj |}dj d|D}|d|d|dS)Nrrc32K|]}t|ywrwr)rargs rrz+AnnotatedMeta._tree_repr..s&EHStCyHrTrr)rrrir _tree_reprr)rGtreerrrtp_reprmetadata_reprss rrzAnnotatedMeta._tree_reprsj$( !Cfe, ++F3 )..v6!YY&EH&EENU!G9B~&6a8 8rc|turtSt| ||}t|dtr-|ddtur|dd}|dd}t|||dzfS|S)N)rjrr~rr\)r0rrrr)rGrjrrsub_tp sub_annotrs rrzAnnotatedMeta._subs_treeswy   '$5t$>Jrc|j td|j}t|tr,|dt ur!|d}t|tr |dt ur!t|tr|dS|S)z6Return the class used to create instance of this type.zCCannot get the underlying type of a non-specialized Annotated type.rr~)rrrrrr0)rGrs r _get_conszAnnotatedMeta._get_cons'sz&!BCC??$DT5)d1g.BAwT5)d1g.B$&Aw rct|ts|f}|jt||St|trt |dkr t dd}tj|d|}t|dd}|j|j|jt|jt|f||f|S)Nr\z]Annotated[...] should be instantiated with at least two arguments (a type and an annotation).rrr~)rjrr)rrrrrnrrrirjrrOrerr r)rGrCr<ryrrs rrnzAnnotatedMeta.__getitem__4sfe, *w*622.#f+/!/00=''q 37 ,>> t}}- "'(^" rcf|j}||i|} ||_|S#t$rY|SwxYwrw)r__orig_class__r)rGrr(consresults r__call__zAnnotatedMeta.__call__LsJ>>#D4*6*F (,%M" M s # 00cz|j%t|st|j|St |rw)rrrrr)rGrs r __getattr__zAnnotatedMeta.__getattr__Us2*:d3Ct~~/66 & &rct|s|jdrt| ||y|j t |t |j||y)Nr)rrrrrrsetattrr)rGrvaluers rrzAnnotatedMeta.__setattr__[sM$4??7#;#D%0($T**($6rctd)Nz+Annotated cannot be used with isinstance().rErFs rrIzAnnotatedMeta.__instancecheck__cIJ Jrctd)Nz+Annotated cannot be used with issubclass().rErLs rrMzAnnotatedMeta.__subclasscheck__fr r)NN)rOrPrQrRrpropertyrrrrrirrrnrrrrIrMrrs@rrrsd% J  (  ( 9        .  '  7 K KrrceZdZdZy)r0avAdd 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, the remaining arguments are kept as a tuple in the __metadata__ field. Details: - It's an error to call `Annotated` with less than two arguments. - Nested Annotated are flattened:: Annotated[Annotated[T, Ann1, Ann2], Ann3] == Annotated[T, Ann1, Ann2, Ann3] - Instantiating an annotated type is equivalent to instantiating the underlying type:: Annotated[C, Ann1](5) == C(5) - Annotated can be used as a generic type alias:: Optimized = Annotated[T, runtime.Optimize()] Optimized[int] == Annotated[int, runtime.Optimize()] OptimizedList = Annotated[List[T], runtime.Optimize()] OptimizedList[int] == Annotated[List[int], runtime.Optimize()] NrOrPrQrRrCrrr0r0is r)r )_BaseGenericAlias) GenericAliasct|trtSt|tjt t ttfr |jS|tjurtjSy)a6Get the unsubscripted version of a type. This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar and Annotated. Return None for unsupported types. Examples:: get_origin(Literal[42]) is Literal get_origin(int) is None get_origin(ClassVar[int]) is ClassVar get_origin(Generic) is Generic get_origin(Generic[T]) is Generic get_origin(Union[T, int]) is Union get_origin(List[Tuple[T, T]][int]) == list get_origin(P.args) is P N) rrr0rirkrr ParamSpecArgsParamSpecKwargsrr)rys rr>r>sX b/ *  b6//?P(/; <==  >> !rcVt|tr|jf|jzSt|tj t fr_t|ddry|j}t|tjjur|dturt|dd|df}|Sy)aGet type arguments with all substitutions performed. For unions, basic simplifications used by Union constructor are performed. Examples:: get_args(Dict[str, int]) == (str, int) get_args(int) == () get_args(Union[int, Union[T, int], str][int]) == (int, str) get_args(Union[int, Tuple[T, int]][str]) == (int, Tuple[str, int]) get_args(Callable[[], T][int]) == ([], int) rFrCrNr)rrrrrirkrrr r>rrrEllipsisr)ryrs rr=r=s b/ *MM#boo5 5 b6//> ?r:u-++C"~!9!99c!fH>TCH~s2w/Jrr:)rrceZdZdZy)_TypeAliasFormc d|jzSr`rarcs rrdz_TypeAliasForm.__repr__rerNrOrPrQrdrCrrrr 5rrct|d)&Special marker indicating that an assignment should be recognized as a proper type alias definition by type checkers. For example:: Predicate: TypeAlias = Callable[..., bool] It's invalid when used anywhere except as in the example above.  is not subscriptablerErs rr:r:s4& 5677rceZdZdZy)rc d|jzSr`rarcs rrdz_TypeAliasForm.__repr__rerNrrCrrrrrraSpecial marker indicating that an assignment should be recognized as a proper type alias definition by type checkers. For example:: Predicate: TypeAlias = Callable[..., bool] It's invalid when used anywhere except as in the example above.ceZdZdZdZy)_TypeAliasMetazMetaclass for TypeAliascyNztyping_extensions.TypeAliasrCrcs rrdz_TypeAliasMeta.__repr__0rNrOrPrQrRrdrCrrr$r$s % 1rr$c&eZdZdZdZdZdZdZy)_TypeAliasBaserrCctd)Nz+TypeAlias cannot be used with isinstance().rErFs rrIz _TypeAliasBase.__instancecheck__r rctd)Nz+TypeAlias cannot be used with issubclass().rErLs rrMz _TypeAliasBase.__subclasscheck__ r rcyr&rCrcs rrdz_TypeAliasBase.__repr__ r'rN)rOrPrQrRrrIrMrdrCrrr*r*s   K K 1rr*)rrTrc eZdZdZdZdZdZy) _Immutablez3Mixin to indicate that object should not be copied.rCc|SrwrCrcs r__copy__z_Immutable.__copy__rrc|SrwrC)rGmemos r __deepcopy__z_Immutable.__deepcopy__ rrN)rOrPrQrRrr1r4rCrrr/r/sA   rr/ceZdZdZdZdZy)raQThe args for a ParamSpec object. Given a ParamSpec object P, P.args is an instance of ParamSpecArgs. ParamSpecArgs objects have a reference back to their ParamSpec: P.args.__origin__ is P This type is meant for runtime introspection and has no special meaning to static type checkers. c||_yrwrrGrs rr{zParamSpecArgs.__init__/rrc4|jjdS)Nz.argsrrOrcs rrdzParamSpecArgs.__repr__2soo../u5 5rNrOrPrQrRr{rdrCrrrr#s  % 6rceZdZdZdZdZy)ra[The kwargs for a ParamSpec object. Given a ParamSpec object P, P.kwargs is an instance of ParamSpecKwargs. ParamSpecKwargs objects have a reference back to their ParamSpec: P.kwargs.__origin__ is P This type is meant for runtime introspection and has no special meaning to static type checkers. c||_yrwr7r8s rr{zParamSpecKwargs.__init__Arrc4|jjdS)Nz.kwargsr:rcs rrdzParamSpecKwargs.__repr__Dsoo../w7 7rNr;rCrrrr5s  % 8rrrceZdZdZej ZedZedZ ddddfd Z dZ d Z d Z d Zd Zesd ZxZSxZS)ra'Parameter specification variable. Usage:: P = ParamSpec('P') Parameter specification variables exist primarily for the benefit of static type checkers. They are used to forward the parameter types of one callable to another callable, a pattern commonly found in higher order functions and decorators. They are only valid when used in ``Concatenate``, or s the first argument to ``Callable``. In Python 3.10 and higher, they are also supported in user-defined Generics at runtime. See class Generic for more information on generic types. An example for annotating a decorator:: T = TypeVar('T') P = ParamSpec('P') def add_logging(f: Callable[P, T]) -> Callable[P, T]: '''A type-safe decorator to add logging to a function.''' def inner(*args: P.args, **kwargs: P.kwargs) -> T: logging.info(f'{f.__name__} was called') return f(*args, **kwargs) return inner @add_logging def add_two(x: float, y: float) -> float: '''Add two numbers together.''' return x + y Parameter specification variables defined with covariant=True or contravariant=True can be used to declare covariant or contravariant generic types. These keyword arguments are valid, but their actual semantics are yet to be decided. See PEP 612 for details. Parameter specification variables can be introspected. e.g.: P.__name__ == 'T' P.__bound__ == None P.__covariant__ == False P.__contravariant__ == False Note that only parameter specification variables defined in global scope can be pickled. ct|Srw)rrcs rrzParamSpec.argss  & &rct|Srw)rrcs rr(zParamSpec.kwargss "4( (rNF)boundrYr[cft||g||_t||_t||_|rt j|d|_nd|_ tjdjjdd}|dk7r||_yy#ttf$rd}Y!wxYw)NzBound must be a type.r~rOrtyping_extensions)rr{rObool __covariant____contravariant__rirj __bound__rrrr_rrrP)rGrrBrYr[def_modrs rr{zParamSpec.__init__s G dV $ DM!%iD %)-%8D "!'!3!3E;R!S!% --*4488ZP--").#J/  s/BB0/B0c`|jrd}n|jrd}nd}||jzS)N+-~)rFrGrO)rGprefixs rrdzParamSpec.__repr__s2!!''DMM) )rc,tj|Srw)rgrrcs rrzParamSpec.__hash__s??4( (rc ||uSrwrCrs rrzParamSpec.__eq__s 5= rc|jSrw)rOrcs rrzParamSpec.__reduce__s == rcyrwrCr's rrzParamSpec.__call__ rc0||vr|j|yyrw)appendrGrjs r_get_type_varszParamSpec._get_type_varssu$LL&%r)rOrPrQrRrirrrrr(r{rdrrrrPEP_560rWrrs@rrrNsp, ^NN  '  '  )  )+/%u *$ * ) ! !  'rrceZdZer ej Zn ejZdZejZ fdZ dZ dZ dZedZesdZxZSxZS)_ConcatenateGenericAliasFc@t||||_||_yrw)rr{rr )rGrrrs rr{z!_ConcatenateGenericAlias.__init__s G T "$DO DMrctj|jddjfd|jDdS)Nrrc3.K|] }|ywrwrC)rrrs rrz4_ConcatenateGenericAlias.__repr__..s!K]c*S/]sr)rirrrr )rGrs @rrdz!_ConcatenateGenericAlias.__repr__sF**J!$//23 !KT]]!KKLAO PrcDt|j|jfSrw)rrr rcs rrz!_ConcatenateGenericAlias.__hash__s$--89 9rcyrwrCr's rrz!_ConcatenateGenericAlias.__call__rSrc:td|jDS)Nc3bK|]'}t|tjtfs$|)ywrw)rrirr)rrys rrz:_ConcatenateGenericAlias.__parameters__..s&*rjfnni=X.Y]s%//)rr rcs rrz'_ConcatenateGenericAlias.__parameters__s !]] rcx|jr.|jr!tj|j|yyyrw)rrrirWrVs rrWz'_ConcatenateGenericAlias._get_type_varss.??t':':))$*=*=uE(;?r)rOrPrQrXrirkr _TypingBaserrrr{rdrrrrrWrrs@rrZrZsg ,,I**I !  P  :       FrrZc|dk(r tdt|ts|f}t|dts tddtfd|D}t ||S)NrCz&Cannot take a Concatenate of no types.rzAThe last parameter to Concatenate should be a ParamSpec variable.z/Concatenate[arg, ...]: each arg must be a type.c3JK|]}tj|ywrwr9r:s rrz'_concatenate_getitem..sF:av))!S1:r )rrrrrZ)rGrr<s @r_concatenate_getitemrfsjR@AA j% ( ] jni 0./ / ;CF:FFJ #D* 55rct||S)&Used in conjunction with ``ParamSpec`` and ``Callable`` to represent a higher order function which adds, removes or transforms parameters of a callable. For example:: Callable[Concatenate[int, P], int] See PEP 612 for detailed information. rfrs rrrs$D*55rceZdZdZdZy)_ConcatenateFormc d|jzSr`rarcs rrdz_ConcatenateForm.__repr__ rerct||Srwrirs rrnz_ConcatenateForm.__getitem__ 'j9 9rNrorCrrrkrk s  5 :rrkrhceZdZdZdZy)_ConcatenateAliasMetazMetaclass for Concatenate.cyNztyping_extensions.ConcatenaterCrcs rrdz_ConcatenateAliasMeta.__repr__!2rNr(rCrrrprps ( 3rrpc,eZdZdZdZdZdZdZdZy)_ConcatenateAliasBaserhrCctd)Nz-Concatenate cannot be used with isinstance().rErFs rrIz'_ConcatenateAliasBase.__instancecheck__3KL Lrctd)Nz-Concatenate cannot be used with issubclass().rErLs rrMz'_ConcatenateAliasBase.__subclasscheck__6rwrcyrrrCrcs rrdz_ConcatenateAliasBase.__repr__9rsrct||Srwrirs rrnz!_ConcatenateAliasBase.__getitem__<rnrN) rOrPrQrRrrIrMrdrnrCrrruru$s$   M M 3 :rrur;ceZdZdZy)_TypeGuardFormc d|jzSr`rarcs rrdz_TypeGuardForm.__repr__GrerNrrCrrr|r|Frrr|cbtj||d}tj||fS) Special typing form used to annotate the return type of a user-defined type guard function. ``TypeGuard`` only accepts a single type argument. At runtime, functions marked this way should return a boolean. ``TypeGuard`` aims to benefit *type narrowing* -- a technique used by static type checkers to determine a more precise type of an expression within a program's code flow. Usually type narrowing is done by analyzing conditional code flow and applying the narrowing to a block of code. The conditional expression here is sometimes referred to as a "type guard". Sometimes it would be convenient to use a user-defined boolean function as a type guard. Such a function should use ``TypeGuard[...]`` as its return type to alert static type checkers to this intention. Using ``-> TypeGuard`` tells the static type checker that for a given function: 1. The return value is a boolean. 2. If the return value is ``True``, the type of its argument is the type inside ``TypeGuard``. For example:: def is_str(val: Union[str, float]): # "isinstance" type guard if isinstance(val, str): # Type of ``val`` is narrowed to ``str`` ... else: # Else, type of ``val`` is narrowed to ``float``. ... Strict type narrowing is not enforced -- ``TypeB`` need not be a narrower form of ``TypeA`` (it can even be a wider form) and this may lead to type-unsafe results. The main reason is to allow for things like narrowing ``List[object]`` to ``List[str]`` even though the latter is not a subtype of the former, since ``List`` is invariant. The responsibility of writing type-safe type guards is left to the user. ``TypeGuard`` also works with type variables. For more information, see PEP 647 (User-Defined Type Guards). r)rirjrkrls rr;r;Js4X!!*6P.QR##D4'22rceZdZdZdZy)r|c d|jzSr`rarcs rrdz_TypeGuardForm.__repr__|rercvtj||jd}tj||fS)Nz accepts only a single typerhrls rrnz_TypeGuardForm.__getitem__s9%%j)- 4O&PRD''tg6 6rNrorCrrr|r|zrprrcFeZdZdZdZd dZdZdZfdZdZ dZ xZ S) _TypeGuardrrtc ||_yrwrtrxs rr{z_TypeGuard.__init__r|rct|}|j.|tj||jddddSt |jddd)Nr~z accepts only a single type.TrSrrrs rrnz_TypeGuard.__getitem__smt*C}}$6--d!ll12.//KLN!%''s||AB/00NOP Prctj|j||}||jk(r|St||dSrrrs rrz_TypeGuard._eval_typerrct|}|j&|dtj|jdz }|Srrrs rrdz_TypeGuard.__repr__rrcVtt|j|jfSrwrrcs rrz_TypeGuard.__hash__rrct|tstS|j|j|jk(S||uSrw)rrrrurs rrz_TypeGuard.__eq__s9eZ0%%}}(}}665= rrwrrs@rrrs/) V"   Q 2    > !rrr cpeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z ejd Zy ) _SpecialForm)rbrR_getitemcV||_|j|_|j|_yrw)rrOrbrR)rGrs rr{z_SpecialForm.__init__ s!#DM ))DJ"??DLrc8|dvr |jSt|)N>rOrQ)rbr)rGrms rrz_SpecialForm.__getattr__s 33zz! & &rctd|)NrrE)rGrs r__mro_entries__z_SpecialForm.__mro_entries__s.th78 8rc d|jSr`rarcs rrdz_SpecialForm.__repr__s' |4 4rc|jSrwrarcs rrz_SpecialForm.__reduce__s :: rctd|)NzCannot instantiate rE)rGrrzs rrz_SpecialForm.__call__s1$:; ;rc,tj||fSrwriUnionrs r__or__z_SpecialForm.__or__!s<<e , ,rc,tj||fSrwrrs r__ror__z_SpecialForm.__ror__$s<<t , ,rct|d)Nz! cannot be used with isinstance()rErFs rrIz_SpecialForm.__instancecheck__'tf$EFG Grct|d)Nz! cannot be used with issubclass()rErLs rrMz_SpecialForm.__subclasscheck__*rrc&|j||Srw)rrs rrnz_SpecialForm.__getitem__-s==z2 2rN)rOrPrQrr{rrrdrrrrrIrMrirrrnrCrrrrsU4  +  '  9 5  < - - H H    3  3rrct|d)Used to spell the type of "self" in classes. Example:: from typing import Self class ReturnsSelf: def parse(self, data: bytes) -> Self: ... return self r rE)rGrCs rr r 1s4& 5677rc eZdZdZdZdZdZy)_SelfrrCct|d)Nz" cannot be used with isinstance().rErFs rrIz_Self.__instancecheck__Rtf$FGH Hrct|d)Nz" cannot be used with issubclass().rErLs rrMz_Self.__subclasscheck__UrrNrNrCrrrrBs   I IrrRequiredceZdZdZy)_ExtensionsSpecialFormc d|jzSr`rarcs rrdz_ExtensionsSpecialForm.__repr__`rerNrrCrrrr_rrrcvtj||jd}tj||fS)A special typing construct to mark a key of a total=False TypedDict as required. For example: class Movie(TypedDict, total=False): title: Required[str] year: int m = Movie( title='The Matrix', # typechecker error if key is omitted year=1999, ) There is no runtime checking that a required key is actually provided when instantiating a related TypedDict. rgrhrls rrrcs7"!!* #VCLL$457 7rctj|j||}||jk(r|St||dSrrrs rrz_MaybeRequired._eval_typerrct|}|j1|djt j |jz }|S)Nz[{}])rrdrurrirrs rrdz_MaybeRequired.__repr__sA "A}}(V]]6#4#4T]]#CDDHrcVtt|j|jfSrwrrcs rrz_MaybeRequired.__hash__rrct|t|stS|j|j|jk(S||uSrw)rrrrurs rrz_MaybeRequired.__eq__s=eT$Z0%%}}(}}665= rrw) rOrPrQrr{rnrrdrrrrs@rrrs&!   7 2    > !rrceZdZdZy) _RequiredrNrrCrrrrs rrceZdZdZy) _NotRequiredrNrrCrrrrs rr)NNF)rrcollections.abcrrri version_inforXrrrrr__all__extendrr@_FinalTypingBaserBrrUrVrWrXrZrrrr^rsr1r2r3rr_overload_dummyr5r!rr"r%r$r#r+rMutableSequencer)r'_collections_abcrrrr,r-_aliasMutableMappingr*Dictrr(r&r4r9r<rrhrr"r6r#r)rr,rsrjr8r7r/r.rr__text_signature__rrr rOrPrRr0r?rrkrrrr>r=r ImportErrorrr:rrr$r*rrr/rrrZrrrfrrkrprur;r|rr rrrrrrrrrCrrrs)     2A ) + K/ <+ Z  NN?@ 6:HJF++4J(t$HFNN3V^^DV^^Dv~~f- 6>>*D 9 ?? 67 0 0! 4 > LLEbqV#7V((7 w L ME 1!((1!f  E 67 LLE.  69nnGbqV#:v**$:9 1 2G,!6**$,!\T"G(( ??{{ [6       $$ $$  67 LLEN !!6#9#9!#<0!''N&& 6() 44I"fnnT2"    6=!$$K#""2A&22&-- 7 7"bBK Tk--v/D/DRV/L 6'33 T 69nnG P+%%++af%2+:M:M P 6:H [*% Q;'')>)>r2v)F3$-- Q 6#$**Nt,fnnT8^.L#9*== .. {{$$ = &X  6:H )@7 7$]$]]$@1@B BB$P]$PP 6&'00   6?#((My   I % $RI $(*=X*HN%*=*=X{TGR8I#I @ 6;  I**N,,O %>&..d%>N44l "CLO`K**`KD m FBQ7"""JH 1,,'00 6;  IbqV#5,,D5 8 8 bqV#5,,D5{ $) *I1**1 100NRV1,T*I 6?#((M,,O6 6$8*8& 6;  I f'Df'Tv}%(F4(FX 6 6 6=!$$K%>>bqV# 6 6 bqV#:6..d:#   K3 1 13 : 7 7*?&*:6(d3K 6;  IbqV#5,,D5,3,3\ bqV#7,,D7) + I\M!V,,DM!^&I 66 ;;DbqV#(3v}}D(3T88 I''tI, t D 6:H$$KbqV#5!4!4D533&33  bqV#7++47  H"    K #!00#!J N$ "  ~T  t$HT*KI 1"001 ,++ ,s$-h4hhhh10h1