grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026B Ø@Z°? £Ñã>@s¸dZddlZddlmZmZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl m Z mZmZddddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;dd?d@dAdBg>Zd¬dDdE„ZdFdG„ZdHdI„ZdJdK„ZdLdM„ZdNdO„ZgZdPdQ„ZdRdS„ZGdTdU„dUƒZGdVdW„dWƒZGdXdY„dYeedCdZ�Zedd[d\�Zed?d]d\�Zedd^d\�Zedd_d\�Z ed d`d\�Z!Gdad„dedCdZ�Z"Gdbd „d eedCdZ�Z#d3d d1d5d6d0d2d ddcœ Z$ddde„Z%Gdfdg„dgedCdZ�Z&Gdhdi„die&dCdZ�Z'Gdjd „d ƒZ(Gdkdl„dlƒZ)Gdmdn„dnƒZ*dod:„Z+dpdq„Z,e j-e j.e j/e j0e eefZ1d­drd;„Z2dsd=„Z3dtd>„Z4dudv„Z5dwd@„Z6Gdxdy„dye7ƒZ8Gdzd{„d{e(e8d|�Z9e#d}ƒZ:e#d~ƒZ;e#dƒZe#dƒdCd��Z?e#d„dCd…�Z@e#d†dCe7d‡�ZAe#d9eBeCƒZDd®dˆd‰„ZEeEejjFdŠƒZFeEejjGe=ƒZGeEejjHe=e@e>fƒZHeEejjIe=ƒZIeEejjJe=ƒZJeEejjKe=ƒZKeEejjLe=ƒZLeEejjMe=ƒZMeEejjNdŠƒZNeEejjOe=ƒZOeEejjPe=ƒZPe'ejjQdŠdCd‹�ZQdŒeQ_eEejjRe=ƒZSeEejjTe:ƒZTeEejjUe;e?fƒZUeEejjVe;efƒZreEejjse=e@fƒZseEe7eAd�d��Ztd‘et_Gd’d,„d,e9ƒZuGd“d+„d+e9ƒZvGd”d*„d*e9ƒZwGd•d)„d)e9ƒZxGd–d(„d(e9e=ƒZyGd—d-„d-e9e=ƒZzd˜d™„Z{dšZ|d›Z}Gdœd�„d�e7ƒZ~Gdžd7„d7e~d|�ZdŸd<„Z€eCZ�d�Z‚Gd d¡„d¡e(eDƒZƒGd¢d£„d£eƒeBƒZ„Gd¤d¥„d¥eƒeCƒZ…Gd¦d§„d§ƒZ†e‡d¨e†_‡e†e jˆe†j‡<eEe j‰eDƒZ‰eEe jŠeDƒZŠGd©dª„dªƒZ e‡d«e _‡e e jˆe j‡<dS)¯a§ The typing module: Support for gradual typing as defined by PEP 484. At large scale, the structure of the module is following: * Imports and exports, all public names should be explicitly added to __all__. * Internal helper functions: these should never be used in code outside this module. * _SpecialForm and its instances (special forms): Any, NoReturn, ClassVar, Union, Optional * Two classes whose instances can be type arguments in addition to types: ForwardRef and TypeVar * The core of internal generics API: _GenericAlias and _VariadicGenericAlias, the latter is currently only used by Tuple and Callable. All subscripted types like X[int], Union[int, str], etc., are instances of either of these classes. * The public counterpart of the generics API consists of two classes: Generic and Protocol (the latter is currently private, but will be made public after PEP 544 acceptance). * Public helper functions: get_type_hints, overload, cast, no_type_check, no_type_check_decorator. * Generic aliases for collections.abc ABCs and few additional protocols. * Special types: NewType, NamedTuple, TypedDict (may be added soon). * Wrapper submodules for re and io related types. éN)ÚabstractmethodÚabstractproperty)ÚWrapperDescriptorTypeÚMethodWrapperTypeÚMethodDescriptorTypeÚAnyÚCallableÚClassVarÚ ForwardRefÚGenericÚOptionalÚTupleÚTypeÚTypeVarÚUnionÚ AbstractSetÚ ByteStringÚ ContainerÚContextManagerÚHashableÚ ItemsViewÚIterableÚIteratorÚKeysViewÚMappingÚ MappingViewÚMutableMappingÚMutableSequenceÚ MutableSetÚSequenceÚSizedÚ ValuesViewÚ AwaitableÚ AsyncIteratorÚ AsyncIterableÚ CoroutineÚ CollectionÚAsyncGeneratorÚAsyncContextManagerÚ ReversibleÚ SupportsAbsÚ SupportsBytesÚSupportsComplexÚ SupportsFloatÚ SupportsIntÚ SupportsRoundÚChainMapÚCounterÚDequeÚDictÚ DefaultDictÚListÚ OrderedDictÚSetÚ FrozenSetÚ NamedTupleÚ GeneratorÚAnyStrÚcastÚget_type_hintsÚNewTypeÚ no_type_checkÚno_type_check_decoratorÚNoReturnÚoverloadÚTextÚ TYPE_CHECKINGTcCsÂttf}|r|tf}|dkr&tdƒSt|tƒr8t|ƒSt|tƒrZ|j|krZt |›d�ƒ‚t|t ƒrp|t t fks||ttfkrŒt d|›d�ƒ‚t|tt tfƒr |St|ƒs¾t |›d|d›d�ƒ‚|S)aóCheck that the argument is a type, and return it (internal helper). As a special case, accept None and return type(None) instead. Also wrap strings into ForwardRef instances. Consider several corner cases, for example plain special forms like Union are not valid, while Union[int, str] is OK, etc. The msg argument is a human-readable error message, e.g:: "Union[arg, ...]: arg should be a type." We append the repr() of the actual value (truncated to 100 chars). Nz is not valid as type argumentzPlain z Got z.100Ú.)r Ú _Protocolr ÚtypeÚ isinstanceÚstrr Ú _GenericAliasÚ __origin__Ú TypeErrorÚ _SpecialFormrrArÚcallable)ÚargÚmsgÚ is_argumentZinvalid_generic_forms©rRú+/opt/alt/python37/lib64/python3.7/typing.pyÚ _type_checkqs$      rTcCsRt|tƒr,|jdkr|jS|j›d|j›�S|dkr8dSt|tjƒrJ|jSt|ƒS)a;Return the repr() of an object, special-casing types (internal helper). If obj is a type, we return a shorter version than the default type.__repr__, based on the module and qualified name, which is typically enough to uniquely identify a type. For everything else, we fall back on repr(obj). ÚbuiltinsrE.z...)rHrGÚ __module__Ú __qualname__ÚtypesÚ FunctionTypeÚ__name__Úrepr)ÚobjrRrRrSÚ _type_repr’s   r]cs`g‰xR|D]J}t|tƒr*|ˆkr*ˆ |¡t|tƒr |js ˆ ‡fdd„|jDƒ¡q WtˆƒS)z®Collect all type variable contained in types in order of first appearance (lexicographic order). For example:: _collect_type_vars((T, List[S, T])) == (T, S) csg|]}|ˆkr|‘qSrRrR)Ú.0Út)ÚtvarsrRrSú °sz&_collect_type_vars..)rHrÚappendrJÚ_specialÚextendÚ__parameters__Útuple)rXr_rR)r`rSÚ_collect_type_vars¥s  rgcCsšt|tƒs|St|jƒ}x\t|jƒD]N\}}t|tƒrbx:t|ƒD]\}}||kr@||||<q@Wq$t|||ƒ||<q$W|jtkrŒtt |ƒS|  t |ƒ¡S)zjSubstitute type variables 'tvars' with substitutions 'subs'. These two must have the same length. ) rHrJÚlistÚ__args__Ú enumeraterÚ _subs_tvarsrKrrfÚ copy_with)Útpr`ZsubsZnew_argsÚarOÚiZtvarrRrRrSrk´s     rkc Cs^|jst|›d�ƒ‚t|ƒ}t|jƒ}||krZtd||kr>dnd›d|›d|›d|›�ƒ‚dS) zŠCheck correct count for parameters of a generic cls (internal helper). This gives a nice error message in case of count mismatch. z is not a generic classzToo ZmanyZfewz parameters for z ; actual z , expected N)rerLÚlen)ÚclsÚ parametersZalenZelenrRrRrSÚ_check_genericÇs  rscCsÒg}xn|D]f}t|tƒr0|jtkr0| |j¡q t|tƒrft|ƒdkrf|dtkrf| |dd…¡q | |¡q Wt |ƒ}t|ƒt|ƒkrÊg}x(|D] }||kr–| |¡|  |¡q–W|}|rÊt |ƒ‚t|ƒS)zyAn internal helper for Union creation and substitution: flatten Unions among parameters, then remove duplicates. réN) rHrJrKrrdrirfrprbÚsetÚremoveÚAssertionError)rrÚparamsÚpZ all_paramsZ new_paramsr_rRrRrSÚ_remove_dups_flattenÔs" "   rzcs4t ¡ˆƒ‰t ˆj¡t ˆ¡‡‡fdd„ƒ}|S)zInternal wrapper caching __getitem__ of generic types with a fallback to original function for non-hashable arguments. cs*y ˆ||ŽStk rYnXˆ||ŽS)N)rL)ÚargsÚkwds)ÚcachedÚfuncrRrSÚinnerøs  z_tp_cache..inner)Ú functoolsÚ lru_cacheÚ _cleanupsrbÚ cache_clearÚwraps)r~rrR)r}r~rSÚ _tp_cacheñs  r…csbt|tƒr| ˆˆ¡St|tƒr^t‡‡fdd„|jDƒƒ}||jkrH|S| |¡}|j|_|S|S)z…Evaluate all forward reverences in the given type t. For use of globalns and localns see the docstring for get_type_hints(). c3s|]}t|ˆˆƒVqdS)N)Ú _eval_type)r^rn)ÚglobalnsÚlocalnsrRrSú sz_eval_type..)rHr Ú _evaluaterJrfrirlrc)r_r‡rˆZev_argsÚresrR)r‡rˆrSr†s     r†c@seZdZdZdZdd„ZdS)Ú_FinalzMixin to prohibit subclassing)Ú __weakref__cOsd|krtdƒ‚dS)NÚ_rootz&Cannot subclass special typing classes)rL)Úselfr{r|rRrRrSÚ__init_subclass__sz_Final.__init_subclass__N)rZrVrWÚ__doc__Ú __slots__r�rRrRrRrSrŒsrŒc@s eZdZdZdd„Zdd„ZdS)Ú _Immutablez3Mixin to indicate that object should not be copied.cCs|S)NrR)r�rRrRrSÚ__copy__sz_Immutable.__copy__cCs|S)NrR)r�ZmemorRrRrSÚ __deepcopy__!sz_Immutable.__deepcopy__N)rZrVrWr‘r”r•rRrRrRrSr“sr“cspeZdZdZdZ‡fdd„Zdd„Zdd„Zd d „Zd d „Z d d„Z dd„Z dd„Z dd„Z edd„ƒZ‡ZS)rMzhInternal indicator of special typing constructs. See _doc instance attribute for specific docs. )Ú_nameÚ_doccsBt|ƒdkr6t|dtƒr6t|dtƒr6td|›�ƒ‚tƒ |¡S)z£Constructor. This only exists to give a better error message in case someone tries to subclass a special typing object (not a good idea). érrtzCannot subclass )rprHrIrfrLÚsuperÚ__new__)rqr{r|)Ú __class__rRrSrš,s  z_SpecialForm.__new__cCs||_||_dS)N)r–r—)r�ÚnameÚdocrRrRrSÚ__init__9sz_SpecialForm.__init__cCst|tƒstS|j|jkS)N)rHrMÚNotImplementedr–)r�ÚotherrRrRrSÚ__eq__=s z_SpecialForm.__eq__cCs t|jfƒS)N)Úhashr–)r�rRrRrSÚ__hash__Bsz_SpecialForm.__hash__cCs d|jS)Nztyping.)r–)r�rRrRrSÚ__repr__Esz_SpecialForm.__repr__cCs|jS)N)r–)r�rRrRrSÚ __reduce__Hsz_SpecialForm.__reduce__cOstd|›�ƒ‚dS)NzCannot instantiate )rL)r�r{r|rRrRrSÚ__call__Ksz_SpecialForm.__call__cCst|›d�ƒ‚dS)Nz! cannot be used with isinstance())rL)r�r\rRrRrSÚ__instancecheck__Nsz_SpecialForm.__instancecheck__cCst|›d�ƒ‚dS)Nz! cannot be used with issubclass())rL)r�rqrRrRrSÚ__subclasscheck__Qsz_SpecialForm.__subclasscheck__csÀ|jdkr t|dƒ}t||fƒS|jdkrŠ|dkr:tdƒ‚t|tƒsJ|f}d‰t‡fdd„|Dƒƒ}t|ƒ}t|ƒd kr€|d St||ƒS|jd kr®t|d ƒ}t|t dƒfSt|›d �ƒ‚dS)Nr z"ClassVar accepts only single type.rrRz Cannot take a Union of no types.z)Union[arg, ...]: each arg must be a type.c3s|]}t|ˆƒVqdS)N)rT)r^ry)rPrRrSr‰_sz+_SpecialForm.__getitem__..rtrr z#Optional[t] requires a single type.z is not subscriptable) r–rTrJrLrHrfrzrprrG)r�rrÚitemrOrR)rPrSÚ __getitem__Ts$         z_SpecialForm.__getitem__)rZrVrWr‘r’ršržr¡r£r¤r¥r¦r§r¨r…rªÚ __classcell__rRrR)r›rSrM%s rM)rŽa`Special 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 or class checks. )r�aSpecial 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. a3Special type construct to mark class variables. An annotation wrapped in ClassVar indicates that a given attribute is intended to be used as a class variable and should not be set on instances of that class. Usage:: class Starship: stats: ClassVar[Dict[str, int]] = {} # class variable damage: int = 10 # instance variable ClassVar accepts only types and cannot be further subscribed. Note that ClassVar is not a class itself, and should not be used with isinstance() or issubclass(). a'Union type; Union[X, Y] means either X or Y. To define a union, use e.g. Union[int, str]. Details: - The arguments must be types and there must be at least one. - None as an argument is a special case and is replaced by type(None). - Unions of unions are flattened, e.g.:: Union[Union[int, str], float] == Union[int, str, float] - Unions of a single argument vanish, e.g.:: Union[int] == int # The constructor actually returns int - Redundant arguments are skipped, e.g.:: Union[int, str, int] == Union[int, str] - When comparing unions, the argument order is ignored, e.g.:: Union[int, str] == Union[str, int] - You cannot subclass or instantiate a union. - You can use Optional[X] as a shorthand for Union[X, None]. zEOptional type. Optional[X] is equivalent to Union[X, None]. c@s>eZdZdZdZddd„Zdd„Zdd „Zd d „Zd d „Z dS)r z-Internal wrapper to hold a forward reference.)Ú__forward_arg__Ú__forward_code__Ú__forward_evaluated__Ú__forward_value__Ú__forward_is_argument__TcCsnt|tƒstd|›�ƒ‚yt|ddƒ}Wn"tk rJtd|›�ƒ‚YnX||_||_d|_d|_||_ dS)Nz*Forward reference must be a string -- got zÚevalz/Forward reference must be an expression -- got F) rHrIrLÚcompileÚ SyntaxErrorr¬r­r®r¯r°)r�rOrQÚcoderRrRrSrž½s zForwardRef.__init__cCsj|jr||k rd|dkr(|dkr(i}}n|dkr6|}n |dkrB|}tt|j||ƒd|jd�|_d|_|jS)Nz*Forward references must evaluate to types.)rQT)r®rTr±r­r°r¯)r�r‡rˆrRrRrSrŠÊs   zForwardRef._evaluatecCs>t|tƒstS|jr2|jr2|j|jko0|j|jkS|j|jkS)N)rHr rŸr®r¬r¯)r�r rRrRrSr¡Ùs     zForwardRef.__eq__cCs t|jƒS)N)r¢r¬)r�rRrRrSr£ászForwardRef.__hash__cCsd|j›d�S)Nz ForwardRef(ú))r¬)r�rRrRrSr¤äszForwardRef.__repr__N)T) rZrVrWr‘r’ržrŠr¡r£r¤rRrRrRrSr ¶s c@s6eZdZdZdZddddœdd„Zdd „Zd d „ZdS) raâType variable. Usage:: T = TypeVar('T') # Can be anything A = TypeVar('A', str, bytes) # Must be str or bytes Type variables exist primarily for the benefit of static type checkers. They serve as the parameters for generic types as well as for generic function definitions. See class Generic for more information on generic types. Generic functions work as follows: def repeat(x: T, n: int) -> List[T]: '''Return a list containing n references to x.''' return [x]*n def longest(x: A, y: A) -> A: '''Return the longest of two strings.''' return x if len(x) >= len(y) else y The latter example's signature is essentially the overloading of (str, str) -> str and (bytes, bytes) -> bytes. Also note that if the arguments are instances of some subclass of str, the return type is still plain str. At runtime, isinstance(x, T) and issubclass(C, T) will raise TypeError. Type variables defined with covariant=True or contravariant=True can be used to declare covariant or contravariant generic types. See PEP 484 for more details. By default generic types are invariant in all type variables. Type variables can be introspected. e.g.: T.__name__ == 'T' T.__constraints__ == () T.__covariant__ == False T.__contravariant__ = False A.__constraints__ == (str, bytes) Note that only type variables defined in global scope can be pickled. )rZÚ __bound__Ú__constraints__Ú __covariant__Ú__contravariant__NF)ÚboundÚ covariantÚ contravariantc sÒ||_|r|rtdƒ‚t|ƒ|_t|ƒ|_|r>|dk r>tdƒ‚|rVt|ƒdkrVtdƒ‚d‰t‡fdd„|Dƒƒ|_|r„t |dƒ|_ nd|_ yt   d¡j  d d ¡}Wnttfk r¾d}YnX|d krÎ||_dS) Nz"Bivariant types are not supported.z-Constraints cannot be combined with bound=...rtz"A single constraint is not allowedz:TypeVar(name, constraint, ...): constraints must be types.c3s|]}t|ˆƒVqdS)N)rT)r^r_)rPrRrSr‰#sz#TypeVar.__init__..zBound must be a type.rZÚ__main__Útyping)rZÚ ValueErrorÚboolr¸r¹rLrprfr·rTr¶ÚsysÚ _getframeÚ f_globalsÚgetÚAttributeErrorrV)r�rœrºr»r¼Z constraintsZdef_modrR)rPrSržs(    zTypeVar.__init__cCs&|jr d}n|jrd}nd}||jS)Nú+ú-ú~)r¸r¹rZ)r�ÚprefixrRrRrSr¤/s zTypeVar.__repr__cCs|jS)N)rZ)r�rRrRrSr¥8szTypeVar.__reduce__)rZrVrWr‘r’ržr¤r¥rRrRrRrSrès * ) rhrfÚdictruÚ frozensetÚdequeÚ defaultdictrGr7cCs| d¡o| d¡S)NÚ__)Ú startswithÚendswith)ÚattrrRrRrSÚ _is_dunderSsrÒcsŽeZdZdZddddœdd„Zedd „ƒZd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„Z ‡fdd„Zdd„Zdd„Zdd„Z‡ZS) rJa°The central part of internal API. This represents a generic version of type 'origin' with type arguments 'params'. There are two kind of these aliases: user defined and special. The special ones are wrappers around builtin collections and ABCs in collections.abc. These must have 'name' always set. If 'inst' is False, then the alias can't be instantiated, this is used by e.g. typing.List and typing.Dict. TFN)ÚinstÚspecialrœcCsz||_||_|r*|dkr*|j}t ||¡}||_t|tƒs@|f}||_tdd„|Dƒƒ|_ t |ƒ|_ d|_ |sv|j |_ dS)Ncss*|]"}|tkrdn|tkrdn|VqdS).rRN)Ú_TypingEllipsisÚ _TypingEmpty)r^rnrRrRrSr‰jsz)_GenericAlias.__init__..)Ú_instrcrZÚ_normalize_aliasrÄr–rHrfrKrirgrer’rV)r�ÚoriginrxrÓrÔrœZ orig_namerRrRrSrž`s     z_GenericAlias.__init__cs^|jttfkrtd|›�ƒ‚t|tƒs,|f}d‰t‡fdd„|Dƒƒ}t||ƒt||j|ƒS)Nz%Cannot subscript already-subscripted z*Parameters to generic types must be types.c3s|]}t|ˆƒVqdS)N)rT)r^ry)rPrRrSr‰zsz,_GenericAlias.__getitem__..) rKr rFrLrHrfrsrkre)r�rxrR)rPrSrªrs  z_GenericAlias.__getitem__cCst|j||j|jd�S)N)rœrÓ)rJrKr–r×)r�rxrRrRrSrl~sz_GenericAlias.copy_withcCs¸|jdks&t|jƒdkrx|jdtkrx|jr8d|j}n t|jƒ}|jshdd dd„|jDƒ¡›d �}nd }|›|›�S|jr‚d Sd d d d„|jdd…Dƒ¡›dt|jdƒ›d �S)Nrérztyping.ú[z, cSsg|] }t|ƒ‘qSrR)r])r^rnrRrRrSraŠsz*_GenericAlias.__repr__..ú]Úztyping.Callableztyping.Callable[[cSsg|] }t|ƒ‘qSrR)r])r^rnrRrRrSra�séÿÿÿÿz], )r–rpriÚEllipsisr]rKrcÚjoin)r�rœr{rRrRrSr¤‚s     z_GenericAlias.__repr__cCsRt|tƒstS|j|jkrdS|jtkrF|jtkrFt|jƒt|jƒkS|j|jkS)NF)rHrJrŸrKrrËri)r�r rRrRrSr¡”s  z_GenericAlias.__eq__cCs,|jtkrttt|jƒfƒSt|j|jfƒS)N)rKrr¢rËri)r�rRrRrSr£�s z_GenericAlias.__hash__cOsT|js$td|j›d|j ¡›d�ƒ‚|j||Ž}y ||_Wntk rNYnX|S)NzType z cannot be instantiated; use z () instead)r×rLr–ÚlowerrKZ__orig_class__rÅ)r�r{ÚkwargsÚresultrRrRrSr¦¢s  z_GenericAlias.__call__cCs¦|jrZg}|j|kr | |j¡| |¡}tdd„||dd…DƒƒsR| t¡t|ƒS|jtkrž| |¡}x.||dd…D]}t|tƒr€||k r€dSq€W|jfS)Ncss"|]}t|tƒpt|tƒVqdS)N)rHrJÚ issubclassr )r^ÚbrRrRrSr‰³sz0_GenericAlias.__mro_entries__..rtrR) r–rKrbÚindexÚanyr rfrHrJ)r�Úbasesr‹rorårRrRrSÚ__mro_entries__­s      z_GenericAlias.__mro_entries__cCs*d|jkrt|ƒst|j|ƒSt|ƒ‚dS)NrK)Ú__dict__rÒÚgetattrrKrÅ)r�rÑrRrRrSÚ __getattr__¾s z_GenericAlias.__getattr__cs2t|ƒs|dkr tƒ ||¡nt|j||ƒdS)N)r–r×rc)rÒr™Ú __setattr__ÚsetattrrK)r�rÑÚval)r›rRrSríÅsz_GenericAlias.__setattr__cCs| t|ƒ¡S)N)r¨rG)r�r\rRrRrSr§Ësz_GenericAlias.__instancecheck__cCs<|jr0t|tƒst||jƒS|jr0t|j|jƒStdƒ‚dS)NzBSubscripted generics cannot be used with class and instance checks)rcrHrJrärKrL)r�rqrRrRrSr¨Îs   z_GenericAlias.__subclasscheck__cCs |jr |jS|jr tƒ|j}n|j}|tkrht|jƒdkrJ|jdtksht|jdd…ƒ|jdf}n*t |jƒ}t|ƒdkr’t |dt ƒs’|\}t j ||ffS)NrÚrrÞrt) rcr–ÚglobalsrKrrprirßrhrfrHÚoperatorÚgetitem)r�rÙr{rRrRrSr¥×s z_GenericAlias.__reduce__)rZrVrWr‘ržr…rªrlr¤r¡r£r¦rérìrír§r¨r¥r«rRrR)r›rSrJWs     rJcs,eZdZdZdd„Ze‡fdd„ƒZ‡ZS)Ú_VariadicGenericAliaszŒSame as _GenericAlias above but for variadic aliases. Currently, this is used only by special internal aliases: Tuple and Callable. cCs€|jdks|js| |¡St|tƒr0t|ƒdkr8tdƒ‚|\}}|tkrRt|f}n$t|tƒsjtd|›�ƒ‚t|ƒ|f}| |¡S)NrrÚz6Callable must be used as Callable[[arg, ...], result].z1Callable[args, result]: args must be a list. Got ) r–rcÚ__getitem_inner__rHrfrprLrßrh)r�rxr{rãrRrRrSrªís    z!_VariadicGenericAlias.__getitem__cs |jtkr�|jr�|dkr$| tf¡St|tƒs4|f}t|ƒdkrl|ddkrld‰t|dˆƒ}| |tf¡Sd‰t‡fdd „|Dƒƒ}| |¡S|jt j j krþ|jrþ|\}}d ‰t|ˆƒ}|t krÐ| t|f¡Sd ‰t‡fd d „|Dƒƒ}||f}| |¡St ƒ |¡S) NrRrÚrt.z Tuple[t, ...]: t must be a type.rz*Tuple[t0, t1, ...]: each t must be a type.c3s|]}t|ˆƒVqdS)N)rT)r^ry)rPrRrSr‰ sz:_VariadicGenericAlias.__getitem_inner__..z.Callable[args, result]: result must be a type.z6Callable[[arg, ...], result]: each arg must be a type.c3s|]}t|ˆƒVqdS)N)rT)r^rO)rPrRrSr‰s)rKrfrcrlrÖrHrprTrÕÚ collectionsÚabcrrßr™rª)r�rxryr{rã)r›)rPrSrôýs.      z'_VariadicGenericAlias.__getitem_inner__)rZrVrWr‘rªr…rôr«rRrR)r›rSróésrócs<eZdZdZdZ‡fdd„Zedd„ƒZ‡fdd„Z‡Z S) r aCAbstract base class for generic types. A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:: class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc. This class can then be used as follows:: def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default rRcsP|tkrtdƒ‚tƒjtjkr8|jtjk r8tƒ |¡}ntƒj|f|ž|Ž}|S)NzHType Generic cannot be instantiated; it can be used only as a base class)r rLr™ršÚobjectrž)rqr{r|r\)r›rRrSrš.s zGeneric.__new__cs¦t|tƒs|f}|s.|tk r.td|j›d�ƒ‚d‰t‡fdd„|Dƒƒ}|tkrˆtdd„|Dƒƒsjtdƒ‚tt|ƒƒt|ƒkrœtdƒ‚n|t kr’n t ||ƒt ||ƒS) NzParameter list to z[...] cannot be emptyz*Parameters to generic types must be types.c3s|]}t|ˆƒVqdS)N)rT)r^ry)rPrRrSr‰@sz,Generic.__class_getitem__..css|]}t|tƒVqdS)N)rHr)r^ryrRrRrSr‰Csz5Parameters to Generic[...] must all be type variablesz-Parameters to Generic[...] must all be unique) rHrfr rLrWr ÚallrprurFrsrJ)rqrxrR)rPrSÚ__class_getitem__8s$   zGeneric.__class_getitem__c stƒj||Žg}d|jkr(t|jk}nt|jko:|jdk}|rHtdƒ‚d|jk�r t|jƒ}d}x8|jD].}t |t ƒrj|j tkrj|dk r’tdƒ‚|j }qjW|dkrª|}n`t |ƒ}t |ƒ‰|ˆk�sd ‡fdd„|Dƒ¡}d dd„|Dƒ¡} td |›d | ›d �ƒ‚|}t|ƒ|_ dS) NÚ__orig_bases__rFz!Cannot inherit from plain Genericz0Cannot inherit from Generic[...] multiple types.z, c3s|]}|ˆkrt|ƒVqdS)N)rI)r^r_)ÚgvarsetrRrSr‰osz,Generic.__init_subclass__..css|]}t|ƒVqdS)N)rI)r^ÚgrRrRrSr‰pszSome type variables (z) are not listed in Generic[rÜ)r™r�rêr rúÚ __bases__rZrLrgrHrJrKreruràrf) rqr{râr`ÚerrorZgvarsÚbaseZtvarsetZs_varsZs_args)r›)rûrSr�Qs6         zGeneric.__init_subclass__) rZrVrWr‘r’ršr…rùr�r«rRrR)r›rSr s  c@seZdZdZdS)rÖz´Internal placeholder for () or []. Used by TupleMeta and CallableMeta to allow empty list/tuple in specific places, without allowing them to sneak in where prohibited. N)rZrVrWr‘rRrRrRrSrÖwsrÖc@seZdZdZdS)rÕz(Internal placeholder for ... (ellipsis).N)rZrVrWr‘rRrRrRrSrÕ~srÕcCs|S)zÿCast a value to a type. This returns the value unchanged. To the type checker this signals that the return value has the designated type, but at runtime we intentionally don't check anything (we want this to be as fast as possible). rR)ÚtyprïrRrRrSr<‚sc Csœy |j}Wntk riSX|j}|j}|d|…}|jp@d}|j}|rTt|ƒni}|t|ƒ}x2t||d…|ƒD]\}} ||ksŒt ‚| ||<qxW|S)z:Internal helper to extract the default arguments, by name.NrR) Ú__code__rÅÚ co_argcountÚ co_varnamesÚ __defaults__Ú__kwdefaults__rÊrpÚziprw) r~r´Z pos_countZ arg_namesÚdefaultsZ kwdefaultsr‹Z pos_offsetrœÚvaluerRrRrSÚ _get_defaults�s      r c CsÌt|ddƒriSt|tƒr°i}xŒt|jƒD]~}|dkrFtj|jj}n|}|j  di¡}xN|  ¡D]B\}}|dkrztdƒ}t|t ƒr�t |dd�}t |||ƒ}|||<qbWq*W|S|dk�rt|tjƒrÎ|j}n&|} xt| dƒræ| j} qÔWt| diƒ}|dk�r|}n|dk�r|}t|ddƒ}|dk�rFt|tƒ�r8iStd |¡ƒ‚t|ƒ} t|ƒ}xp|  ¡D]d\}}|dk�rztdƒ}t|t ƒ�rŽt |ƒ}t |||ƒ}|| k�rº| |dk�rºt|}|||<�q`W|S) a¹Return type hints for an object. This is often the same as obj.__annotations__, but it handles forward references encoded as string literals, and if necessary adds Optional[t] if a default value equal to None is set. 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. Ú__no_type_check__NÚ__annotations__F)rQÚ __wrapped__Ú __globals__z1{!r} is not a module, class, method, or function.)rërHrGÚreversedÚ__mro__rÁÚmodulesrVrêrÄÚitemsrIr r†rXÚ ModuleTypeÚhasattrr Ú_allowed_typesrLÚformatr rÊr ) r\r‡rˆZhintsrÿZ base_globalsÚannrœrZnsobjrrRrRrSr=¦s\                  cCs t|tƒr||j ¡}x0|j ¡D]"\}}||j|fkr | |¡q Wx4| ¡D](}t|tj ƒrfd|_ t|tƒrPt |ƒqPWy d|_ Wnt k ršYnX|S)aIDecorator to indicate that annotations are not type hints. The argument must be a class or function; if it is a class, it applies recursively to all methods and classes defined in that class (but not to methods defined in its superclasses or subclasses). This mutates the function(s) or class(es) in place. T) rHrGrêÚcopyrrýÚpopÚvaluesrXrYr r?rL)rOZ arg_attrsrÑrïr\rRrRrSr?üs      cst ˆ¡‡fdd„ƒ}|S)z©Decorator to give another decorator the @no_type_check effect. This wraps the decorator with something that wraps the decorated function in @no_type_check. csˆ||Ž}t|ƒ}|S)N)r?)r{r|r~)Ú decoratorrRrSÚwrapped_decorators z2no_type_check_decorator..wrapped_decorator)r€r„)rrrR)rrSr@scOs tdƒ‚dS)z*Helper for @overload to raise when called.z´You should not call an overloaded function. A series of @overload-decorated functions outside a stub module should always be followed by an implementation that is not @overload-ed.N)ÚNotImplementedError)r{r|rRrRrSÚ_overload_dummy&srcCstS)a Decorator for overloaded functions/methods. In a stub file, place two or more stub definitions for the same function in a row, each decorated with @overload. For example: @overload def utf8(value: None) -> None: ... @overload def utf8(value: bytes) -> bytes: ... @overload def utf8(value: str) -> bytes: ... In a non-stub file (i.e. a regular .py file), do the same but follow it with an implementation. The implementation should *not* be decorated with @overload. 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 )r)r~rRrRrSrB/scs0eZdZdZ‡fdd„Zdd„Zdd„Z‡ZS)Ú _ProtocolMetaz~Internal metaclass for _Protocol. This exists so _Protocol classes can be generic without deriving from Generic. cs"t|jkrtƒ |¡Stdƒ‚dS)Nz+Protocols cannot be used with isinstance().)rFrýr™r§rL)r�r\)r›rRrSr§Ss  z_ProtocolMeta.__instancecheck__csL|js tS|tkrdS| ¡}x(|D] ‰t‡fdd„|jDƒƒs$dSq$WdS)NTc3s|]}ˆ|jkVqdS)N)rê)r^Úd)rÑrRrSr‰esz2_ProtocolMeta.__subclasscheck__..F)Ú _is_protocolrŸrFÚ_get_protocol_attrsrçr)r�rqÚattrsrR)rÑrSr¨Xs z_ProtocolMeta.__subclasscheck__cCs&g}x.|jD]$}t|ddƒr |jdkr | |¡q Wtƒ}�xä|D]Ü}xÖ|j ¡D]È}xÂ|jD]$}||k r^||jkr^t|ddƒs^Pq^W| d¡sR|dkrR|dkrR|dkrR|dkrR|dkrR|d krR|d krR|d krR|d krR|d krR|dkrR|dkrR|dkrR|dkrR|dkrR|dkrR| |¡qRWqBW|S)Nr FrFZ_abc_Ú__abstractmethods__r r�Z_gorgrêrir’r!Z__next_in_mro__rerKrúZ __extra__Z __tree_hash__rV) rrërZrbrurêÚkeysrÏÚadd)r�Zprotocol_basesÚcr"rÿrÑrRrRrSr!is<     z!_ProtocolMeta._get_protocol_attrs)rZrVrWr‘r§r¨r!r«rRrR)r›rSrLs rcs(eZdZdZdZdZ‡fdd„Z‡ZS)rFzÉInternal base class for protocol classes. This implements a simple-minded structural issubclass check (similar but more general than the one-offs in collections.abc such as Hashable). rRTcs tƒ |¡S)N)r™rù)rqrx)r›rRrSrùœsz_Protocol.__class_getitem__)rZrVrWr‘r’r rùr«rRrR)r›rSrF�srF)Ú metaclassÚTÚKTÚVTÚT_co)r»ÚV_coÚVT_coÚT_contra)r¼ÚCT_co)r»rºcCst||d|d�S)NT)rÔrÓ)rJ)rÙrxrÓrRrRrSÚ_alias²sr0rR)rÔa�Callable type; Callable[[int], str] is a function of (int) -> 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 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. F)rÓrÔa@Tuple type; 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, ...]. )rÓa¾A special construct usable to annotate class objects. For example, suppose we have the following classes:: class User: ... # Abstract base for User classes class BasicUser(User): ... class ProUser(User): ... class TeamUser(User): ... And a function that takes a class argument that's a subclass of User and returns an instance of the corresponding class:: U = TypeVar('U', bound=User) def new_user(user_class: Type[U]) -> U: user = user_class() # (Here we could write the user object to a database) return user joe = new_user(BasicUser) At this point the type checker knows that joe has type BasicUser. c@s&eZdZdZdZeedœdd„ƒZdS)r.z(An ABC with one abstract method __int__.rR)ÚreturncCsdS)NrR)r�rRrRrSÚ__int__ szSupportsInt.__int__N)rZrVrWr‘r’rÚintr2rRrRrRrSr.sc@s&eZdZdZdZeedœdd„ƒZdS)r-z*An ABC with one abstract method __float__.rR)r1cCsdS)NrR)r�rRrRrSÚ __float__szSupportsFloat.__float__N)rZrVrWr‘r’rÚfloatr4rRrRrRrSr-sc@s&eZdZdZdZeedœdd„ƒZdS)r,z,An ABC with one abstract method __complex__.rR)r1cCsdS)NrR)r�rRrRrSÚ __complex__szSupportsComplex.__complex__N)rZrVrWr‘r’rÚcomplexr6rRrRrRrSr,sc@s&eZdZdZdZeedœdd„ƒZdS)r+z*An ABC with one abstract method __bytes__.rR)r1cCsdS)NrR)r�rRrRrSÚ __bytes__'szSupportsBytes.__bytes__N)rZrVrWr‘r’rÚbytesr8rRrRrRrSr+#sc@s&eZdZdZdZeedœdd„ƒZdS)r*zMAn ABC with one abstract method __abs__ that is covariant in its return type.rR)r1cCsdS)NrR)r�rRrRrSÚ__abs__0szSupportsAbs.__abs__N)rZrVrWr‘r’rr+r:rRrRrRrSr*,sc@s*eZdZdZdZedeedœdd„ƒZdS) r/zOAn ABC with one abstract method __round__ that is covariant in its return type.rRr)Úndigitsr1cCsdS)NrR)r�r;rRrRrSÚ __round__9szSupportsRound.__round__N)r) rZrVrWr‘r’rr3r+r<rRrRrRrSr/5sc svd‰‡fdd„|Dƒ}t |dd„|Dƒ¡}t |¡|_|_yt d¡j dd¡|_ Wnt t fk rpYnX|S)NzDNamedTuple('Name', [(f0, t0), (f1, t1), ...]); each t must be a typecsg|]\}}|t|ˆƒf‘qSrR)rT)r^Únr_)rPrRrSra@sz!_make_nmtuple..cSsg|] \}}|‘qSrRrR)r^r=r_rRrRrSraAsrÚrZr½) rõÚ namedtupler6r Ú _field_typesrÁrÂrÃrÄrVrÅr¿)rœrXÚnm_tplrR)rPrSÚ _make_nmtuple>srA) ršržr’Ú__getnewargs__Ú_fieldsÚ_field_defaultsr?Ú_makeÚ_replaceÚ_asdictZ_source)rVrZr cseZdZ‡fdd„Z‡ZS)ÚNamedTupleMetac sü| dd¡rtƒ ||||¡S| di¡}t|| ¡ƒ}g}i}xP|D]H}||krn||} | | ¡| ||<qF|rFtdj|d |  ¡¡d�ƒ‚qFWt   |¡|j_ t |ƒ|j_||_xD|D]<} | tkrÒtd| ƒ‚q¸| tkr¸| |jkr¸t|| || ƒq¸W|S)NrŽFr zXNon-default namedtuple field {field_name} cannot follow default field(s) {default_names}z, )Ú field_nameZ default_namesz&Cannot overwrite NamedTuple attribute )rÄr™ršrArrbrLrràr$rõr6r rfrrDÚ _prohibitedrÅrcrCrî) rqÚtypenamerèÚnsrXr@rZ defaults_dictrIZ default_valueÚkey)r›rRrSršVs0       zNamedTupleMeta.__new__)rZrVrWršr«rRrR)r›rSrHTsrHc@s"eZdZdZdZdd„Zde_dS)r9a4Typed version of namedtuple. Usage in Python versions >= 3.6:: class Employee(NamedTuple): name: str id: int This is equivalent to:: Employee = collections.namedtuple('Employee', ['name', 'id']) The resulting class has extra __annotations__ and _field_types attributes, giving an ordered dict mapping field names to types. __annotations__ should be preferred, while _field_types is kept to maintain pre PEP 526 compatibility. (The field names are in the _fields attribute, which is part of the namedtuple API.) Alternative equivalent keyword syntax is also accepted:: Employee = NamedTuple('Employee', name=str, id=int) In Python versions <= 3.5 use:: Employee = NamedTuple('Employee', [('name', str), ('id', int)]) TcOsÊ|s tdƒ‚|^}}|r"|^}}nd|kr6| d¡}ntdƒ‚|r~y |\}Wq¢tk rztdt|ƒd›d�ƒd‚Yq¢Xn$d|kržt|ƒdkrž| d¡}nd}|dkr´| ¡}n |rÀtd ƒ‚t||ƒS) Nz*NamedTuple.__new__(): not enough argumentsrKzGNamedTuple.__new__() missing 1 required positional argument: 'typename'z@NamedTuple.__new__() takes from 2 to 3 positional arguments but rÚz were givenÚfieldsrtzIEither list of fields or keywords can be provided to NamedTuple, not both)rLrr¿rprrA)r{rârqrKrNrRrRrSrš�s,      zNamedTuple.__new__z*($cls, typename, fields=None, /, **kwargs)N)rZrVrWr‘rŽršÚ__text_signature__rRrRrRrSr9sscCsdd„}||_||_|S)a%NewType creates simple unique types with almost zero runtime overhead. NewType(name, tp) is considered a subtype of tp by static type checkers. At runtime, NewType(name, tp) returns a dummy function that simply returns its argument. Usage:: UserId = NewType('UserId', int) def name_by_id(user_id: UserId) -> str: ... UserId('user') # Fails type check name_by_id(42) # Fails type check name_by_id(UserId(42)) # OK num = UserId(5) + 1 # type: int cSs|S)NrR)ÚxrRrRrSÚnew_typeÂszNewType..new_type)rZZ __supertype__)rœrmrQrRrRrSr>¯sc@sžeZdZdZdZeedœdd„ƒZeedœdd„ƒZe ddœd d „ƒZ ee dœd d „ƒZ e e dœd d„ƒZe ddœdd„ƒZe e dœdd„ƒZe d7e edœdd„ƒZe e dœdd„ƒZe d8e edœdd„ƒZe d9e eedœdd„ƒZe d:e e e d œd!d"„ƒZe e dœd#d$„ƒZe e dœd%d&„ƒZe d;e e d'œd(d)„ƒZe e dœd*d+„ƒZe ee d,œd-d.„ƒZe eedd/œd0d1„ƒZe d2dœd3d4„ƒZe ddœd5d6„ƒZdS)<ÚIOaûGeneric base class for TextIO and BinaryIO. This is an abstract, generic version of the return of open(). NOTE: This does not distinguish between the different possible classes (text vs. binary, read vs. write vs. read/write, append-only, unbuffered). The TextIO and BinaryIO subclasses below capture the distinctions between text vs. binary, which is pervasive in the interface; however we currently do not offer a way to track the other distinctions in the type system. rR)r1cCsdS)NrR)r�rRrRrSÚmodeászIO.modecCsdS)NrR)r�rRrRrSrœåszIO.nameNcCsdS)NrR)r�rRrRrSÚcloseészIO.closecCsdS)NrR)r�rRrRrSÚclosedísz IO.closedcCsdS)NrR)r�rRrRrSÚfilenoñsz IO.filenocCsdS)NrR)r�rRrRrSÚflushõszIO.flushcCsdS)NrR)r�rRrRrSÚisattyùsz IO.isattyrÞ)r=r1cCsdS)NrR)r�r=rRrRrSÚreadýszIO.readcCsdS)NrR)r�rRrRrSÚreadablesz IO.readable)Úlimitr1cCsdS)NrR)r�r[rRrRrSÚreadlinesz IO.readline)Úhintr1cCsdS)NrR)r�r]rRrRrSÚ readlines sz IO.readlinesr)ÚoffsetÚwhencer1cCsdS)NrR)r�r_r`rRrRrSÚseek szIO.seekcCsdS)NrR)r�rRrRrSÚseekablesz IO.seekablecCsdS)NrR)r�rRrRrSÚtellszIO.tell)Úsizer1cCsdS)NrR)r�rdrRrRrSÚtruncatesz IO.truncatecCsdS)NrR)r�rRrRrSÚwritablesz IO.writable)Úsr1cCsdS)NrR)r�rgrRrRrSÚwrite!szIO.write)Úlinesr1cCsdS)NrR)r�rirRrRrSÚ writelines%sz IO.writelinesz IO[AnyStr]cCsdS)NrR)r�rRrRrSÚ __enter__)sz IO.__enter__cCsdS)NrR)r�rGrÚ tracebackrRrRrSÚ__exit__-sz IO.__exit__)rÞ)rÞ)rÞ)r)N) rZrVrWr‘r’rrIrSrœrrTrÀrUr3rVrWrXr;rYrZr\r5r^rarbrcrerfrhrjrkrmrRrRrRrSrRÒsT rRc@sBeZdZdZdZeeeefe dœdd„ƒZ eddœdd„ƒZ d S) ÚBinaryIOz5Typed version of the return of open() in binary mode.rR)rgr1cCsdS)NrR)r�rgrRrRrSrh7szBinaryIO.write)r1cCsdS)NrR)r�rRrRrSrk;szBinaryIO.__enter__N) rZrVrWr‘r’rrr9Ú bytearrayr3rhrkrRrRrRrSrn2s rnc@s„eZdZdZdZeedœdd„ƒZeedœdd„ƒZ ee edœdd „ƒZ ee dœd d „ƒZ eedœd d „ƒZeddœdd„ƒZdS)ÚTextIOz3Typed version of the return of open() in text mode.rR)r1cCsdS)NrR)r�rRrRrSÚbufferEsz TextIO.buffercCsdS)NrR)r�rRrRrSÚencodingIszTextIO.encodingcCsdS)NrR)r�rRrRrSÚerrorsMsz TextIO.errorscCsdS)NrR)r�rRrRrSÚline_bufferingQszTextIO.line_bufferingcCsdS)NrR)r�rRrRrSÚnewlinesUszTextIO.newlinescCsdS)NrR)r�rRrRrSrkYszTextIO.__enter__N)rZrVrWr‘r’rrnrqrIrrr rsrÀrtrrurrkrRrRrRrSrp@srpc@s&eZdZdZdddgZeZeZeZdS)Úioz)Wrapper namespace for IO generic classes.rRrprnN)rZrVrWr‘Ú__all__rRrprnrRrRrRrSrv^s  rvz.ioc@s eZdZdZddgZeZeZdS)Úrez&Wrapper namespace for re type aliases.ÚPatternÚMatchN)rZrVrWr‘rwryrzrRrRrRrSrxmsrxz.re)T)NN)T)‹r‘rörrrõZcollections.abcÚ contextlibr€rñrxZ stdlib_rerÁrXrrrrwrTr]rgrkrsrzr‚r…r†rŒr“rMrrAr rr r rrØrÒrJrór rÖrÕr<r rYÚBuiltinFunctionTypeÚ MethodTyperrr=r?r@rrBrGrrFr(r)r*r+r,r-r.r/r9rIr;r0rr"r%r$r#rrr)r rr&rr7rrrrrrrrfr rhr5rÌr2rurËr8rrrr!ÚAbstractContextManagerrÚAbstractAsyncContextManagerr(rÊr3rÍr4r6r1r0r:r'rr.r-r,r+r*r/rArJrcrHr9r>rCrDrRrnrprvrZrryrzrRrRrRrSÚs’ !   E  2a/_   V D                  <`