źh86ddlZddlZddlZddlZddlZddlZddlZddlZgdZ dZ e Z e ZefdZejdkrdZnejdkrdZnd Zdd ZejZejd Zejd Zejd ZejddZejddZejdkrddlmZnGdde ZGddeZejZeedrejdddkrejZn"GddejdZ e dd Zejdkrej!Z!nd!Z!d"Z"eed#rej#Z#n"Gd$d%ejdZ$e$d#d& Z#ej%Z%eed'rej&Z&ej'Z'ej(Z(n-ej)ej*ej)e+Z,d(Z&d)Z'd*Z(ej-Z-ej.Z.ej/Z/ej0Z0ej1Z1ej2Z2ej3Z3ej4Z4ej5Z5eed+rej6Z6nej7ej6eefZ6ej8Z8ej9Z9ej:Z:ej;Z;ej<Zd-Z?d.Z@d/ZAeed0rejBZBn%d1ZCGd2d3ejDZEGd4d0eEZBeed5rejFZFnd6ZFeFZGeed7rejHZHneFGd8d7eBZHeed9rejIZIejJZJejKZKn`d:ZLd;ZMdZOd?eO_NGd@dAe ZJeJdBe+fiZIePeI_QdCeI_ReedAr ejJeJfZSneJfZSdDZKeedErejTZTndFZTeed9rejUZUnddlZddlZdGZVddIZUeedJrejWZWejXZXn"GdKdLejYdZXGdMdJZWejdddkrejZZZej[Z[n: ddNlm\Z\n#e]$r ejYZ\YnwxYw ddOlm^Z_n#e]$r ejYZ_YnwxYwdPZZdQZ[eedRrej`Z`nVejdddkr!GdSdTejdZaeadUZ`n"GdVdTejdZaeadRdW Z`GdXdYZbGdZd[ejebdZeed\rejcZcejdZdn)Gd]d^ZeGd_d\eeZcGd`daeeZdeedbrGdcdbejfebdZfnGdddbegebZfeedesGdfdgegZhejidhZjeederejkZkejhZhnAejdddkr eadiZkn"GdjdkejdZleldedl ZkeedmrejmZmnVejdddkr!GdndoejdZnendpZmn"GdqdoejdZnendmdr ZmGdsdtejodZeedurejpZpn edvZpeedwrejqZqn edxZqeedyrejrZrn edzZreed9rejsZsejtZtnnejdddkr,Gd{d|ejdZueud}Zseud~Ztn/GddejdZvevd9d Zsevdd ZteedrejwZwnejdddkr9GddejdZxGddejYdZyexdZwdZzn:GddejYdZyGddejdZ{e{dd ZwdZzeedrGddej|ebdZ|nGddebZ|eedrej}Z}ndedefdZ}eedrej~Z~nderderfdZ~eedrejZneddHdHdddedededejejej-ejejdejffdfdejdejegeff dZeedrejZn,ejdejdejfZdedefdZeedsee_ee_ejdkr ejZdSdZddZejZehdZGdde ZddZejjRe_Re eddiZejdkrde_NdZee_dS)N)8AnyClassVar ConcatenateFinal LiteralString ParamSpec ParamSpecArgsParamSpecKwargsSelfTypeTypeVar TypeVarTupleUnpack Awaitable AsyncIterator AsyncIterable CoroutineAsyncGeneratorAsyncContextManagerChainMapContextManagerCounterDeque DefaultDict NamedTuple OrderedDict TypedDict SupportsIndex Annotated assert_never assert_typeclear_overloadsdataclass_transform get_overloadsfinalget_args get_originget_type_hintsIntVar is_typeddictLiteralNewTypeoverloadoverrideProtocol reveal_typeruntimeruntime_checkableText TypeAlias TypeGuard TYPE_CHECKINGNeverNoReturnRequired NotRequiredTc |st|d|tur=t|dr|jst|dt |j}t |}||krnt|dr;d|jD}t d|D}|dkr |||z krdStd||krdnd d |d |d |dS) zCheck correct count for parameters of a generic cls (internal helper). This gives a nice error message in case of count mismatch. z is not a generic class__parameters__c0g|]}t||S) _is_unpack.0ps /builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/pkg_resources/_vendor/typing_extensions.py z"_check_generic..fs#MMMz!}}M!MMMc3@K|]}t|tVdSN) isinstancerr@s rC z!_check_generic..gs,PP 1l ; ;PPPPPPrErNzToo manyfewz parameters for z ; actual z , expected ) TypeError_markerhasattrr<lensum)cls parameterselenalen num_tv_tupless rC_check_genericrVYsE 93777888 ws,-- =S5G =s;;;<< <3%&& z??D t|| 3( ) ) MMS%7MMMJPPZPPPPPM!!}0D(D(D;vv%;;QT;;#';;48;;<< < |rE) cdt|tjtjtjfSrG)rHtyping _GenericAlias_types GenericAlias UnionTypets rC_should_collect_from_parametersraos) $f&96;KL   rErW cNt|tjtjfSrG)rHrZr[r\r]r_s rCrarats!f2F4GHIIIrEcFt|tjo|j SrG)rHrZr[_specialr_s rCraraws!V122E1:~ErEc&| tj}g|D]o}t||r(|vr$t|s|t |r&fd|jDptS)zCollect all type variable contained in types in order of first appearance (lexicographic order). For example:: _collect_type_vars((T, List[S, T])) == (T, S) Ncg|]}|v| Sr>r>)rAr`tvarss rCrDz&_collect_type_vars..sHHH%!rE) rZr rHr?appendraextendr<tuple)types typevar_typesr`ris @rC_collect_type_varsro{s  E JJ q- ( (  UNN1   LLOOO *1 - - J LLHHHHQ%5HHH I I I <<rETKTVTT_co) covariantT_contra) contravariant)rW )rc(eZdZfdZfdZxZS)_AnyMetacv|turtdt|S)Nz6typing_extensions.Any cannot be used with isinstance())rrLsuper__instancecheck__)selfobj __class__s rCr|z_AnyMeta.__instancecheck__s3s{{ XYYY77,,S11 1rEcZ|turdStS)Nztyping_extensions.Any)rr{__repr__)r}rs rCrz_AnyMeta.__repr__s(s{{..77##%% %rE)__name__ __module__ __qualname__r|r __classcell__rs@rCryrysQ 2 2 2 2 2  & & & & & & & & &rEryc"eZdZdZfdZxZS)raqSpecial type indicating an unconstrained type. - Any is compatible with every type. - Any assumed to have all methods. - All values assumed to be instances of Any. Note that all the above statements are true from the point of view of static type checkers. At runtime, Any should not be used with instance checks. cn|turtdtj|g|Ri|S)NzAny cannot be instantiated)rrLr{__new__)rQargskwargsrs rCrz Any.__new__sAczz <==="577?3888888 8rE)rrr__doc__rrrs@rCrrsB   9 9 9 9 9 9 9 9 9rEr) metaclassr)rWceZdZdZdZdS) _FinalFormcd|jzSNztyping_extensions._namer}s rCrz_FinalForm.__repr__'$*4 4rEchtj||jd}tj||fSN accepts only a single type.rZ _type_checkrr[r}rRitems rC __getitem__z_FinalForm.__getitem__;%j)-&Q&Q&QSSD'tg66 6rENrrrrrr>rErCrr2 5 5 5 7 7 7 7 7rEr)_rootaWA 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.)doccF d|_n#ttf$rYnwxYw|S)aThis 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. The decorator sets the ``__final__`` attribute to ``True`` on the decorated object to allow runtime introspection. T) __final__AttributeErrorrL)fs rCr%r%s>, AKK *    D   s  c*tj|SrG)rZr )names rCr)r)s >$  rEr+ceZdZdZdZdS) _LiteralFormcd|jzSrrrs rCrz_LiteralForm.__repr__ rrEc,tj||SrG)rZr[r}rRs rCrz_LiteralForm.__getitem__s'j99 9rENrr>rErCrr s2 5 5 5 : : : : :rEraoA 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.r$ct|d|} |t|j|j|jj<n#t $rYnwxYwtS)aDecorator for overloaded functions/methods. In a stub file, place two or more stub definitions for the same function in a row, each decorated with @overload. For example: @overload def utf8(value: None) -> None: ... @overload def utf8(value: bytes) -> bytes: ... @overload def utf8(value: str) -> bytes: ... In a non-stub file (i.e. a regular .py file), do the same but follow it with an implementation. The implementation should *not* be decorated with @overload. For example: @overload def utf8(value: None) -> None: ... @overload def utf8(value: bytes) -> bytes: ... @overload def utf8(value: str) -> bytes: ... def utf8(value): # implementation goes here The overloads for a function can be retrieved at runtime using the get_overloads() function. __func__)getattr_overload_registryrr__code__co_firstlinenor_overload_dummy)funcrs rCr-r--sn< D*d + +  q| ,Q^ < )      D s*> A  A ct|d|}|jtvrgSt|j}|j|vrgSt ||jS)z6Return all defined overloads for *func* as a sequence.r)rrrrlistvalues)rrmod_dicts rCr$r$Usg D*d + + <1 1 1I%al3 > ) )IHQ^,3355666rEc8tdS)z$Clear all overloads in the registry.N)rclearr>rErCr"r"`s  """""rEr) CallablerIterableIteratorrrHashableSized Container Collection Reversiblerrcnt}|jddD]}|jdvr t|di}t |jt |zD]0}|ds|dvr||1|S)N)r/Generic__annotations___abc_)__abstractmethods__r __weakref__ _is_protocol_is_runtime_protocol__dict____args__ __slots____next_in_mro__r< __origin____orig_bases__ __extra__ __tree_hash__r__subclasshook____init__rr_MutableMapping__marker_gorg) set__mro__rrrrkeys startswithadd)rQattrsbase annotationsattrs rC_get_protocol_attrsrs EEE CRC    =3 3 3 d$5r:: ++--..k6F6F6H6H1I1II DOOG,, >F2F2F $  LrEcTtfdtDS)Nc3TK|]"}tt|dV#dSrG)callabler)rArrQs rCrIz,_is_callable_members_only..s7WWdxT40011WWWWWWrE)allrrQs`rC_is_callable_members_onlyrs0 WWWW>QRU>V>VWWW W WWrEc Jg}d|jvrtj|j}d}|jD]Z}t |tjr>|jtjtfvr$|jj }|td|j }[||}nt|}t||ksYd fd|D}d d|D}td|d|d |d |}t||_ dS) zHelper function used in Protocol.__init_subclass__ and _TypedDictMeta.__new__. The contents of this function are very similar to logic found in typing.Generic.__init_subclass__ on the CPython main branch. rNzECannot inherit from Generic[...] and/or Protocol[...] multiple types., c3>K|]}|vt|VdSrGstr)rAr`gvarsets rCrIz+_maybe_adjust_parameters..s3"M"MaAW.s("9"9a3q66"9"9"9"9"9"9rEzSome type variables (z) are not listed in [])rrZrorrHr[rrr/rrLr<rjoinrl) rQrigvarsrthe_basetvarsets_varss_argsrs @rC_maybe_adjust_parametersrs{ E3<'')#*<== & , ,D4!566 ,O'AAA?3$#@AAA+ =EE%jjG%jjGg%%"M"M"M"M5"M"M"MMM"9"95"9"9"999!G!G!G2:!G!G=C!G!G!GHHHEuCrEr/cLt|jrtddS)Nz Protocols cannot be instantiated)typerrLr}rrs rC_no_initrs/ :: " @>?? ? @ @rEceZdZfdZxZS) _ProtocolMetactddrtrtjrdSjr+t fdt DrdStS)NrFTc3K|]E}t|o0tt|d pt|duVFdSrG)rNrr)rArrQinstances rCrIz2_ProtocolMeta.__instancecheck__..sy== x..=$WS$%=%=>>><$//t;======rE) rr issubclassrrrrr{r|)rQrrs``rCr|z_ProtocolMeta.__instancecheck__sS.%88 *3// x1377 t =====$7s#;#;=====  477,,X66 6rE)rrrr|rrs@rCrrs8 7 7 7 7 7 7 7 7 7rErcPeZdZdZdZdZfdZejdZ dZ xZ S)r/aBase 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: ... r>Tcv|turtdt|S)NzIType Protocol cannot be instantiated; it can only be used as a base class)r/rLr{r)rQrkwdsrs rCrzProtocol.__new__s=h!FGGG77??3'' 'rEct|ts|f}|s&|tjurt d|jddtfd|D}|t urtd|Dsed}t||tjr%|dz }t||tj%t d|dzd ||tt|t|krt d n#t||t|j tj ||S) NzParameter list to z[...] cannot be emptyz*Parameters to generic types must be types.c3BK|]}tj|VdSrGrZrrArBmsgs rCrIz-Protocol.__class_getitem__..s0FF!6-a55FFFFFFrEc3JK|]}t|tjVdSrG)rHrZr r@s rCrIz-Protocol.__class_getitem__..s.IIQ:a88IIIIIIrErzBParameters to Protocol[...] must all be type variables. Parameter z is z.Parameters to Protocol[...] must all be unique)rHrlrZTuplerLrr/rr rOrrVr<r[)rQparamsir s @rC__class_getitem__zProtocol.__class_getitem__sfe,, #  Rc55P)9PPPRRR>CFFFFvFFFFFFhII&IIIII>A$VAY??Q%VAY??#=&'!e==17==>>>s6{{##s6{{22#HJJJ3 sFC0B,C,CDDD'V44 4rEc^djvrtjjv}ntjjv}|rt dt jdds#tdjD_ fd}djvr|_ j sdSjD]k}|ttjfvsT|j dkr|j tvs;t|t r|j st dt#|lt$_dS) Nrz!Cannot inherit from plain Genericrc3(K|] }|tuVdSrG)r/)rAbs rCrIz-Protocol.__init_subclass__..3s&&L&LqH}&L&L&L&L&L&LrEcjddstStdds7t jdjddvrtStdts7t jdjddvrtStdt|tstd tD]}|j D]r}||jvr|j| tccSnWt|d i}t|tjr"||vrt|tr |jrn stcSd S) NrrFrr)abc functoolszBInstance and class checks can only be used with @runtime protocolsz._proto_hook6s|''==*))s$:EBB;}Q''1*=AUUU--#%:;;;055C}Q''1*=AUUU--#%BCCC!%..J#$HIII/44 . .D % . .4=00#}T2:'5 5 5 5 5 5!E&-d4Er&J&J &{FNCC" $ 3 3 *5- @ @!4 % 2!4"E----trErzcollections.abcz5Protocols can only inherit from other protocols, got )rrZrr __bases__rLrranyrrobjectrr_PROTO_WHITELISTrHrreprrr)rQrrerrorr!rs` rC__init_subclass__zProtocol.__init_subclass__(sq3<//#*<<#-7 E CDDD $S ) ) )<##ND99 M#&&L&Lcm&L&L&L#L#L      >"55'2$#   E E 888+<<< )999"477:<@returncdSrGr>rs rC __index__zSupportsIndex.__index__s DrEN)rrrrrabstractmethodintr.r>rErCrrsB  s        rEr9c tjdjddvrtdn#tt f$rYnwxYwdS)Nrr)rrrZz4TypedDict does not support instance and class checksF)rrrrLr ValueError)rQr s rC _check_failsr3sq }Q)*5>HHH VWWW H  +    D us03AAc`|std|d|dd}}t|i|S)N)TypedDict.__new__(): not enough argumentsrr)rLdict)rr_s rC _dict_newr8sB IGHH Hq'484T$V$$$rEz,($cls, _typename, _fields=None, /, **kwargs)totalc|std|d|dd}}|r|d|dd}}nJd|vr7|d}ddl}|dtdntd|r7 |\}n#t $r$td t |dzd wxYwd |vrJt |dkr7|d }ddl}|d tdnd}||}n|rtd dt|i} tj dj dd|d<n#tt f$rYnwxYwt|d||S)Nr5rr _typenamez5Passing '_typename' as keyword argument is deprecatedr) stacklevelzGTypedDict.__new__() missing 1 required positional argument: '_typename'z?TypedDict.__new__() takes from 2 to 3 positional arguments but z were given_fieldsz3Passing '_fields' as keyword argument is deprecatedz@TypedDict takes either a dict or keyword arguments, but not bothrr__main__rr>r9)rLpopwarningswarnDeprecationWarningr2rOr6rrrrr_TypedDictMeta)r:rrr7typenamerAfieldsnss rC_typeddict_newrHs( IGHH Hq'484  5!!Wd122hdHH F " "zz+..H OOO MMQ,  < < < <455 5   . . . .!-FF  -,-- - f . "}Q//9==j*UUB|   +    D hBe<<<.s.FF:dFN33FFFFFFrErz?TypedDict('Name', {f0: t0, f1: t1, ...}); each t must be a typecBi|]\}}|tj|Sr>r )rAntpr s rC z*_TypedDictMeta.__new__..s9381b6%b#..rE__required_keys__r>__optional_keys__r __total__)rHr8r{rr6r#rZrr"rritemsrupdaterr'rr&r9rr:r frozensetrSrTrNrU)rQrrKrGr:tp_dictrown_annotations required_keys optional_keysrannotation_keyannotation_typeannotation_originannotation_argsr rs @rCrz_TypedDictMeta.__new__s/3k.A.ANNyByM ggooc4$"==GFFFFFFF 2%+^T$:!(111K ff%6;;OSC True is_typeddict(Union[list, str]) # => False )rHrl_TYPEDDICT_TYPESrQs rCr*r*?s"e$455666rEr!c|S)aAssert (to the type checker) that the value is of the given type. When the 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 At runtime this returns the first argument unchanged and otherwise does nothing. r>)__val__typs rCr!r!Qs  rEcdt|trt|jSt |dr/|jt t fvrt|jdSt|tj r@td|jD}||jkr|S| |St tdr_t|tj rEtd|jD}||jkr|Stj |j|St tdrdt|tjrJtd|jD}||jkr|Stjt"j|S|S)z=Strips Annotated, Required and NotRequired from a given type.rrc34K|]}t|VdSrG _strip_extrasrAas rCrIz _strip_extras..o*!G!Gq-"2"2!G!G!G!G!G!GrEr]c34K|]}t|VdSrGrjrls rCrIz _strip_extras..trnrEr^c34K|]}t|VdSrGrjrls rCrIz _strip_extras..yrnrE)rH_AnnotatedAliasrkrrNr9r:rrZr[rl copy_withrmr]r^rreduceoperatoror_)r` stripped_argss rCrkrkhs a ) ) / .. . 1l # # 0 ;8O(O(O A// / a- . . .!!G!GAJ!G!G!GGGM **;;}-- - 5. ) ) CjErj)rAkr`s rCrRz"get_type_hints..s&===1=##===rE)rNrZr(rV)r~rxryrzhints rCr(r(s|@ 6; ' ' R(hDD(xQQQD  K== ====rErc@eZdZdZfdZdZdZdZdZdZ xZ S)rqaKRuntime 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. ct|tr|j|z}|j}t ||||_dSrG)rHrq __metadata__rr{r)r}originmetadatars rCrz_AnnotatedAlias.__init__sR&/22 +!.9* GG  VV , , , (D   rEcft|dksJ|d}t||jS)Nrr)rOrqr)r}rnew_types rCrrz_AnnotatedAlias.copy_withs5v;;!####ayH"8T->?? ?rEcdtj|jddd|jDdS)Nztyping_extensions.Annotated[rc34K|]}t|VdSrG)r&rls rCrIz+_AnnotatedAlias.__repr__..s( D DQa D D D D D DrEr)rZ _type_reprrrrrs rCrz_AnnotatedAlias.__repr__s\H63DT_3U3UHHyy D D$2C D D DDDHHH IrEcHtjt|jf|jzffSrG)rtgetitemrrrrs rC __reduce__z_AnnotatedAlias.__reduce__s)#DO-0AA& rEc~t|tstS|j|jkrdS|j|jkS)NF)rHrqrrrr}r s rC__eq__z_AnnotatedAlias.__eq__s@e_55 &%%%"222u$(:: :rEc8t|j|jfSrG)hashrrrs rC__hash__z_AnnotatedAlias.__hash__s$*;<== =rE) rrrrrrrrrrrrrs@rCrqrqs   ) ) ) ) ) @ @ @  I I I     ; ; ; > > > > > > >rErqcBeZdZdZdZdZejdZdZ dS)raAdd 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()] r>c td)Nz&Type Annotated cannot be instantiated.rLrQrrs rCrzAnnotated.__new__sDEE ErEcTt|trt|dkrtdtt f}t |d|vr |d}nd}tj|d|}t|dd}t||S)NrzUAnnotated[...] should be used with at least two arguments (a type and an annotation).rz$Annotated[t, ...]: t must be a type.r) rHrlrOrLrrr'rZrrq)rQrallowed_special_formsrr rs rCrzAnnotated.__class_getitem__sfe,, 0F a!/000&.u$5 !&)$$(===<+F1Is;;VABBZ((H"6844 4rEc2td|jd)NCannot subclass z .Annotated)rLrrs rCr(zAnnotated.__init_subclass__s$=3>=== rEN) rrrrrrrZr)rr(r>rErCrrsf  @  F F F   5 5   5     rE)_BaseGenericAlias)r]ct|trtSt|tjt t ttfr|j S|tj ur tj SdS)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) rHrqrrZr[_typing_GenericAliasrr r rrrds rCr'r''sg b/ * *   b6/1EGX(/; < < !=   > !trEcft|tr|jf|jzSt|tjt frjt|ddrdS|j}t|tj j ur.|dturt|dd|df}|SdS)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) rfFr>rNr)rHrqrrrZr[rrrr' collectionsrrEllipsisr)rQress rCr&r&?s b/ * * 6M#bo5 5 b6/1EF G G r:u-- r+C"~~!999c!fH>T>TCH~~s2w/JrrEr4ceZdZdZdS)_TypeAliasFormcd|jzSrrrs rCrz_TypeAliasForm.__repr__\rrENrrrrr>rErCrr[# 5 5 5 5 5rErc&t|d)a&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 subscriptablerrs rCr4r4_s4666777rEceZdZdZdS)rcd|jzSrrrs rCrz_TypeAliasForm.__repr__orrENrr>rErCrrnrrEaSpecial 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.ceZdZdZdZdZdS) _DefaultMixinzMixin for TypeVarLike defaults.r>ct|ttfr td|D|_dS|rt j|d|_dSd|_dS)Nc3@K|]}tj|dVdS)Default must be a typeNr )rAds rCrIz)_DefaultMixin.__init__..sD&8&8*+'-&8rErCrrs.))I$$$$$rErc4eZdZdZdZddddddfd ZxZS)r zType variable.rZNF)boundrtrvrinfer_variancec8tj|g|R|||dt||||_ t jdjdd}n#ttf$rd}YnwxYw|dkr ||_ dSdSN)rrtrvrrr?typing_extensions) r{rr__infer_variance__rrrrrr2r) r}rrrtrvrr constraintsdef_modrs rCrzTypeVar.__init__s  6  6 65I'4 6 6 6 6tW---"0 mA&&044ZLLGG +   GGG  ) ) )%DOOO * )s-A22BBrrrrrrrs@rCr r sZJ15 e&&&&&&&&&&&rEr r c"eZdZdZdZdZdZdS) _Immutablez3Mixin to indicate that object should not be copied.r>c|SrGr>rs rC__copy__z_Immutable.__copy__KrEc|SrGr>)r}memos rC __deepcopy__z_Immutable.__deepcopy__rrEN)rrrrrrrr>rErCrrs=AA         rErc$eZdZdZdZdZdZdS)r aQThe 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||_dSrGrr}rs rCrzParamSpecArgs.__init__ $DOOOrEc |jjdS)Nz.argsrrrs rCrzParamSpecArgs.__repr__so.555 5rEcZt|tstS|j|jkSrG)rHr rrrs rCrzParamSpecArgs.__eq__s*e]33 &%%?e&66 6rENrrrrrrrr>rErCr r sK  % % % 6 6 6 7 7 7 7 7rEc$eZdZdZdZdZdZdS)r a[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||_dSrGrrs rCrzParamSpecKwargs.__init__rrEc |jjdS)Nz.kwargsrrs rCrzParamSpecKwargs.__repr__so.777 7rEcZt|tstS|j|jkSrG)rHr rrrs rCrzParamSpecKwargs.__eq__s*e_55 &%%?e&66 6rENrr>rErCr r sK  % % % 8 8 8 7 7 7 7 7rEr rc2eZdZdZdZdddddfd ZxZS)rz!Parameter specification variable.rZNFrrtrvrc6t||||t|| tjdjdd}n#ttf$rd}YnwxYw|dkr ||_ dSdSr r{rrrrrrrr2rr}rrrtrvrrrs rCrzParamSpec.__init__s GG  T)+8  : : :  " "4 1 1 1 -**488ZPP"J/    ---").-s-A11BBrrs@rCrrsW// *.%u! * * * * * * * * * * *rEceZdZdZejZedZedZ dddddfd Z dZ d Z d Z d Zd ZxZS) 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. c t|SrG)r rs rCrzParamSpec.args0s && &rEc t|SrG)r rs rCrzParamSpec.kwargs4s"4(( (rENFrct|g||_t||_t||_|rt j|d|_nd|_t|| tj dj dd}n#ttf$rd}YnwxYw|dkr ||_dSdS)NzBound must be a type.rrr?r)r{rrbool __covariant____contravariant__rZr __bound__rrrrrrr2rrs rCrzParamSpec.__init__8s GG  dV $ $ $ DM!%iD %)-%8%8D " &!'!3E;R!S!S!%  " "4 1 1 1 -**488ZPP"J/    ---").-s-CCCcB|jrd}n |jrd}nd}||jzS)N+-~)rrr)r}prefixs rCrzParamSpec.__repr__Ls8! ' DM) )rEc6t|SrGr$rrs rCrzParamSpec.__hash__U??4(( (rEc ||uSrGr>rs rCrzParamSpec.__eq__X 5= rEc|jSrGrrs rCrzParamSpec.__reduce__[ = rEcdSrGr>rs rC__call__zParamSpec.__call___ DrE)rrrrrZr rpropertyrrrrrrrrrrs@rCrrs, , ^N  ' '  '  ) )  )+/%u! * * * * * * *( * * * ) ) ) ! ! ! ! ! !       rErcXeZdZejZdZfdZdZdZ dZ e dZ xZ S)_ConcatenateGenericAliasFcft|||_||_dSrG)r{rrr)r}rrrs rCrz!_ConcatenateGenericAlias.__init__ns- GG  T " " "$DO DMMMrEctj|jddfd|jDdS)Nrrc3.K|]}|VdSrGr>)rAargrs rCrIz4_ConcatenateGenericAlias.__repr__..vs+!K!Kc**S//!K!K!K!K!K!KrEr)rZrrrr)r}rs @rCrz!_ConcatenateGenericAlias.__repr__ssd*J!z$/22OO !K!K!K!KT]!K!K!KKKOOO PrEc8t|j|jfSrG)rrrrs rCrz!_ConcatenateGenericAlias.__hash__xs$-899 9rEcdSrGr>rs rCrz!_ConcatenateGenericAlias.__call__|rrEc>td|jDS)Nc3\K|]'}t|tjtf#|V(dSrG)rHrZr r)rArQs rCrIz:_ConcatenateGenericAlias.__parameters__..sLjfni=X.Y.YrE)rlrrs rCr<z'_ConcatenateGenericAlias.__parameters__s2!] rE)rrrrZr[rrfrrrrrr<rrs@rCrrfs(  ! ! ! ! !  P P P  : : :            rErc |dkrtdt|ts|f}t|dtstddtfd|D}t ||S)Nr>z&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.c3BK|]}tj|VdSrGr r s rCrIz'_concatenate_getitem..s0FFav)!S11FFFFFFrE)rLrHrlrr)r}rRr s @rC_concatenate_getitemrsR@AAA j% ( (# ] jni 0 0/.// / ;CFFFF:FFFFFJ #D* 5 55rEc"t||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. rrs rCrrs$D*555rEceZdZdZdZdS)_ConcatenateFormcd|jzSrrrs rCrz_ConcatenateForm.__repr__rrEc"t||SrGrrs rCrz_ConcatenateForm.__getitem__s'j99 9rENrr>rErCrrs2 5 5 5 : : : : :rErrr5ceZdZdZdS)_TypeGuardFormcd|jzSrrrs rCrz_TypeGuardForm.__repr__rrENrr>rErCrrrrErc^tj||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)rZrr[rs rCr5r5s5X!*.S.S.STT#D4'222rEceZdZdZdZdS)rcd|jzSrrrs rCrz_TypeGuardForm.__repr__rrEchtj||jd}tj||fS)Nz accepts only a single typerrs rCrz_TypeGuardForm.__getitem__s;%j)-&P&P&PRRD'tg66 6rENrr>rErCrrrrErcneZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z ejd Zd S) _SpecialForm)rr_getitemcD||_|j|_|j|_dSrG)r rrr)r}rs rCrz_SpecialForm.__init__3s  %  rEc6|dvr|jSt|)N>rr)rr)r}rs rC __getattr__z_SpecialForm.__getattr__8s$ / / /: T"""rEc&td|)Nrr)r}rKs rC__mro_entries__z_SpecialForm.__mro_entries__>s3433444rEcd|jSrrrs rCrz_SpecialForm.__repr__As0DJ000rEc|jSrGrrs rCrz_SpecialForm.__reduce__Ds zrEc&td|)NzCannot instantiate rr}rrs rCrz_SpecialForm.__call__Gs6d66777rEc*tj||fSrGrZUnionrs rC__or__z_SpecialForm.__or__Js|D%K((rEc*tj||fSrGrrs rC__ror__z_SpecialForm.__ror__Ms|E4K((rEc&t|d)Nz! cannot be used with isinstance()r)r}r~s rCr|z_SpecialForm.__instancecheck__P4BBBCCCrEc&t|d)Nz! cannot be used with issubclass()r)r}rQs rCraz_SpecialForm.__subclasscheck__SrrEc.|||SrG)r rs rCrz_SpecialForm.__getitem__Vs}}T:...rEN)rrrrrrrrrrrrr|rarZr)rr>rErCr r 0s0I''' ### 555111888))))))DDDDDD /////rEr rc&t|d)aDRepresents an arbitrary literal string. Example:: from typing_extensions import LiteralString def query(sql: LiteralString) -> ...: ... query("SELECT * FROM table") # ok query(f"SELECT * FROM {input()}") # not ok See PEP 675 for details. rrr}rs rCrr^s"4666777rEr c&t|d)zUsed to spell the type of "self" in classes. Example:: from typing import Self class ReturnsSelf: def parse(self, data: bytes) -> Self: ... return self rrr!s rCr r us4666777rEr7c&t|d)aThe 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_extensions 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 rrr!s rCr7r7s04666777rEceZdZdZdS)_ExtensionsSpecialFormcd|jzSrrrs rCrz_ExtensionsSpecialForm.__repr__rrENrr>rErCr%r%rrEr%chtj||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. rrrs rCr9r9s6"!*.Y.Y.YZZ#D4'222rEchtj||jd}tj||fS)`A special typing construct to mark a key of a TypedDict as potentially missing. For example: class Movie(TypedDict): title: str year: NotRequired[int] m = Movie( title='The Matrix', # typechecker error if key is omitted year=1999, ) rrrs rCr:r:s6!*.Y.Y.YZZ#D4'222rEceZdZdZdZdS) _RequiredFormcd|jzSrrrs rCrz_RequiredForm.__repr__rrEchtj||jd}tj||fSrrrs rCrz_RequiredForm.__getitem__rrENrr>rErCr,r,s2 5 5 5 7 7 7 7 7rEr,r(r:r*rceZdZdZdS)_UnpackSpecialFormcd|jzSrrrs rCrz_UnpackSpecialForm.__repr__rrENrr>rErCr0r0rrEr0ceZdZejZdS _UnpackAliasNrrrrZr rr>rErCr4r4N rEr4c^tj||jd}t||fS)A special typing construct to unpack a variadic type. For example: Shape = TypeVarTuple('Shape') Batch = NewType('Batch', int) def add_batch_axis( x: Array[Unpack[Shape]] ) -> Array[Batch, Unpack[Shape]]: ... rrZrrr4rs rCrrs3!*.Y.Y.YZZD4'***rEc,t|tSrGrHr4r~s rCr?r?#|,,,rEceZdZejZdSr3r5r>rErCr4r4r6rEceZdZdZdZdS) _UnpackFormcd|jzSrrrs rCrz_UnpackForm.__repr__rrEc^tj||jd}t||fSrr9rs rCrz_UnpackForm.__getitem__!s8%j)-&Q&Q&QSSDtg.. .rENrr>rErCr@r@s2 5 5 5 / / / / /rEr@r8c,t|tSrGr;r<s rCr?r?3r=rErc(eZdZdZddfd ZxZS)rzType variable tuple.Nrc.t|t|| tjdjdd}n#ttf$rd}YnwxYw|dkr ||_ dSdSNrrr?rr)r}rrrrs rCrzTypeVarTuple.__init__=s GG  T " " "  " "4 1 1 1 -**488ZPP"J/    ---").-s-A--BBrrs@rCrr:sK"",0 * * * * * * * * * * *rEcPeZdZdZejZdZdddZdZ dZ dZ d Z d Z dS) raType variable tuple. Usage:: Ts = TypeVarTuple('Ts') In the same way that a normal type variable is a stand-in for a single type such as ``int``, a type variable *tuple* is a stand-in for a *tuple* type such as ``Tuple[int, str]``. Type variable tuples can be used in ``Generic`` declarations. Consider the following example:: class Array(Generic[*Ts]): ... The ``Ts`` type variable tuple here behaves like ``tuple[T1, T2]``, where ``T1`` and ``T2`` are type variables. To use these type variables as type parameters of ``Array``, we must *unpack* the type variable tuple using the star operator: ``*Ts``. The signature of ``Array`` then behaves as if we had simply written ``class Array(Generic[T1, T2]): ...``. In contrast to ``Generic[T1, T2]``, however, ``Generic[*Shape]`` allows us to parameterise the class with an *arbitrary* number of type parameters. Type variable tuples can be used anywhere a normal ``TypeVar`` can. This includes class definitions, as shown above, as well as function signatures and variable annotations:: class Array(Generic[*Ts]): def __init__(self, shape: Tuple[*Ts]): self._shape: Tuple[*Ts] = shape def get_shape(self) -> Tuple[*Ts]: return self._shape shape = (Height(480), Width(640)) x: Array[Height, Width] = Array(shape) y = abs(x) # Inferred type is Array[Height, Width] z = x + x # ... is Array[Height, Width] x.get_shape() # ... is tuple[Height, Width] c#K|jVdSrG) __unpacked__rs rC__iter__zTypeVarTuple.__iter__ys# # # # # #rENrEc||_t|| tjdjdd}n#ttf$rd}YnwxYw|dkr||_ t||_ dSrG) rrrrrrrrr2rrrJ)r}rrrs rCrzTypeVarTuple.__init__|s DM  " "4 1 1 1 -**488ZPP"J/    ---") &t D   s-AA('A(c|jSrGrrs rCrzTypeVarTuple.__repr__rrEc6t|SrGrrs rCrzTypeVarTuple.__hash__rrEc ||uSrGr>rs rCrzTypeVarTuple.__eq__rrEc|jSrGrrs rCrzTypeVarTuple.__reduce__rrEc,d|vrtddS)Nrz&Cannot subclass special typing classesrrs rCr(zTypeVarTuple.__init_subclass__s$d"" HIII#"rE)rrrrrZr rrKrrrrrr(r>rErCrrJs) ) XN  $ $ $-1 - - - - - ! ! ! ) ) ) ! ! ! ! ! ! J J J J JrEr0__objr,cftdt|jtj|S)aReveal the inferred type of a variable. 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 it unchanged. zRuntime type is )file)printrrrstderr)rRs rCr0r0s0 9e!599 KKKK rEr __argc td)a1Assert to the type checker 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. zExpected code to be unreachable)AssertionErrorrWs rCr r s(>???rEr#r>) eq_default order_defaultkw_only_defaultfield_specifiersr[r\r]r^.rc "fd}|S)aDecorator that marks a function, class, or metaclass as providing dataclass-like behavior. Example: from typing_extensions import dataclass_transform _T = TypeVar("_T") # Used on a decorator function @dataclass_transform() def create_model(cls: type[_T]) -> type[_T]: ... return cls @create_model class CustomerModel: id: int name: str # Used on a base class @dataclass_transform() class ModelBase: ... class CustomerModel(ModelBase): id: int name: str # Used on a metaclass @dataclass_transform() class ModelMeta(type): ... class ModelBase(metaclass=ModelMeta): ... class CustomerModel(ModelBase): id: int name: str Each of the ``CustomerModel`` classes defined in this example will now behave similarly to a dataclass created with the ``@dataclasses.dataclass`` decorator. For example, the type checker will synthesize an ``__init__`` method. The arguments to this decorator can be used to customize this behavior: - ``eq_default`` indicates whether the ``eq`` parameter is assumed to be True or False if it is omitted by the caller. - ``order_default`` indicates whether the ``order`` parameter is assumed to be True or False if it is omitted by the caller. - ``kw_only_default`` indicates whether the ``kw_only`` parameter is assumed to be True or False if it is omitted by the caller. - ``field_specifiers`` specifies a static list of supported classes or functions that describe fields, similar to ``dataclasses.field()``. At runtime, this decorator records its arguments in the ``__dataclass_transform__`` attribute on the decorated object. See PEP 681 for details. c"d|_|S)N)r[r\r]r^r)__dataclass_transform__) cls_or_fnr[r^r]rr\s rC decoratorz&dataclass_transform..decorators)(!.#2$4 11I - rEr>)r[r\r]r^rrcs````` rCr#r#s=L         rEr._F)rc|S)aIndicate that a method is intended to override a method in a base class. Usage: class Base: def method(self) -> None: ... pass class Child(Base): @override def method(self) -> None: super().method() When this decorator is applied to a method, the type checker will validate that it overrides a method 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. See PEP 698 for details. r>rZs rCr.r.&s , rEc tjdjddS#tt f$rYdSwxYw)Nrrr?)rrrrrr2r>rErC_callerrgQsQ =##-11*jII I +   44 s,/AAcd|D}d|D}tj||||}|x|_|j_tjdkr||_|S)Ncg|]\}}|Sr>r>rArPr`s rCrDz!_make_nmtuple..Xs&&&1!&&&rEc Hi|]\}}|tj|d|d S)zfield z annotation must be a typer rjs rCrRz!_make_nmtuple..YsG***1a&,Q0V0V0V0VWW***rEdefaultsmodulerb)r namedtuplerrr version_info _field_types)rrmrnrmrFrnm_tpls rC _make_nmtuplersWs&&&&&**#(*** 'f19&JJJBMM!?  f $ $"-F  rE>rrrceZdZdZdS)_NamedTupleMetac Pt|vsJ|D](}|tur|tjurtd)t d|D}di}g}|D]^}|vr|||r@td|dt|dkrdndd d |_t||j fd |Dd  }||_ tj|vr*tjj j } t| |_ D]F} | tvrt!d| z| t"vr | |jvrt'|| | Gtj|vr||S)Nz3can only inherit from a NamedTuple type and Genericc3:K|]}|turtn|VdSrG) _NamedTuplerlrNs rCrIz*_NamedTupleMeta.__new__..ns0SST4;#6#6%%DSSSSSSrErzNon-default namedtuple field z cannot follow default fieldrs rc g|] }| Sr>r>)rArPrGs rCrDz+_NamedTupleMeta.__new__..{s777A"Q%777rErrlz&Cannot overwrite NamedTuple attribute )rxrZrrLrlrrjrOrrsrVr"rr classmethod_prohibited_namedtuple_fieldsr_special_namedtuple_fieldsr>setattrr() rQrErKrGrrm default_names field_namerr class_getitemkeys ` rCrz_NamedTupleMeta.__new__hs0%'''' O O{**t6>/I/I#MOOOSSUSSSSSEFF,b11EM# C C ##!((4444"C#%BJ%B%B.1-.@.@1.D.Dss"%B%B(,yy'?'?%B%BCCCC #+%+--7777777,'F %F ~&& & @ I +6}+E+E( 2 2777()QTW)WXXX :::s&.?X?XFCC111~&&((***MrEN)rrrrr>rErCrurugs#" " " " " rEruc ||}n|rtdt||tS)NzIEither list of fields or keywords can be provided to NamedTuple, not both)rn)rVrLrsrg) __typename__fieldsrs rCrrsT  ||~~HH  HGHH HZ'))DDDDrEr)rWz$(typename, fields=None, /, **kwargs)c(t|vsJtfSrG)rrx)rKs rC_namedtuple_mro_entriesrsU""""~rErG)NNF)r>)rrcollections.abcrrtrrmr\rZ__all__PEP_560r GenericMetar$rMrVrpraror8r rprqrrrsrurryrrNrr rr%r)r+rrr-r$r" defaultdictpartialr6rr rrrrrrrrr_aliasrrrr,r3r6r%rrrr/rABCMetarr2r1rrrDr*r3r8__text_signature__rHrrrrcr!r(rkrrqr[r'r&r ImportErrorr]rr4rrr r rrrrr)rrrr5r_Finalrr r7r9r:r%r,rr0r4r?r@rr0r r#rrrrr.rdrrgrs _prohibitedr~rXrrurrxrrr>rErCrs,   B B B J  &((*1<<<<*w     JJJJFFF* ?FN3V^DV^Dv~f--- 6>*D 9 9 9w & & & & &4 & & & 9 9 9 9 9 9 9 9 9 ? 767M 0! 4 > > LEE77777V(7777 Jw L M M MEw LEE @    7692nGG:::::v*$::::l9 1 2 2 2G( 76?##?#H(M,OO10 +1488&&&P 7 7 7### {     $ $  &0  76=!!C$KK &- 7"bBBK . ?& . {$ === &XXX%&%&%&R 76:Z$HH@@@77777 777$$$$$$]$$$$F 76&''0     76?## (MM 76:}7 I*N&LL   %%% $RI $(*=*=*=*=*=X*HN%================~{TGR88I#I <wv'((-"1>B*, 7 7 7 76=!!$KK     76:G>*NNLLL0(>(>(>(>X 76;f I,OO%>%>%>%>%>&.d%>%>%>%>N88888888zBQB7"""JHH1,,,,,,, 111"014??????? 444%3400 76;%* IIbqbV##55555,D5555 8 8^ 8 855555,D5555{ $) * * *I $ $ $ $ $ $ $ $ &&&&&fnm4&&&&. 76?##;7(M,OO77777 777.77777*7770 76;|*****F$m4*****.bbbbbD-bbbLwv}%%4B 6 6 6 76=!!& $K%>bqbV## 6 6^ 6 6:::::6.d::::#"     K 76;m  IIbqbV##55555,D5555,3,3^,3,3^77777,D7777) + + + I^(/(/(/(/(/6=(/(/(/(/V 76?##8(MM88\8& 7668 ;DD88\8" 7678 LEE88\84 76:U H$KKbqbV##55555!4D5555333&3333"77777+47777}    H" -     K  7687- ]FFbqbV##55555V05555#####v+4#### + + +----#####v+4####/////f)////[     F--- 76>""aJ * * * * *v*M * * * * * NJNJNJNJNJ}NJNJNJb 76=!!$KK1( 76>""@&LL@E@e@@@@. 76())R 4 # % OOOOO O !, LVZ0&/#vz/2RR S   O*O !a OOOOd 76:HH FOCO$D E E EBr@wv~&&+ 2F*F w"JJJ    %+$6!!*+X+X+X!Y!Y#####$###JEEEE *2J,, b"EEK  6!!(N %"9Js$P P,+P,0P77 QQ