Your IP : 3.135.234.164


Current Path : /opt/alt/python313/lib64/python3.13/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/__pycache__/typing.cpython-313.pyc

�

1}g��~�SrSSKJrJr SSKrSSKJr SSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKJrJ
r
JrJr SSKJrJrJrJrJrJrJrJrJr /SQrS�SS	.S
jjrS�SS	.SjjrS
rSrSrSS.S\ 4Sjjr!Sr"Sr#SS.Sjr$Sr%Sr&Sr'Sr(/r)0r*S�SS.Sjjr+S\,SS4Sjr-"S S!5r.\."5r/\/4\0"5S".S#jjr1"S$S%5r2"S&S'5r3"S(S)\2\3SS*9r4"S+S,\4SS*9r5"S-S.\65r7"S/S0\7S19r8\4S25r9\4S35r:\4S45r;\4S55r<\4S65r=\4S75r>\4S85r?S9r@\4S:5rA\5\+"SS9S;55rB\4S<5rC\4S=5rD\4S>5rE\4S?5rF"S@SA\2SS*9rGSB\8S\ 4SCjrHSB\8S\ 4SDjrISErJSFrKSGrLSHrM\+SI5rNSJrOSKrP"SLSM\2SS*9rQ"SNSO\QSS*9rR"SPSQ\3\QSS*9rS"SRSS\SSS*9rT"STSU\3\RSS*9rU"SVSW\SSS*9rV"SXSY\SSS*9rW"SZS[\3\RSS*9rXS\rY"S]S^\RSS*9rZ"S_S`\RSS*9r[\4Sa5r\"SbSc\RSS*9r]"SdSe5r^\0"1Sfk5r_\0"1Sgk5r`\_\`-Sh1-raSirbSjrcS�SljrdS�Snjre/SoQSpSq/Sr.rf\R�Ss5rh\)R�\hR�5 Strk\R�"\\k5 Surm\R�"\\m5 CkCm\R�ro\R�rqSvrr"SwSx\5rs\tSy5ru"SzS{\\sS19rv"S|S}\3\RSS*9rw\5\+"SS9S~55rxSryS�rzS�r{\R�\R�\R�\R�\\
\4r�S�S�jr�S�r�S�r�S�r�S�r�S�r�S�\:S\:4S�jr�S�r�S�r�S�r�\"\GR"\\�55r�S�r�S�r�S�r�S�r�\"S�5r�\"S�5r�\"S�5r�\"S�SS�9r�\"S�SS�9r�\"S�SS�9r�\"S�SS�9r�\"S�S\6S�9r�\"S�\�\,5r�\Sr�\�"\RGR:S5r�\�"\RGR<Sk5r�\�"\RGR>S�5r�\�"\RGR@Sk5r�\�"\RGRBSk5r�\�"\RGRDSk5r�\�"\RGRFSk5r�\�"\RGRHSk5r�\�"\RGRJS5r�\�"\RGRLSk5r�\�"\RGRNSk5r�\V"\RGRPSm5r�S�\�l\�"\RGRRSkS�S�9r�\�"\RGRVSk5r�\�"\RGRXSm5r�\�"\RGRZSm5r�\�"\RGR\Sk5r�\�"\RGR^Sk5r�\T"\RGR`SS�S�9r�\W"\�S�SS�S�9r�S�\�l\�"\�SkSS�S�9r�\�"\GRjSkS�S�9r�\�"\�SkSS�S�9r�\�"\0SkSS�S�9r�\�"\RGRrSk5r�\�"\RGRtSk5r�\�"\RGRvSm5r�\�"\RGRxSk5r�\�"\�SmSS�S�9r�\�"\R
SmS�S�9r�\�"\GR~Sm5r�\�"\GR�Sk5r�\�"\GR�Sm5r�\�"\RGR�S�\GR�\GR�4S�9r�\�"\RGR�Sm\GR�4S�9r�\�"\6SkSS�S�9r�S�\�l\y"S�S�\v55r�\y"S�S�\v55r�\y"S�S�\v55r�\y"S�S�\v55r�\y"S�S�\v55r�\yS�"55r�\yS�"55r�S�S�jr�\0"1S�k5r�\0"1S�k5r�"S�S�\65r�\/4S�jr�\6GR�\�S�S�05r�S�r�\�\�l�S�r�"S�S�\65r�\/4SS�.S�jjr�\6GR�\�S�S�05r�S�\�l�\4S�5r�\4S�5r�\4S�5r�"S�S�5r�\,r�Sr�"S�S�\\�5r�"S�S�\�\�5r�"S�S�\�\,5r�S�"5r�"S�S�\v5r�SSSSS�S�.S�\ S�\ S�\ S�\ S�\�\6\8\�S�\84-S�4S�\8S\�4S�jjr�S�SS�47r�S�"5r�S�\6S\ 4S�jr�S�\6S\0\,4S�jr�S�r�g)�a�
The typing module: Support for gradual typing as defined by PEP 484 and subsequent PEPs.

Among other things, the module includes the following:
* Generic, Protocol, and internal machinery to support generic aliases.
  All subscripted types like X[int], Union[int, str] are generic aliases.
* Various "special forms" that have unique meanings in type annotations:
  NoReturn, Never, ClassVar, Self, Concatenate, Unpack, and others.
* Classes whose instances can be type arguments to generic classes and functions:
  TypeVar, ParamSpec, TypeVarTuple.
* Public helper functions: get_type_hints, overload, cast, final, and others.
* Several protocols to support duck-typing:
  SupportsFloat, SupportsIndex, SupportsAbs, and others.
* Special types: NewType, NamedTuple, TypedDict.
* Deprecated aliases for builtin types and collections.abc ABCs.

Any name not present in __all__ is an implementation detail
that may be changed without notice. Use at your own risk!
�)�abstractmethod�ABCMetaN)�defaultdict)�WrapperDescriptorType�MethodWrapperType�MethodDescriptorType�GenericAlias)	�_idfunc�TypeVar�	ParamSpec�TypeVarTuple�
ParamSpecArgs�ParamSpecKwargs�
TypeAliasType�Generic�	NoDefault)h�	Annotated�Any�Callable�ClassVar�Concatenate�Final�
ForwardRefr�Literal�Optionalr�Protocol�Tuple�Typerr
�Union�AbstractSet�
ByteString�	Container�ContextManager�Hashable�	ItemsView�Iterable�Iterator�KeysView�Mapping�MappingView�MutableMapping�MutableSequence�
MutableSet�Sequence�Sized�
ValuesView�	Awaitable�
AsyncIterator�
AsyncIterable�	Coroutine�
Collection�AsyncGenerator�AsyncContextManager�
Reversible�SupportsAbs�
SupportsBytes�SupportsComplex�
SupportsFloat�
SupportsIndex�SupportsInt�
SupportsRound�ChainMap�Counter�Deque�Dict�DefaultDict�List�OrderedDict�Set�	FrozenSet�
NamedTuple�	TypedDict�	Generator�BinaryIO�IO�Match�Pattern�TextIO�AnyStr�assert_type�assert_never�cast�clear_overloads�dataclass_transform�final�get_args�
get_origin�
get_overloads�get_protocol_members�get_type_hints�is_protocol�is_typeddict�
LiteralString�Never�NewType�
no_type_check�no_type_check_decoratorr�NoReturn�NotRequired�overload�overriderr�ReadOnly�Required�reveal_type�runtime_checkable�Self�Text�
TYPE_CHECKING�	TypeAlias�	TypeGuard�TypeIsr�UnpackF��allow_special_formsc�`�Uc[S5$[U[5(a
[XUS9$U$)z=For converting None to type(None), and strings to ForwardRef.N)�module�is_class)�type�
isinstance�strr)�argrvrts   �-/opt/alt/python313/lib64/python3.13/typing.py�
_type_convertr}�s1��
�{��D�z���#�s����#�7J�K�K��J�Tc��[[4nU(dU[4-
nU(a
U[4-
n[	XUS9n[U[5(aURU;a[US35eU[[[[[[4;aU$U(aU[[4;aU$[U[5(dU[[4;a[SUS35e[!U5["La[USU<SS35eU$)a�Check that the argument is a type, and return it (internal helper).

As a special case, accept None and return type(None) instead. Also wrap strings
into ForwardRef instances. Consider several corner cases, for example plain
special forms like Union are not valid, while Union[int, str] is OK, etc.
The msg argument is a human-readable error message, e.g.::

    "Union[arg, ...]: arg should be a type."

We append the repr() of the actual value (truncated to 100 chars).
)rvrt� is not valid as type argumentzPlain z Got z.100�.)rrrrr}ry�
_GenericAlias�
__origin__�	TypeErrorrr_rdr`rlro�_SpecialFormrx�tuple)r{�msg�is_argumentrvrt�invalid_generic_formss      r|�_type_checkr��s���%�h�/����(��,���!�e�X�-�!�
��@S�
T�C��3�
�&�&��N�N�3�3��3�%�=�>�?�?�
�s�M�8�U�D�)�D�D��
��s�x��&7�7��
��#�|�$�$����/B�(B��&���%C�D�E�E��C�y�E���3�%�u�S�L�4�L��2�3�3��Jr~c�X�USL=(d  [U[[[[45$�N.)ryr��listr�_ConcatenateGenericAlias�r{s r|�_is_param_exprr��s,���#�:�@��C�
�D�)�%=�>�@�@r~c��UR[RRL=(a( [	U5S:H=(a [US5(+$)aInternal helper for munging collections.abc.Callable's __args__.

The canonical representation for a Callable's __args__ flattens the
argument types, see https://github.com/python/cpython/issues/86361.

For example::

    >>> import collections.abc
    >>> P = ParamSpec('P')
    >>> collections.abc.Callable[[int, int], str].__args__ == (int, int, str)
    True
    >>> collections.abc.Callable[P, str].__args__ == (P, str)
    True

As a result, if we need to reconstruct the Callable from its __args__,
we need to unflatten it.
�r)r��collections�abcr�lenr�)�typ�argss  r|�_should_unflatten_callable_argsr��s@��&	���+�/�/�2�2�2�	=��T��a��;�N�4��7�$;�<�r~c�x�[U[5(a7URS:XaUR$URSUR3$USLag[U[R
5(aUR$[U[5(aSSRSU55-S-$[U5$)	a'Return the repr() of an object, special-casing types (internal helper).

If obj is a type, we return a shorter version than the default
type.__repr__, based on the module and qualified name, which is
typically enough to uniquely identify a type.  For everything
else, we fall back on repr(obj).
�builtinsr�.�...�[�, c3�8# �UHn[U5v� M g7f�N)�
_type_repr)�.0�ts  r|�	<genexpr>�_type_repr.<locals>.<genexpr>s���:�c��z�!�}�}�c����])
ryrx�
__module__�__qualname__�types�FunctionType�__name__r��join�repr��objs r|r�r��s����#�t����>�>�Z�'��#�#�#��.�.�!��3�#3�#3�"4�5�5�
�c�z���#�u�)�)�*�*��|�|���#�u����T�Y�Y�:�c�:�:�:�S�@�@���9�r~��enforce_default_orderingr�c��SnSn/nUGH,n[U[5(aM[U[5(a6UH.n[U/5HnXt;dM
UR	U5 M M0 Mf[US5(awXT;apU(aVU(a UR
5(a[S5eUR
5(aSnOU(a[SU<S35eUR	U5 M�M�[U5(aSn[USS5HnXd;dM
UR	U5 M GM/ [U5$)	z�Collect all type parameters in args
in order of first appearance (lexicographic order).

For example::

    >>> P = ParamSpec('P')
    >>> T = TypeVar('T')
    >>> _collect_type_parameters((T, Callable[P, T]))
    (~T, ~P)
F�__typing_subst__z2Type parameter with a default follows TypeVarTupleTzType parameter z8 without a default follows type parameter with a default�__parameters__�)
ryrxr��_collect_type_parameters�append�hasattr�has_defaultr��_is_unpacked_typevartuple�getattr)r�r��default_encountered�type_var_tuple_encountered�
parametersr��x�	collecteds        r|r�r�s<�� ��!&���J�
���a�����
��5�
!�
!���!9�1�#�!>�I� �2�"�)�)�)�4�"?���Q�*�
+�
+��"�+�1�a�m�m�o�o�'�)@�A�A��}�}���.2�+�,�'�/�!��?Q�)Q�R�R��!�!�!�$�#�)��+�+�-1�*��Q� 0�"�5���&��%�%�a�(�6�9�>���r~c
�R�[UR5nU(d[US35e[U5nX2:wamX2:aHURUR5(agU[	SUR55-nSU3nOUn[SX2:�aSOSSUS	US
U35eg)z�Check correct count for parameters of a generic cls (internal helper).

This gives a nice error message in case of count mismatch.
� is not a generic classNc3�@# �UHoR5v� M g7fr�)r��r��ps  r|r��0_check_generic_specialization.<locals>.<genexpr>Ls���L�9K�A�
�
���9K�s��	at least �Too �many�few� arguments for �	; actual �, expected )r�r�r�r��sum)�cls�	arguments�expected_len�
actual_len�
expect_vals     r|�_check_generic_specializationr�6s���
�s�)�)�*�L���3�%�6�7�8�8��Y��J��!��$��!�!�*�-�9�9�;�;���C�L��9K�9K�L�L�L�L�$�\�N�3�J�%�J��$��)B�v��N�O � #�u�I�j�\��Z�L�R�S�	S�%"r~c��/nUHFn[USS5nUb"U(aUSSLdURU5 M5URU5 MH U$)N�__typing_unpacked_tuple_args__���.)r��extendr�)r��newargsr{�subargss    r|�_unpack_argsr�UsR���G����#�?��F�����G�B�K�3�4F��N�N�7�#��N�N�3����Nr~��unhashable_fallbackc�t�[RU5$![a U(de[U5s$f=fr�)�dict�fromkeysr��_deduplicate_unhashable)�paramsr�s  r|�_deduplicater�_s6��/��}�}�V�$�$���/�"��&�v�.�.�	/�s��7�7c�L�/nUHnX!;dM
URU5 M U$r�)r�)�unhashable_params�new_unhashabler�s   r|r�r�is-���N�
���"��!�!�!�$���r~c��[U5n[U5n[U5nUHnURU5 M U(+$![a gf=f)NF)r�r��remove�
ValueError)�
first_args�second_args�first_unhashable�second_unhashabler��elems      r|�_compare_args_orderlessr�psZ��.�z�:��/��<���
��A��$�D�
�H�H�T�N�%��5�L������s�A�
A�Ac���/nUHVn[U[[R45(aUR	UR
5 MEUR
U5 MX [[USS95$)zoInternal helper for Union creation and substitution.

Flatten Unions among parameters, then remove duplicates.
Tr�)	ry�_UnionGenericAliasr��	UnionTyper��__args__r�r�r��r�r�r�s   r|�_remove_dups_flattenr�{sZ���F�
���a�,�e�o�o�>�?�?��M�M�!�*�*�%��M�M�!��	���f�$�?�@�@r~c��/nUHFn[U[5(aURUR5 M5UR	U5 MH [U5$)zHInternal helper for Literal creation: flatten Literals among parameters.)ry�_LiteralGenericAliasr�r�r�r�r�s   r|�_flatten_literal_paramsr��sG��
�F�
���a�-�.�.��M�M�!�*�*�%��M�M�!��	�
��=�r~��typedc�*^�U4SjnUbU"U5$U$)z�Internal wrapper caching __getitem__ of generic types.

For non-hashable arguments, the original function is used as a fallback.
c��>^�[R"TS9"T5nU[T'[R	UR
5 A[R"T5U4Sj5nU$)Nr�c�T>�[T"U0UD6$![a Of=fT"U0UD6$r�)�_cachesr�)r��kwds�funcs  �r|�inner�+_tp_cache.<locals>.decorator.<locals>.inner�s>���
��t�}�d�3�d�3�3���
��
����&��&�&s��
�)�	functools�	lru_cacher��	_cleanupsr��cache_clear�wraps)r�cacherr�s`  �r|�	decorator�_tp_cache.<locals>.decorator�s\����#�#�%�0��6�����
�����*�*�+��	����	�	'�
�	'��r~r�)rr�r	s ` r|�	_tp_cacher�s ���
�(�������r~�funcname�returnc�J�SSKnSU<SUS3nURU[SS9 g)Nrz:Failing to pass a value to the 'type_params' parameter of z@ is deprecated, as it leads to incorrect behaviour when calling zl on a stringified annotation that references a PEP 695 type parameter. It will be disallowed in Python 3.15.���category�
stacklevel)�warnings�warn�DeprecationWarning)rr�depr_messages   r|�._deprecation_warning_for_no_type_params_passedr�s=�����\�� �z�"0�	1��
�M�M�,�);��M�Jr~c��\rSrSrSrSrSrg)�	_Sentineli�r�c��g)Nz
<sentinel>r���selfs r|�__repr__�_Sentinel.__repr__�s��r~N)r�r�r��__firstlineno__�	__slots__r�__static_attributes__r�r~r|rr�s���I�r~r��recursive_guardc�L^^^^�T[La
[S5 Sm[U[5(aUR	TTTTS9$[U[
[[R45(Ga7[U[5(ao[SUR55nURn[X5(aURUSSUS4nOURUnU(a	[Un[UUUU4SjUR55nXpR:XaU$[U[5(a[
URU5$[U[R5(a%[R "["R$U5$UR'U5$U$)z�Evaluate all forward references in the given type t.

For use of globalns and localns see the docstring for get_type_hints().
recursive_guard is used to prevent infinite recursion with a recursive
ForwardRef.
ztyping._eval_typer�r"c3�f# �UH'n[U[5(a[U5OUv� M) g7fr�)ryrzr�r�r{s  r|r��_eval_type.<locals>.<genexpr>�s,����%�C�$.�c�3�#7�#7�
�3��S�@�%�s�/1Nr�c	3�>># �UHn[UTTTTS9v� M g7f)r"N)�
_eval_type)r��a�globalns�localnsr#�type_paramss  ����r|r�r'�s,����
� ��
��8�W�k�?�
� �s�)�	_sentinelrryr�	_evaluater�r	r�r�r�r��__unpacked__r�r�rrr�reduce�operator�or_�	copy_with)r�r+r,r-r#r��is_unpacked�ev_argss ````   r|r)r)�sT����i��6�7J�K����!�Z� � ��{�{�8�W�k�?�{�[�[��!�m�\�5�?�?�C�D�D��a��&�&����:�:���D��.�.�K�.�q�7�7��L�L�$�s��)�T�"�X�!6�7���L�L��&����1�I���
��Z�Z�	
�
���j�j� ��H��a��&�&�����g�6�6��a����)�)��#�#�H�L�L�'�:�:��;�;�w�'�'��Hr~c�"�\rSrSrSrSrSrSrg)�_Finali�zMixin to prohibit subclassing.)�__weakref__c�&�SU;a[S5eg)N�_rootz&Cannot subclass special typing classes�r�)r�r�r�s   r|�__init_subclass__�_Final.__init_subclass__�s���$���D�E�E�r~r�N)r�r�r�r�__doc__r r=r!r�r~r|r8r8�s��(� �I�Fr~r8c� �\rSrSrSrSrSrSrg)�_NotIterableiarMixin to prevent iteration, without being compatible with Iterable.

That is, we could do::

    def __iter__(self): raise TypeError()

But this would make users of this mixin duck type-compatible with
collections.abc.Iterable - isinstance(foo, Iterable) would be True.

Luckily, we can instead prevent iteration by setting __iter__ to None, which
is treated specially.
r�N)r�r�r�rr?r �__iter__r!r�r~r|rArAs����I��Hr~rAc�d�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
Sr\S
5rSrg)r�i)�_namer?�_getitemc�T�XlURUlURUlgr�)rEr�rDr?)r�getitems  r|�__init__�_SpecialForm.__init__s���
��%�%��
�����r~c�<�US;aUR$[U5e)N>r�r�)rD�AttributeError)r�items  r|�__getattr__�_SpecialForm.__getattr__ s ���/�/��:�:���T�"�"r~c� �[SU<35e)N�Cannot subclass r<�r�basess  r|�__mro_entries__�_SpecialForm.__mro_entries__&s���*�4�(�3�4�4r~c� �SUR-$�N�typing.�rDrs r|r�_SpecialForm.__repr__)����4�:�:�%�%r~c��UR$r�rXrs r|�
__reduce__�_SpecialForm.__reduce__,����z�z�r~c� �[SU<35e)NzCannot instantiate r<)rr�r�s   r|�__call__�_SpecialForm.__call__/s���-�d�X�6�7�7r~c��[X4$r��r�r�others  r|�__or__�_SpecialForm.__or__2����T�[�!�!r~c��[X4$r�rcrds  r|�__ror__�_SpecialForm.__ror__5����U�[�!�!r~c��[US35e)Nz! cannot be used with isinstance()r<�rr�s  r|�__instancecheck__�_SpecialForm.__instancecheck__8����4�&� A�B�C�Cr~c��[US35e)Nz! cannot be used with issubclass()r<�rr�s  r|�__subclasscheck__�_SpecialForm.__subclasscheck__;rqr~c�$�URX5$r�)rE�rr�s  r|�__getitem__�_SpecialForm.__getitem__>s���}�}�T�.�.r~)r?rErDN)r�r�r�rr rHrMrSrr\r`rfrjrortrrxr!r�r~r|r�r�sO��0�I�'�
#�5�&��8�"�"�D�D��/��/r~r�)r;c��\rSrSrSrSrg)�_TypedCacheSpecialFormiCc�X�[U[5(dU4nUR"U/UQ76$r�)ryr�rErws  r|rx�"_TypedCacheSpecialForm.__getitem__Ds*���*�e�,�,�$��J��}�}�T�/�J�/�/r~r�N)r�r�r�rrxr!r�r~r|r{r{Cs��0r~r{c�4^�\rSrSrU4SjrU4SjrSrU=r$)�_AnyMetaiJc�J>�U[La[S5e[TU]
U5$)Nz+typing.Any cannot be used with isinstance())rr��superro)rr��	__class__s  �r|ro�_AnyMeta.__instancecheck__Ks&����3�;��I�J�J��w�(��-�-r~c�4>�U[Lag[TU]	5$)Nz
typing.Any)rr�r)rr�s �r|r�_AnyMeta.__repr__Ps����3�;���w��!�!r~r�)r�r�r�rrorr!�
__classcell__�r�s@r|rrJs���.�
"�"r~rc�,^�\rSrSrSrU4SjrSrU=r$)riVa;Special type indicating an unconstrained type.

- Any is 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.
c�J>�U[La[S5e[TU]
U5$)NzAny cannot be instantiated)rr�r��__new__�r�r��kwargsr�s   �r|r��Any.__new__bs%����#�:��8�9�9��w��s�#�#r~r�)r�r�r�rr?r�r!r�r�s@r|rrVs���	�$�$r~r)�	metaclassc��[US35e)ajSpecial type indicating functions that never return.

Example::

    from typing import NoReturn

    def stop() -> NoReturn:
        raise Exception('no way')

NoReturn can also be used as a bottom type, a type that
has no values. Starting in Python 3.11, the Never type should
be used for this concept instead. Type checkers should treat the two
equivalently.
� is not subscriptabler<rws  r|rdrdhs�� �t�f�1�2�
3�3r~c��[US35e)a(The bottom type, a type that has no members.

This can be used to define a function that should never be
called, or a function that never returns::

    from typing import Never

    def never_call_me(arg: Never) -> None:
        pass

    def int_or_str(arg: int | str) -> None:
        never_call_me(arg)  # type checker error
        match arg:
            case int():
                print("It's an int")
            case str():
                print("It's a str")
            case _:
                never_call_me(arg)  # OK, arg is of type Never
r�r<rws  r|r`r`}s��,�t�f�1�2�
3�3r~c��[US35e)aKUsed to spell the type of "self" in classes.

Example::

    from typing import Self

    class Foo:
        def return_self(self) -> Self:
            ...
            return self

This is especially useful for:
    - classmethods that are used as alternative constructors
    - annotating an `__enter__` method which returns self
r�r<rws  r|rlrl�s��"�t�f�1�2�
3�3r~c��[US35e)a�Represents an arbitrary literal string.

Example::

    from typing import LiteralString

    def run_query(sql: LiteralString) -> None:
        ...

    def caller(arbitrary_string: str, literal_string: LiteralString) -> None:
        run_query("SELECT * FROM students")  # OK
        run_query(literal_string)  # OK
        run_query("SELECT * FROM " + literal_string)  # OK
        run_query(arbitrary_string)  # type checker error
        run_query(  # type checker error
            f"SELECT * FROM students WHERE name = {arbitrary_string}"
        )

Only string literals and other LiteralStrings are compatible
with LiteralString. This provides a tool to help prevent
security issues such as SQL injection.
r�r<rws  r|r_r_�s��0�t�f�1�2�
3�3r~c�4�[XS3SS9n[X45$)aSpecial type construct to mark class variables.

An annotation wrapped in ClassVar indicates that a given
attribute is intended to be used as a class variable and
should not be set on instances of that class.

Usage::

    class Starship:
        stats: ClassVar[dict[str, int]] = {} # class variable
        damage: int = 10                     # instance variable

ClassVar accepts only types and cannot be further subscribed.

Note that ClassVar is not a class itself, and should not
be used with isinstance() or issubclass().
� accepts only single type.Trs�r�r��rr�rLs   r|rr��&��&�z�V�+E�#F�\`�a�D���w�'�'r~c�4�[XS3SS9n[X45$)a�Special typing construct to indicate final names to type checkers.

A final name cannot be re-assigned or overridden in a subclass.

For example::

    MAX_SIZE: Final = 9000
    MAX_SIZE += 1  # Error reported by type checker

    class Connection:
        TIMEOUT: Final[int] = 10

    class FastConnector(Connection):
        TIMEOUT = 1  # Error reported by type checker

There is no runtime checking of these properties.
r�Trsr�r�s   r|rr�r�r~c�(^�US:Xa[S5e[U[5(dU4nSm[U4SjU55n[U5n[	U5S:XaUS$[	U5S:Xa[S5U;a
[
XS	S
9$[
X5$)a�Union type; Union[X, Y] means either X or Y.

On Python 3.10 and higher, the | operator
can also be used to denote unions;
X | Y means the same thing to the type checker as Union[X, Y].

To define a union, use e.g. Union[int, str]. Details:
- The arguments must be types and there must be at least one.
- None as an argument is a special case and is replaced by
  type(None).
- Unions of unions are flattened, e.g.::

    assert Union[Union[int, str], float] == Union[int, str, float]

- Unions of a single argument vanish, e.g.::

    assert Union[int] == int  # The constructor actually returns int

- Redundant arguments are skipped, e.g.::

    assert Union[int, str, int] == Union[int, str]

- When comparing unions, the argument order is ignored, e.g.::

    assert Union[int, str] == Union[str, int]

- You cannot subclass or instantiate a union.
- You can use Optional[X] as a shorthand for Union[X, None].
r�z Cannot take a Union of no types.z)Union[arg, ...]: each arg must be a type.c3�<># �UHn[UT5v� M g7fr��r��r�r�r�s  �r|r��Union.<locals>.<genexpr>s����?�J�q�{�1�c�*�*�J����rr�Nr��name)r�ryr�r�r�rxr��rr�r�s  @r|rr�s����>�R���:�;�;��j�%�(�(� �]�
�
5�C��?�J�?�?�J�%�j�1�J�
�:��!���!�}��
�:��!���T�
�j� 8�!�$��D�D��d�/�/r~c��[X4$)z�Used from the C implementation of TypeVar.

TypeVar.__or__ calls this instead of returning types.UnionType
because we want to allow unions between TypeVars and strings
(forward references).
rc)�left�rights  r|�_make_unionr�s������r~c�F�[XS35n[U[S54$)z,Optional[X] is equivalent to Union[X, None].z requires a single type.N)r�rrx)rr�r{s   r|rr&s)���j�F�*B�"C�
D�C���d�4�j��!�!r~c
��[U5n[S[[[	U55555n[
X5$![
a Nf=f)a�Special typing form to define literal types (a.k.a. value types).

This form can be used to indicate to type checkers that the corresponding
variable or function parameter has a value equivalent to the provided
literal (or one of several literals)::

    def validate_simple(data: Any) -> Literal[True]:  # always returns True
        ...

    MODE = Literal['r', 'rb', 'w', 'wb']
    def open_helper(file: str, mode: MODE) -> str:
        ...

    open_helper('/some/path', 'r')  # Passes type check
    open_helper('/other/path', 'typo')  # Error in type checker

Literal[...] cannot be subclassed. At runtime, an arbitrary value
is allowed as type argument to Literal[...], but type checkers may
impose restrictions.
c3�*# �UH	upUv� M g7fr�r�)r�r��_s   r|r��Literal.<locals>.<genexpr>Hs���^�)]���1�)]�s�)r�r�r�r��_value_and_type_iterr�r�rws  r|rr,sU��2)��4�J�
��^��d�;O�PZ�;[�6\�)]�^�^�
� ��1�1���
��
�s�-A�
A�Ac��[US35e)aSpecial form for marking type aliases.

Use TypeAlias to indicate that an assignment should
be recognized as a proper type alias definition by type
checkers.

For example::

    Predicate: TypeAlias = Callable[..., bool]

It's invalid when used anywhere except as in the example above.
r�r<rws  r|roroOs���t�f�1�2�
3�3r~c��^�US:Xa[S5e[U[5(dU4nUSSLd#[US[5(d[S5eSm/U4SjUSS5QUSP7n[	X5$)	aGSpecial form for annotating higher-order functions.

``Concatenate`` can be used in conjunction with ``ParamSpec`` and
``Callable`` to represent a higher-order function which adds, removes or
transforms the parameters of a callable.

For example::

    Callable[Concatenate[int, P], int]

See PEP 612 for detailed information.
r�z&Cannot take a Concatenate of no types.r�.zMThe last parameter to Concatenate should be a ParamSpec variable or ellipsis.z/Concatenate[arg, ...]: each arg must be a type.c3�<># �UHn[UT5v� M g7fr�r�r�s  �r|r��Concatenate.<locals>.<genexpr>vs����A��A�K��3�'�'��r�N)r�ryr�rr�r�s  @r|rr`s�����R���@�A�A��j�%�(�(� �]�
��r�N�c�!�Z�
�2��	�%J�%J��:�;�	;�
;�C�R�A��C�R��A�R�:�b�>�R�J�#�D�5�5r~c�6�[XS35n[X45$)a	Special typing construct for marking user-defined type predicate functions.

``TypeGuard`` can be used to annotate the return type of a user-defined
type predicate function.  ``TypeGuard`` only accepts a single type argument.
At runtime, functions marked this way should return a boolean.

``TypeGuard`` aims to benefit *type narrowing* -- a technique used by static
type checkers to determine a more precise type of an expression within a
program's code flow.  Usually type narrowing is done by analyzing
conditional code flow and applying the narrowing to a block of code.  The
conditional expression here is sometimes referred to as a "type predicate".

Sometimes it would be convenient to use a user-defined boolean function
as a type predicate.  Such a function should use ``TypeGuard[...]`` or
``TypeIs[...]`` as its return type to alert static type checkers to
this intention. ``TypeGuard`` should be used over ``TypeIs`` when narrowing
from an incompatible type (e.g., ``list[object]`` to ``list[int]``) or when
the function does not return ``True`` for all instances of the narrowed type.

Using  ``-> TypeGuard[NarrowedType]`` tells the static type checker that
for a given function:

1. The return value is a boolean.
2. If the return value is ``True``, the type of its argument
   is ``NarrowedType``.

For example::

     def is_str_list(val: list[object]) -> TypeGuard[list[str]]:
         '''Determines whether all objects in the list are strings'''
         return all(isinstance(x, str) for x in val)

     def func1(val: list[object]):
         if is_str_list(val):
             # Type of ``val`` is narrowed to ``list[str]``.
             print(" ".join(val))
         else:
             # Type of ``val`` remains as ``list[object]``.
             print("Not a list of strings!")

Strict type narrowing is not enforced -- ``TypeB`` need not be a narrower
form of ``TypeA`` (it can even be a wider form) and this may lead to
type-unsafe results.  The main reason is to allow for things like
narrowing ``list[object]`` to ``list[str]`` even though the latter is not
a subtype of the former, since ``list`` is invariant.  The responsibility of
writing type-safe type predicates is left to the user.

``TypeGuard`` also works with type variables.  For more information, see
PEP 647 (User-Defined Type Guards).
r�r�r�s   r|rprpzs$��h�z�V�+E�#F�G�D���w�'�'r~c�6�[XS35n[X45$)aV
Special typing construct for marking user-defined type predicate functions.

``TypeIs`` can be used to annotate the return type of a user-defined
type predicate function.  ``TypeIs`` only accepts a single type argument.
At runtime, functions marked this way should return a boolean and accept
at least one argument.

``TypeIs`` aims to benefit *type narrowing* -- a technique used by static
type checkers to determine a more precise type of an expression within a
program's code flow.  Usually type narrowing is done by analyzing
conditional code flow and applying the narrowing to a block of code.  The
conditional expression here is sometimes referred to as a "type predicate".

Sometimes it would be convenient to use a user-defined boolean function
as a type predicate.  Such a function should use ``TypeIs[...]`` or
``TypeGuard[...]`` as its return type to alert static type checkers to
this intention.  ``TypeIs`` usually has more intuitive behavior than
``TypeGuard``, but it cannot be used when the input and output types
are incompatible (e.g., ``list[object]`` to ``list[int]``) or when the
function does not return ``True`` for all instances of the narrowed type.

Using  ``-> TypeIs[NarrowedType]`` tells the static type checker that for
a given function:

1. The return value is a boolean.
2. If the return value is ``True``, the type of its argument
   is the intersection of the argument's original type and
   ``NarrowedType``.
3. If the return value is ``False``, the type of its argument
   is narrowed to exclude ``NarrowedType``.

For example::

    from typing import assert_type, final, TypeIs

    class Parent: pass
    class Child(Parent): pass
    @final
    class Unrelated: pass

    def is_parent(val: object) -> TypeIs[Parent]:
        return isinstance(val, Parent)

    def run(arg: Child | Unrelated):
        if is_parent(arg):
            # Type of ``arg`` is narrowed to the intersection
            # of ``Parent`` and ``Child``, which is equivalent to
            # ``Child``.
            assert_type(arg, Child)
        else:
            # Type of ``arg`` is narrowed to exclude ``Parent``,
            # so only ``Unrelated`` is left.
            assert_type(arg, Unrelated)

The type inside ``TypeIs`` must be consistent with the type of the
function's argument; if it is not, static type checkers will raise
an error.  An incorrectly written ``TypeIs`` function can lead to
unsound behavior in the type system; it is the user's responsibility
to write such functions in a type-safe manner.

``TypeIs`` also works with type variables.  For more information, see
PEP 742 (Narrowing types with ``TypeIs``).
r�r�r�s   r|rqrq�s$��B�z�V�+E�#F�G�D���w�'�'r~c�X�\rSrSrSrSrSSS.Sjjr\4SjrS	r	S
r
SrSrS
r
Srg)ri�z-Internal wrapper to hold a forward reference.)�__forward_arg__�__forward_code__�__forward_evaluated__�__forward_value__�__forward_is_argument__�__forward_is_class__�__forward_module__NF)rwc�8�[U[5(d[SU<35eURS5(aSUS3nOUn[	USS5nXlX`lSUlSUl	X l
X@lX0lg![
a [SU<35ef=f)	Nz*Forward reference must be a string -- got �*�(z,)[0]z<string>�evalz/Forward reference must be an expression -- got F)
ryrzr��
startswith�compile�SyntaxErrorr�r�r�r�r�r�r�)rr{r�rvrw�arg_to_compile�codes       r|rH�ForwardRef.__init__�s����#�s�#�#��H���P�Q�Q�
�>�>�#��� ���U�^�N� �N�	Y��>�:�v�>�D� #�� $��%*��"�!%���'2�$�$,�!�"(����	Y�� O�PS�w�W�X�X�	Y�s�
A?�?Bc��U[La
[S5 SnURU;aU$UR(aX!LGaUcUc0=pOUcUnOUcUnURb5[[RRURS5SU5nU(aX[U5[U5p!UH=nURnUR(aXa;dM'XQU'URUS5 M? [[URX5SUR URS9n[#UUUUX@R1-S9UlSUlUR$$)Nztyping.ForwardRef._evaluater��__dict__z*Forward references must evaluate to types.)r�rtr"T)r.rr�r�r�r��sys�modules�getr�r�r��popr�r�r�r�r)r�)rr+r,r-r#�param�
param_name�type_s        r|r/�ForwardRef._evaluatesQ���)�#�:�;X�Y��K����?�2��K��)�)�W�-D���G�O�%'�'��7��!�"����"���&�&�2�"��K�K�O�O�D�$;�$;�T�B�J�PX����$(��N�D��M�'�(�E�!&���J��4�4�
�8R�/4��,����J��5�	)� ��T�*�*�H�>�<� �8�8�$(�$=�$=�	�E�&0�����!0�4H�4H�3I�!I�&�D�"�*.�D�&��%�%�%r~c�`�[U[5(d[$UR(aJUR(a9URUR:H=(a UR
UR
:H$URUR:H=(a URUR:H$r�)ryr�NotImplementedr�r�r�r�rds  r|�__eq__�ForwardRef.__eq__Hs����%��,�,�!�!��%�%�%�*E�*E��(�(�E�,A�,A�A�F��*�*�e�.E�.E�E�
G��$�$��(=�(=�=�D��'�'�5�+C�+C�C�	Er~c�D�[URUR45$r�)�hashr�r�rs r|�__hash__�ForwardRef.__hash__Qs���T�)�)�4�+B�+B�C�D�Dr~c��[X4$r�rcrds  r|rf�ForwardRef.__or__Trhr~c��[X4$r�rcrds  r|rj�ForwardRef.__ror__Wrlr~c�h�URcSnOSUR<3nSUR<US3$)N�z	, module=zForwardRef(�))r�r�)r�module_reprs  r|r�ForwardRef.__repr__Zs@���"�"�*��K�%�d�&=�&=�%@�A�K��T�1�1�4�[�M��C�Cr~)r�r�r�r�r�r�r��TN)r�r�r�rr?r rHr.r/r�r�rfrjrr!r�r~r|rr�s@��7�'�I�
)�u�)�08A�/&�bE�E�"�"�Dr~rr�c�T�[U[5(+=(a
 [USS5$)N�#__typing_is_unpacked_typevartuple__F)ryrxr��r�s r|r�r�bs(���A�t�$�
$�
E��A�<�e�D�Fr~c�R�[U[[45=(d [U5$r�)ryrrr�r�s r|�_is_typevar_liker�gs���a�'�9�-�.�N�2K�A�2N�Nr~c���Sn[XSS9n[U[5(aUR[Ld'[U[
5(a [
USS5(a[US35eU$)N�*Parameters to generic types must be types.T)r�r0Fr�)r�ryr�r�rrr	r�r�)rr{r�s   r|�_typevar_substr�ks^��
6�C�
�c�D�
1�C�	�C��	'�	'�C�N�N�f�,D�	�C��	&�	&�7�3���+N�+N��3�%�=�>�?�?��Jr~c	�
�URnURU5nX4S-SH&n[U[5(dM[	SU35e [U5n[U5nUnXt-
S-
n	Sn
Sn[
U5Hbup�[U
[5(aM[U
SS5nU(dM2[U5S:XdMCUSSLdMMU
b[	S5eUn
USnMd U
b[X�5n[X�U
-
S-
5n	OX�-U:�a[	S	US
USUS-
35eX�U	-
:Xa+UR5(a[UR5nOX(Xi-
n/USUQU/XH-
-QUPU/Xy-
U-
U-
S-
-QX&U	-
SQ7$)Nr�z(More than one TypeVarTuple parameter in r�r�r�.z6More than one unpacked arbitrary-length tuple argumentr�Too few arguments for r�z, expected at least )
r��indexryr
r�r��	enumeraterxr��minr�r��__default__)r�aliasr�r��typevartuple_indexr��alen�plenr�r��var_tuple_index�fillarg�kr{r��replacements                r|�_typevartuple_prepare_substr�ts���
�
!�
!�F����d�+���Q�.�/�0���e�\�*�*��F�u�g�N�O�O�1��t�9�D��v�;�D��D��%��)�E��O��G��D�/����#�t�$�$��c�#C�T�J�G��w�3�w�<�1�,�����1C�"�.�#�$\�]�]�"#��!�!�*��"��"��4�)���E�/�1�A�5�6��	
���	��0���8#�#'�&�(<�T�!�V�H�F�G�	G��e�|��� 0� 0� 2� 2�"�4�#3�#3�4�����.���	
�e�t����)�'�.�
/��	���)�T�\�D�(�+=�=��A�
B�	�

�U�l�m�	��r~c��[U[[45(a[SU55nU$[U5(d[	SU35eU$)Nc3�:# �UHn[US5v� M g7f)zExpected a type.Nr��r�r*s  r|r��#_paramspec_subst.<locals>.<genexpr>�s���D��1�K��#5�6�6����zFExpected a list of types, an ellipsis, ParamSpec, or Concatenate. Got )ryr�r�r�r��rr{s  r|�_paramspec_substr��s[���#��e�}�%�%��D��D�D���J��C�
 �
 ��:�:=��@�A�	A��Jr~c��URnURU5nU[U5:Xa%UR5(a/UQURPnU[U5:�a[SU35e[U5S:Xa [
US5(d
US:XdeU4nU$[X$[5(a/USUQ[X$5PX$S-SQ7nU$)Nr�r�r)
r�r�r�r�r�r�r�ryr�r�)rr�r�r��is     r|�_paramspec_prepare_substr�s���
�
!�
!�F����T��A��C��I�~�$�*�*�,�,�(��(�t�'�'�(���C��I�~��0���8�9�9�
�6�{�a���t�A�w� 7� 7��A�v�
�v��w���K�
�D�G�T�	"�	"�7��b�q��7�5���>�7�D�1���J�7���Kr~c���[U[5(dU4n[SU55nU[[4;nU(a�U(d[	SUR
S35e[
SU55(d[	SURS35e[[U55[U5:wa[	SURS35eO�URHn[USS	5nUcMU"X5nM [X5 /n[URU5H>up6[U[5(aURU5 M-UR!U5 M@ [U5n[#X5$)
ajParameterizes a generic class.

At least, parameterizing a generic class is the *main* thing this method
does. For example, for some generic class `Foo`, this is called when we
do `Foo[int]` - there, with `cls=Foo` and `args=int`.

However, note that this method is also called when defining generic
classes in the first place with `class Foo(Generic[T]): ...`.
c3�8# �UHn[U5v� M g7fr��r}r�s  r|r��)_generic_class_getitem.<locals>.<genexpr>�s���0�4�a��q�!�!�4�r�zParameter list to z[...] cannot be emptyc3�8# �UHn[U5v� M g7fr�)r�r�s  r|r�r�s���5��1�#�A�&�&��r�zParameters to zF[...] must all be type variables or parameter specification variables.z[...] must all be unique�__typing_prepare_subst__N)ryr�rrr�r��allr�r��setr�r�r��zipr
r�r�r�)r�r��is_generic_or_protocolr��prepare�new_args�new_args       r|�_generic_class_getitemr�sc���d�E�"�"��w���0�4�0�0�D� �W�h�$7�7�����$�S�%5�%5�$6�6K�L��
��5��5�5�5�� �����/8�9�:�
:��s�4�y�>�S��Y�&�� �����.F�G�I�
I�'�
�'�'�E��e�%?��F�G��"��s�)��(�	&�c�0���!�#�"4�"4�d�;�N�E��%��.�.�����(�����(�	<�
�X�����#�#r~c�^
�[[U]
"U0UD6 /nSUR;a[UR;nOB[UR
;=(a( URS:g=(a [U5[:gnU(a[S5eSUR;a�[UR5nSnURHIn[U[5(dMUR[LdM/Ub[S5eURnMK Ubc[U5n[U5m
UT
::dESR!U
4SjU55nSR!SU55n	[SUS	U	S
35eUn[#U5Ulg)N�__orig_bases__rz!Cannot inherit from plain Genericz0Cannot inherit from Generic[...] multiple times.r�c3�H># �UHoT;dM
[U5v� M g7fr��rz)r�r��gvarsets  �r|r��)_generic_init_subclass.<locals>.<genexpr>s����"M�5�a�W�<L�6�3�q�6�6�5�s�	"�"c3�8# �UHn[U5v� M g7fr�r)r��gs  r|r�rs���"9�5�a�3�q�6�6�5�r�zSome type variables (z) are not listed in Generic[r�)r�rr=r�r�	__bases__r�rx�_TypedDictMetar�r�ryr�r�r�r
r�r�)r�r�r��tvars�error�gvars�base�tvarset�s_vars�s_argsrs          @r|�_generic_init_subclassr"�so���	�'�3�)�4�:�6�:��E��3�<�<�'��3�-�-�-���C�M�M�)�0��L�L�J�.�0���I��/�	�
��;�<�<��3�<�<�'�(��);�);�<�����&�&�D��4��/�/��O�O�w�.��$�#�J�L�L��+�+��
'����%�j�G��%�j�G��g�%����"M�5�"M�M�����"9�5�"9�9���"7��x�@:�:@���!D�E�E��E��u��C�r~c�T�URS5=(a URS5$)N�__)r��endswith)�attrs r|�
_is_dunderr's���?�?�4� �8�T�]�]�4�%8�8r~c�f^�\rSrSrSrSSS.SjrSrSrS	rU4S
jr	Sr
SrU4S
jrSr
U=r$)�_BaseGenericAliasia�The central part of the 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.
TN��instr�c�6�X lX0lXlSUlgr�)�_instrDr�r )r�originr+r�s    r|rH�_BaseGenericAlias.__init__s���
��
� ����r~c���UR(d0[SURSURRS35eUR"U0UD6nXlU$![a U$f=f)NzType z cannot be instantiated; use z
() instead)r-r�rDr�r��__orig_class__�	Exception)rr�r��results    r|r`�_BaseGenericAlias.__call__!s}���z�z��e�D�J�J�<�0#�#'�?�?�#;�#;�"<�J�H�I�
I����$�1�&�1��	�$(�!�
�
���	���
�	�s�A�
A+�*A+c��/nURU;aURUR5 URU5nXS-SH�n[U[5(a O�[U[
5(dP[
USS5nU(aU"U5OSn[U[5(a[SU55(a O4M}M[U[5(dM� O UR[5 [U5$)Nr�rSc3�p# �UH,n[U[5=(a [U[5v� M. g7fr�)ryrx�
issubclassr)r��b2s  r|r��4_BaseGenericAlias.__mro_entries__.<locals>.<genexpr>Bs-����"+�B�#�2�t�,�H��B��1H�H�"+�s�46)r�r�r�ryr)rxr�r��anyr7r)rrR�resr�b�meth�	new_basess       r|rS�!_BaseGenericAlias.__mro_entries__.s������?�?�%�'��J�J�t���'�
�K�K������s�t��A��!�.�/�/���a��&�&��q�"3�T�:��+/�D��K�T�	��y�%�0�0���"+����
��1��A�w�'�'���"
�J�J�w���S�z�r~c���US;a)UR=(d URR$SUR;a&[	U5(d[URU5$[
U5e)N>r�r�r�)rDr�r�r�r'r�rK)rr&s  r|rM�_BaseGenericAlias.__getattr__NsX���/�/��:�:�9����!9�!9�9��4�=�=�(��D�1A�1A��4�?�?�D�1�1��T�"�"r~c�~>�[U5(dUS;a[TU]	X5 g[URX5 g)N>r-rD�_nparams�	_defaults)r'r��__setattr__�setattrr�)rr&�valr�s   �r|rE�_BaseGenericAlias.__setattr__Xs1����d���t�'R�R��G���*��D�O�O�T�/r~c�6�UR[U55$r��rtrxrns  r|ro�#_BaseGenericAlias.__instancecheck__^����%�%�d�3�i�0�0r~c��[S5e)NzBSubscripted generics cannot be used with class and instance checksr<rss  r|rt�#_BaseGenericAlias.__subclasscheck__as���5�6�	6r~c�>�[[[TU]
5[	UR
5Vs/sHn[
U5(aMUPM sn-55$s snfr�)r�r
r��__dir__�dirr�r'�rr&r�s  �r|rP�_BaseGenericAlias.__dir__esP����C����)�$'����$8�Q�$8�D�
�4�@P�4�$8�Q�R�S�T�	T��Qs�A�A)r�r r-rD)r�r�r�rr?rHr`rSrMrErortrPr!r�r�s@r|r)r)s?����(,�$����@#�0�1�6�T�Tr~r)c�^�\rSrSrSSS.U4SjjrSrSrSrS	r\	S
5r
SrSrS
r
SrSrU4SjrSrSrU=r$)r�iuTNr*c��>�[TU]XUS9 [U[5(dU4n[SU55UlU[
[4;n[UUS9UlU(dURUl	gg)Nr*c3�<# �UHnU[LaSOUv� M g7f).N)�_TypingEllipsisr�s  r|r��)_GenericAlias.__init__.<locals>.<genexpr>�s&���/�)-�A�&'�/�%9�c�� �)-�s�r�)
r�rHryr�r�rrr�r�r�)rr.r�r+r�r�r�s      �r|rH�_GenericAlias.__init__�s|���
������6��$��&�&��7�D��/�)-�/�/��
�#)�g�x�-@�#@� �6��%=�
����$�/�/�D�O�r~c��[U[5(d[$URUR:H=(a URUR:H$r�)ryr�r�r�r�rds  r|r��_GenericAlias.__eq__�sA���%��/�/�!�!����5�#3�#3�3�4��M�M�U�^�^�3�	5r~c�D�[URUR45$r�)r�r�r�rs r|r��_GenericAlias.__hash__�s���T�_�_�d�m�m�4�5�5r~c��[X4$r�rc�rr�s  r|rf�_GenericAlias.__or__�rhr~c��[X4$r�rc�rr�s  r|rj�_GenericAlias.__ror__�����T�Z� � r~c�&�UR[[4;a[SU35eUR(d[US35e[U[5(dU4n[SU56nURU5nURU5nU$)Nz%Cannot subscript already-subscripted r�c3�8# �UHn[U5v� M g7fr�rr�s  r|r��,_GenericAlias.__getitem__.<locals>.<genexpr>�s���=��1�m�A�.�.��r�)
r�rrr�r�ryr�r��_determine_new_argsr4)rr�r�rs    r|rx�_GenericAlias.__getitem__�s���"�?�?�w��1�1��C�D�6�J�K�K��"�"��t�f�$;�<�=�=��$��&�&��7�D��=��=�>���+�+�D�1���N�N�8�$���r~c
�D�URnUHn[USS5nUcMU"X5nM [U5n[U5nXV:wa[SXV:�aSOSSUSUSU35e[	[X!55n[
URURU55$)Nrr�r�r�r�r�r�)	r�r�r�r�r�rr��_make_substitutionr�)rr�r�r�r
r�r��new_arg_by_params        r|rh�!_GenericAlias._determine_new_args�s����$�$���E��e�%?��F�G��"��t�*����4�y���6�{���<��d�T�[�6�e�"D�O�TX�SY�Z'�'+�f�K��v�?�@�
@���F� 1�2���T�,�,�T�]�]�<L�M�N�Nr~c	��/nUGHn[U[5(aURU5 M,[USS5nU(aU"X$5nOm[USS5nU(dUnOV/nUH@n	[U	[5(aURX)5 M-URX)5 MB U[
U5nUR[RR:Xa)[U[5(aURU5 GM	[U5(aURU5 GM-[U[5(a,UR[
URXB555 GMnURU5 GM� U$)z$Create a list of new type arguments.r�Nr�r�)
ryrxr�r�r
r�r�r�r�r�rr�rl)
rr�rmr�old_arg�	substfuncr�	subparamsr�r�s
          r|rl� _GenericAlias._make_substitution�s?�����G��'�4�(�(�����(����);�T�B�I��#�$4�$=�>��#�G�-=�r�B�	� �%�G� �G�&��%�a��6�6�#�N�N�+;�+>�?�#�N�N�+;�+>�?�	'�
&�e�G�n�5�G����+�/�/�":�":�:�z�'�SX�?Y�?Y�����(�*�7�3�3�����(��G�U�+�+�����$�1�1�'�L�M������(�q�r�r~c�`�URURXRURS9$�N)r�r+)r�r�rDr-�rr�s  r|r4�_GenericAlias.copy_with&s#���~�~�d�o�o�t�*�*�4�:�:�~�V�Vr~c��UR(aSUR-nO[UR5nUR(a6SR	URVs/sHn[U5PM sn5nOSnUSUS3$s snf)NrWr�z()r�r�)rDr�r�r�r�)rr�r*r�s    r|r�_GenericAlias.__repr__)sq���:�:��t�z�z�)�D��d�o�o�.�D��=�=��9�9�T�]�]�C�]��j��m�]�C�D�D��D���q���a� � ��	Ds�!Bc��UR(a[5URnOURn[UR5n[U5S:Xa[
US[5(dUun[RX44$�Nr�r)	rD�globalsr�r�r�r�ryr2rG)rr.r�s   r|r\�_GenericAlias.__reduce__5se���:�:��Y�t�z�z�*�F��_�_�F��T�]�]�#���t�9��>�*�T�!�W�e�"<�"<��E�D����&��/�/r~c�n>�[UR[5(a[SU<35eUR(a[
TU]U5$UR[LaG[U;agURU5nXS-SH n[U[5(dMX0LdM  g UR4$)NrPr�r�)ryr�r�r�rDr�rSrrr�r))rrRrr<r�s    �r|rS�_GenericAlias.__mro_entries__?s�����d�o�o�|�4�4��.�t�h�7�8�8��:�:��7�*�5�1�1��?�?�g�%��5� �����D�!�A��Q�3�4�[���a�!2�3�3��
��!����!�!r~c#�"# �[Uv� g7fr�)rrrs r|rB�_GenericAlias.__iter__Ns����T�l��s�
)r�r�r�)r�r�r�rrHr�r�rfrjrrxrhrlr4rr\rSrBr!r�r�s@r|r�r�usg���4.2��0�0�5�6�"�!�����<O�:<�|W�
!�0�
"��r~r�c�n^�\rSrSrSSSS.U4Sjjr\S5rSrS	rU4S
jr	Sr
SrS
rSr
U=r$)�_SpecialGenericAliasiVTNr�)r+r��defaultsc��>�UcURn[TU]	XUS9 X lXPlUR
S:XaSURS3UlgSUR
SURS3Ulg)Nr*r�zA generic version of r�)r�r�rHrCrDr�r�r?)rr.�nparamsr+r�r�r�s      �r|rH�_SpecialGenericAlias.__init__Wsw����<��?�?�D�
������6��
�!�����
�*�2�6�3F�3F�2G�q�I�D�L�2�6�3D�3D�2E�Q�v�GZ�GZ�F[�[\�]�D�Lr~c
��^�[U[5(dU4nSm[U4SjU55nUR(ar[U5UR:aY[U5[UR5-UR:�a*/UQUR[U5UR-
SQ7n[U5nX R:wa�UR(a&SUR[UR5-
3nO[UR5nUR(d[
US35e[
SX R:�aSOSSUS	US
U35eURU5$)Nr�c3�<># �UHn[UT5v� M g7fr�r�r�s  �r|r��3_SpecialGenericAlias.__getitem__.<locals>.<genexpr>g�����;�F�q�{�1�c�*�*�F�r�r�r�r�r�r�r�r�r�)ryr�rDr�rCrzr�r4)rr�r��expectedr�s    @r|rx� _SpecialGenericAlias.__getitem__bs:����&�%�(�(��Y�F�:���;�F�;�;���N�N��F��d�m�m�+��F��c�$�.�.�1�1�T�]�]�B�M�v�M����s�6�{�T�]�]�/J�/K� L�M�F���[�
����&��~�~�&�t�}�}�s�4�>�>�7J�'J�&K�L���t�}�}�-���=�=��4�&�(?� @�A�A��d�Z�-�-�-G�6�U�"S�Sb�cg�bh�i'�'1�l�+�h�Z�I�J�
J��~�~�f�%�%r~c�V�[URUURURS9$ru)r�r�rDr-�rr�s  r|r4�_SpecialGenericAlias.copy_withzs$���T�_�_�f�"&�*�*�4�:�:�?�	?r~c� �SUR-$rVrXrs r|r�_SpecialGenericAlias.__repr__~rZr~c��>�[U[5(a [URUR5$[U[5(d[XR5$[
TU]U5$r�)ryr�r7r�r�r�rt)rr�r�s  �r|rt�&_SpecialGenericAlias.__subclasscheck__�sR����c�/�0�0��c�n�n�d�o�o�>�>��#�}�-�-��c�?�?�3�3��w�(��-�-r~c��UR$r�rXrs r|r\�_SpecialGenericAlias.__reduce__�r^r~c��[X4$r�rcr_s  r|rf�_SpecialGenericAlias.__or__�rhr~c��[X4$r�rcrbs  r|rj�_SpecialGenericAlias.__ror__�rdr~)r?rDrC)r�r�r�rrHrrxr4rrtr\rfrjr!r�r�s@r|r�r�VsM���04�4�"�	^�	^��&��&�.?�&�.��"�!�!r~r�c�>^�\rSrSrSSS.U4SjjrU4SjrSrU=r$)�_DeprecatedGenericAliasi�TNr*c�.>�[TU]XXES9 X0lg)Nr*)r�rH�_removal_version)rr.r��removal_versionr+r�r�s      �r|rH� _DeprecatedGenericAlias.__init__�s���	����t��?� /�r~c�>�SSKnURURSUR3URS9 [
TU]U5$)Nrr��r�)r�_deprecatedr�rDr�r�ro)rr+rr�s   �r|ro�)_DeprecatedGenericAlias.__instancecheck__�sJ�����������q�����-�d�6K�6K�	�	
��w�(��.�.r~)r�)r�r�r�rrHror!r�r�s@r|r�r��s���8<�4�0�0�/�/r~r�c�.^�\rSrSrU4SjrSrSrU=r$)�_CallableGenericAliasi�c	�,>�URS:XdeURn[U5S:Xa![US5(a[TU]5$SSR
USSVs/sHn[U5PM sn5S[US5S3$s snf)	Nrr�rztyping.Callable[[r�r�z], r�)rDr�r�r�r�rr�r�)rr�r*r�s   �r|r�_CallableGenericAlias.__repr__�s�����z�z�Z�'�'�'��}�}���t�9��>�n�T�!�W�5�5��7�#�%�%���Y�Y�t�C�R�y�A�y�!�
�1�
�y�A�B�C�3��d�2�h�'�(��+�	,��As�#B
c��URn[U5S:Xa[US5(d[USS5US4n[R
[U44$)Nr�rr�)r�r�r�r�r2rGrrvs  r|r\� _CallableGenericAlias.__reduce__�sR���}�}���D�	�Q��>�$�q�'�#:�#:���S�b�	�?�D��H�,�D����(�D�!1�1�1r~r�)r�r�r�rrr\r!r�r�s@r|r�r��s���,�2�2r~r�c�0�\rSrSrSrSr\S5rSrg)�
_CallableTypei�c�V�[URUURURS9$ru)r�r�rDr-r�s  r|r4�_CallableType.copy_with�s&��$�T�_�_�f�*.�*�*�4�:�:�G�	Gr~c���[U[5(a[U5S:wa[S5eUup#[U[5(a[U5U4nOX#4nURU5$)Nr�z6Callable must be used as Callable[[arg, ...], result].)ryr�r�r�r��__getitem_inner__)rr�r�r3s    r|rx�_CallableType.__getitem__�sh���&�%�(�(�C��K�1�,<��<�=�
=�����d�D�!�!��D�k�6�*�F��^�F��%�%�f�-�-r~c���Uup#Sn[X45nU[LaUR[U45$[	U[
5(dU4n[SU55nX#4-nURU5$)Nz.Callable[args, result]: result must be a type.c3�8# �UHn[U5v� M g7fr�rr&s  r|r��2_CallableType.__getitem_inner__.<locals>.<genexpr>�s���8�4�C�]�3�'�'�4�r�)r��Ellipsisr4rWryr�)rr�r�r3r�s     r|r��_CallableType.__getitem_inner__�sq�����>���V�)���8���>�>�?�F�";�<�<��$��&�&��7�D��8�4�8�8���	�!���~�~�f�%�%r~r�N)	r�r�r�rr4rxrr�r!r�r~r|r�r��s!��G�.��
&��
&r~r�c�$�\rSrSr\S5rSrg)�
_TupleTypei�c�^�[U[5(dU4n[U5S:�a<USSLa4Sm[U4SjUSS55nUR/UQ[P75$Sm[U4SjU55nURU5$)Nr�r�.z Tuple[t, ...]: t must be a type.c3�<># �UHn[UT5v� M g7fr�r�r�s  �r|r��)_TupleType.__getitem__.<locals>.<genexpr>�s����D��1�;�q�#�.�.��r�z*Tuple[t0, t1, ...]: each t must be a type.c3�<># �UHn[UT5v� M g7fr�r�r�s  �r|r�r��r�r�)ryr�r�r4rW)rr�r�s  @r|rx�_TupleType.__getitem__�s�����&�%�(�(��Y�F��v�;�!���r�
�c� 1�4�C��D��s���D�D�F��>�>�"<�F�"<�O�"<�=�=�:���;�F�;�;���~�~�f�%�%r~r�N)r�r�r�rrrxr!r�r~r|r�r��s���	&��	&r~r�c�R^�\rSrSrSrSrSrU4SjrSrSr	U4Sjr
S	rU=r$)
r�i�c��[U$r�rcr�s  r|r4�_UnionGenericAlias.copy_with�s���V�}�r~c��[U[[R45(d[$[UR5[UR5:H$![a# [URUR5s$f=fr�)	ryr�r�r�r�r
r�r�r�rds  r|r��_UnionGenericAlias.__eq__�sh���%�"4�e�o�o�!F�G�G�!�!�	J��t�}�}�%��U�^�^�)<�<�<���	J�*�4�=�=�%�.�.�I�I�	J�s�*A�*B�Bc�>�[[UR55$r�)r��	frozensetr�rs r|r��_UnionGenericAlias.__hash__�s���I�d�m�m�,�-�-r~c��>�URn[U5S:XaFUS[S5LaS[US5S3$US[S5LaS[US5S3$[TU]5$)Nr�rztyping.Optional[r�r�)r�r�rxr�r�r�rr�r�s  �r|r�_UnionGenericAlias.__repr__�sw����}�}���t�9��>��A�w�$�t�*�$�)�*�T�!�W�*=�)>�a�@�@��a��D��J�&�)�*�T�!�W�*=�)>�a�@�@��w��!�!r~c�6�UR[U55$r�rJrns  r|ro�$_UnionGenericAlias.__instancecheck__�rLr~c�N�URHn[X5(dM g g)NT)r�r7)rr�r{s   r|rt�$_UnionGenericAlias.__subclasscheck__�s���=�=�C��#�#�#��!r~c�>>�[TU]5unup#U[U44$r�)r�r\r)rrr.r�r�s    �r|r\�_UnionGenericAlias.__reduce__s&���$�w�1�3���n�v��e�T�]�"�"r~r�)
r�r�r�rr4r�r�rrortr\r!r�r�s@r|r�r��s,����J�.�"�1��
#�#r~r�c��SU5$)Nc3�:# �UHo[U54v� M g7fr�)rxr�s  r|r��'_value_and_type_iter.<locals>.<genexpr>s���-�*�Q��Q��L�*�r�r�)r�s r|r�r�s
��-�*�-�-r~c� �\rSrSrSrSrSrg)r�i
c��[U[5(d[$[[	UR
55[[	UR
55:H$r�)ryr�r�r
r�r�rds  r|r��_LiteralGenericAlias.__eq__sB���%�!5�6�6�!�!��'��
�
�6�7�3�?S�TY�Tb�Tb�?c�;d�d�dr~c�P�[[[UR555$r�)r�r�r�r�rs r|r��_LiteralGenericAlias.__hash__s���I�2�4�=�=�A�B�C�Cr~r�N)r�r�r�rr�r�r!r�r~r|r�r�
s��e�Dr~r�c�(^�\rSrSrU4SjrSrU=r$)r�ic��>�[US[[45(a
/USSQUSQ7$[US[5(a/USSQUSRQ7n[
TU]U5$)Nr�)ryr�r�r�r�r�r4)rr�r�s  �r|r4�"_ConcatenateGenericAlias.copy_withss����f�R�j�4��-�0�0�.�V�C�R�[�.�6�"�:�.�.��f�R�j�":�;�;�9�v�c�r�{�9�V�B�Z�%8�%8�9�F��w� ��(�(r~r�)r�r�r�rr4r!r�r�s@r|r�r�s
���)�)r~r�c�2�[XS35n[X4S9$)aqType unpack operator.

The type unpack operator takes the child types from some container type,
such as `tuple[int, str]` or a `TypeVarTuple`, and 'pulls them out'.

For example::

    # For some generic class `Foo`:
    Foo[Unpack[tuple[int, str]]]  # Equivalent to Foo[int, str]

    Ts = TypeVarTuple('Ts')
    # Specifies that `Bar` is generic in an arbitrary number of types.
    # (Think of `Ts` as a tuple of an arbitrary number of individual
    #  `TypeVar`s, which the `Unpack` is 'pulling out' directly into the
    #  `Generic[]`.)
    class Bar(Generic[Unpack[Ts]]): ...
    Bar[int]  # Valid
    Bar[int, str]  # Also valid

From Python 3.11, this can also be done using the `*` operator::

    Foo[*tuple[int, str]]
    class Bar(Generic[*Ts]): ...

And from Python 3.12, it can be done using built-in syntax for generics::

    Foo[*tuple[int, str]]
    class Bar[*Ts]: ...

The operator can also be used along with a `TypedDict` to annotate
`**kwargs` in a function signature::

    class Movie(TypedDict):
        name: str
        year: int

    # This function expects two keyword arguments - *name* of type `str` and
    # *year* of type `int`.
    def foo(**kwargs: Unpack[Movie]): ...

Note that there is only some runtime checking of this operator. Not
everything the runtime allows may be accepted by static type checkers.

For more information, see PEPs 646 and 692.
r�)r.r�)r��_UnpackGenericAliasr�s   r|rrrrs$��^�z�V�+E�#F�G�D��d��9�9r~c�N^�\rSrSrSrU4Sjr\S5r\S5rSr	U=r
$)r�iQc�:�S[URS5S3$)Nztyping.Unpack[rr�)r�r�rs r|r�_UnpackGenericAlias.__repr__Rs"�� �
�4�=�=��+;� <�=�Q�?�?r~c�H>�UR(aU$[TU]	U5$r�)r�r�rxr�s  �r|rx�_UnpackGenericAlias.__getitem__Ws!����3�3��K��w�"�4�(�(r~c��UR[Lde[UR5S:XdeURun[	U[
[R45(a*UR[La[S5eUR$g)Nr�z*Unpack[...] must be used with a tuple type)
r�rrr�r�ryr�r�r	r�r�r�s  r|r��2_UnpackGenericAlias.__typing_unpacked_tuple_args__\ss�����&�(�(�(��4�=�=�!�Q�&�&�&��}�}����c�M�5�+=�+=�>�?�?��~�~�U�*�� L�M�M��<�<��r~c��UR[Lde[UR5S:Xde[	URS[
5$r{)r�rrr�r�ryr
rs r|r��7_UnpackGenericAlias.__typing_is_unpacked_typevartuple__gsA�����&�(�(�(��4�=�=�!�Q�&�&�&��$�-�-��*�L�9�9r~r�)r�r�r�rrrx�propertyr�r�r!r�r�s@r|r�r�Qs6���@�
)�
�����:��:r~r�c��\rSrSrSrSrg)rWinz(Internal placeholder for ... (ellipsis).r�N)r�r�r�rr?r!r�r~r|rWrWns��2r~rW>�_is_protocolrr1r��__type_params__�__protocol_attrs__�_is_runtime_protocol�__non_callable_proto_members__>r?r�r�rHr r�r9�__match_args__�__annotations__r�__subclasshook__�__class_getitem__�__abstractmethods__r!�_MutableMapping__markerc��[5nURSSHonURS;aM[US05n/URQUQ7H8nURS5(aMU[;dM'URU5 M: Mq U$)z�Collect protocol members from a protocol class objects.

This includes names actually defined in the class dictionary, as well
as names that appear in annotations. Special names (above) are skipped.
Nr�>rrr��_abc_)r
�__mro__r�r�r�r��EXCLUDED_ATTRIBUTES�add)r��attrsr�annotationsr&s     r|�_get_protocol_attrsr��s���
�E�E����C�R� ���=�=�3�3���d�$5�r�:��2�d�m�m�2�k�2�D��?�?�7�+�+��<O�0O��	�	�$��3�	!��Lr~c�X�[U5nUR(a[S5eUR[LagUR
H4nURRS[5nU[LdM.XSl O [RUlUR"U/UQ70UD6 g)Nz Protocols cannot be instantiatedrH)	rxr�r�rH�_no_init_or_replace_initr�r�r��object)rr�r�r�r�inits      r|r�r��s���
�t�*�C�
����:�;�;��|�|�3�3�������}�}� � ��-E�F���/�/��L��	�������L�L��'��'��'r~r�c��[R"US-5=(d U$![a Of=f[R"US-5RRSU5$![[4a gf=f)Nr�r�)r��_getframemodulenamerK�	_getframe�	f_globalsr�r�)�depth�defaults  r|�_callerr�sx��
��&�&�u�q�y�1�<�W�<���
��
��
��}�}�U�Q�Y�'�1�1�5�5�j�'�J�J���J�'�
���
�s�!$�
1�1�2A(�(A;�:A;r�c��[U5S;$)z�Allow instance and class checks for special stdlib modules.

The abc and functools modules indiscriminately call isinstance() and
issubclass() on the whole MRO of a user class, which may contain protocols.
>Nr�r)r)rs r|�_allow_reckless_class_checksr�s���5�>�7�7�7r~)rr1r&r'r3r2r$r/r"r5r8�Buffer�AbstractContextManager�AbstractAsyncContextManager)zcollections.abc�
contextlibc��SSKJn U$)Nr��getattr_static)�inspectr
rs r|�_lazy_load_getattr_staticr�s
��'��r~c�(�[UR44$r�)rr�)�psargss r|�_pickle_psargsr�s���6�,�,�.�.�.r~c�(�[UR44$r�)rr�)�pskwargss r|�_pickle_pskwargsr�s���X�0�0�2�2�2r~c�D�[U[5(d[S5eg)a�Raise TypeError if `arg` is not an instance of `type`
in `issubclass(arg, <protocol>)`.

In most cases, this is verified by type.__subclasscheck__.
Checking it again unnecessarily would slow down issubclass() checks,
so, we don't perform this check unless we absolutely have to.

For various error paths, however,
we want to ensure that *this* error message is shown to the user
where relevant, rather than a typing.py-specific error message.
z"issubclass() arg 1 must be a classN)ryrxr�r�s r|�_type_check_issubclass_arg_1r�s"���c�4� � ��<�=�=�!r~c�@^�\rSrSrU4SjrU4SjrSrSrSrU=r	$)�
_ProtocolMetai�c�b>�US:XaU[4:XaO�[U;a�UH{nU[[1;aMUR[RUR/5;aME[U[5(a[USS5(aMn[SU<35e [TU],"XX#40UD6$)Nrr�Fz5Protocols can only inherit from other protocols, got )rrr�r��_PROTO_ALLOWLISTr�r�r7r�r�r�r�)�mclsr�rR�	namespacer�rr�s      �r|r��_ProtocolMeta.__new__s�����:��%�G�:�"5��
��
����V�W�-�-��}�}�(8�(<�(<�T�_�_�b�(Q�Q�"�4��1�1�#�D�.�%�@�@�$��#�h�(�����w��t�5�F�v�F�Fr~c�l>�[TU]"U0UD6 [USS5(a[U5Ulgg)Nr�F)r�rHr�r�r�r�s   �r|rH�_ProtocolMeta.__init__s6���
���$�)�&�)��3���.�.�%8��%=�C�"�/r~c���U[La[RX5$[USS5(a�[	5(d�[USS5(d[U5 [
S5eUR(a]URRS5[La;[U5 [UR5n[
S[U5SSS	35e[X5$)
Nr�Fr��LInstance and class checks can only be used with @runtime_checkable protocolsr�zRProtocols with non-method members don't support issubclass(). Non-method members: r�r�r�)rrxrtr�rrr�r�r�r��_proto_hook�sortedrz�_abc_subclasscheck)r�re�non_method_attrss   r|rt�_ProtocolMeta.__subclasscheck__s����(�?��)�)�#�5�5��C���/�/�0�2�2��3� 6��>�>�,�U�3��3����2�2��L�L�$�$�%7�8�K�G�,�U�3�#)�#�*L�*L�#M� ��,�,/�0@�,A�!�B�,G�+H��K���"�#�-�-r~c��U[La[RX5$[USS5(d[	X5$[USS5(d[5(d[
S5e[	X5(ag[5nURH"nU"X5nUbMX0R;dM" g g![a  gf=f)Nr�Fr�r"T)rrxror��_abc_instancecheckrr�rr�rKr�)r��instancer
r&rGs     r|ro�_ProtocolMeta.__instancecheck__4s����(�?��)�)�#�8�8��s�N�E�2�2�%�c�4�4���3�U�;�;�,�.�.��<�=�
=��c�,�,��2�4���*�*�D�
�$�X�4���{�t�+M�+M�M���+���
"�
���
�s�B6�6
C�Cr�)
r�r�r�rr�rHrtror!r�r�s@r|rr�s���G�&>�
.�4�r~rc���URRSS5(d[$URH�nURH�nX#R;aURUc
[s s $ M>[US05n[
U[RR5(dMgX$;dMn[U[5(dM�[USS5(dM� M� [s $ g)Nr�Fr�T)r�r�r�r�r�r�ryr�r�r)r7r)r�rer&rr�s     r|r#r#Vs����<�<���N�E�2�2����&�&���M�M�D��}�}�$��=�=��&�.�)�)��"�$�(9�2�>�K��;����(?�(?�@�@��'��u�g�.�.�7�5�.�RW�3X�3X��"�"�!�'� r~c�8^�\rSrSrSrSrSrSrU4SjrSr	U=r
$)rinaBase class for protocol classes.

Protocol classes are defined as::

    class Proto(Protocol):
        def meth(self) -> int:
            ...

Such classes are primarily used with static type checkers that recognize
structural subtyping (static duck-typing).

For example::

    class C:
        def meth(self) -> int:
            return 0

    def func(x: Proto) -> int:
        return x.meth()

    func(C())  # Passes static type check

See PEP 544 for details. Protocol classes decorated with
@typing.runtime_checkable act as simple-minded runtime protocols that check
only the presence of given attributes, ignoring their type signatures.
Protocol classes can be generic, they are defined as::

    class GenProto[T](Protocol):
        def meth(self) -> T:
            ...
r�TFc�V>�[TU]"U0UD6 URRSS5(d![	SUR
55UlSUR;a[UlUR(a*UR[RLa[Ul	ggg)Nr�Fc3�0# �UHo[Lv� M g7fr��r�r�r<s  r|r��-Protocol.__init_subclass__.<locals>.<genexpr>�s���"H�-�Q��=�-�s�r�)r�r=r�r�r:rr�r#r�rHrr�r�s   �r|r=�Protocol.__init_subclass__�s����
��!�4�2�6�2��|�|�����6�6�"�"H�#�-�-�"H�H�C���S�\�\�1�#.�C� ��������0A�0A� A�3�C�L�!B�r~)r�r�r�rr?r r�r�r=r!r�r�s@r|rrns%����@�I��L� ��
4�
4r~rc�\^�\rSrSrSrU4SjrSrSrSrSr	Sr
U4S	jrS
rSr
U=r$)�_AnnotatedAliasi�alRuntime representation of an annotated type.

At its core 'Annotated[t, dec1, dec2, ...]' is an alias for the type 't'
with extra annotations. The alias behaves like a normal typing alias.
Instantiating is the same as instantiating the underlying type; binding
it to types is also the same.

The metadata itself is stored in a '__metadata__' attribute as a tuple.
c�>�[U[5(aURU-nURn[TU]XSS9 X lg)Nrr�)ryr5�__metadata__r�r�rH)rr.�metadatar�s   �r|rH�_AnnotatedAlias.__init__�sC����f�o�.�.��*�*�X�5�H��&�&�F�
����k��:�$�r~c�X�[U5S:XdeUSn[X R5$r{)r�r5r7)rr��new_types   r|r4�_AnnotatedAlias.copy_with�s.���6�{�a�����!�9���x�):�):�;�;r~c��SR[UR5SRSUR555$)Nztyping.Annotated[{}, {}]r�c3�8# �UHn[U5v� M g7fr�)r�r�s  r|r��+_AnnotatedAlias.__repr__.<locals>.<genexpr>�s���9�'8�!�d�1�g�g�'8�r�)�formatr�r�r�r7rs r|r�_AnnotatedAlias.__repr__�s9��)�0�0��t���'��I�I�9�t�'8�'8�9�9�
�	
r~c�b�[R[UR4UR-44$r�)r2rGrr�r7rs r|r\�_AnnotatedAlias.__reduce__�s1���������)�D�,=�,=�=�"
�
�	
r~c��[U[5(d[$URUR:H=(a URUR:H$r�)ryr5r�r�r7rds  r|r��_AnnotatedAlias.__eq__�sE���%��1�1�!�!����5�#3�#3�3�<��%�%��);�);�;�	=r~c�D�[URUR45$r�)r�r�r7rs r|r��_AnnotatedAlias.__hash__�s���T�_�_�d�&7�&7�8�9�9r~c�0>�US;ag[TU]U5$)N>r�r�r)r�rMrRs  �r|rM�_AnnotatedAlias.__getattr__�s����/�/���w�"�4�(�(r~c��UR4$r�)r�rQs  r|rS�_AnnotatedAlias.__mro_entries__�s�����!�!r~)r7)r�r�r�rr?rHr4rr\r�r�rMrSr!r�r�s@r|r5r5�s5����%�<�

�
�
=�:�)�
"�"r~r5c���[U5S:a[S5e[US5(a[S5eSn[USUSS9n[	USS	5n[X45$)
a�Add context-specific metadata to a type.

Example: Annotated[int, runtime_check.Unsigned] indicates to the
hypothetical runtime_check module that this type is an unsigned int.
Every other consumer of this type can ignore this metadata and treat
this type as int.

The first argument to Annotated must be a valid type.

Details:

- It's an error to call `Annotated` with less than two arguments.
- Access the metadata via the ``__metadata__`` attribute::

    assert Annotated[int, '$'].__metadata__ == ('$',)

- Nested Annotated types are flattened::

    assert Annotated[Annotated[T, Ann1, Ann2], Ann3] == Annotated[T, Ann1, Ann2, Ann3]

- Instantiating an annotated type is equivalent to instantiating the
underlying type::

    assert Annotated[C, Ann1](5) == C(5)

- Annotated can be used as a generic type alias::

    type Optimized[T] = Annotated[T, runtime.Optimize()]
    # type checker will treat Optimized[int]
    # as equivalent to Annotated[int, runtime.Optimize()]

    type OptimizedList[T] = Annotated[list[T], runtime.Optimize()]
    # type checker will treat OptimizedList[int]
    # as equivalent to Annotated[list[int], runtime.Optimize()]

- Annotated cannot be used with an unpacked TypeVarTuple::

    type Variadic[*Ts] = Annotated[*Ts, Ann1]  # NOT valid

  This would be equivalent to::

    Annotated[T1, T2, T3, ..., Ann1]

  where T1, T2 etc. are TypeVars, which would be invalid, because
  only one type should be passed to Annotated.
r�zUAnnotated[...] should be used with at least two arguments (a type and an annotation).rz?Annotated[...] should not be used with an unpacked TypeVarTuplez$Annotated[t, ...]: t must be a type.Trsr�N)r�r�r�r�r�r5)rr�r�r.r8s     r|rr�sw��b�6�{�Q���'�(�	(�!����+�+��0�1�	1�
0�C�
����C�T�
B�F��V�A�B�Z� �H��6�,�,r~c�|�[U[5(a[USS5(d[SU-5eSUl[5UlURH=n[[XS55nU(dURRU5 M=M? U$![an[SU<S35UeSnAff=f)a
Mark a protocol class as a runtime protocol.

Such protocol can be used with isinstance() and issubclass().
Raise TypeError if applied to a non-protocol class.
This allows a simple-minded structural check very similar to
one trick ponies in collections.abc such as Iterable.

For example::

    @runtime_checkable
    class Closable(Protocol):
        def close(self): ...

    assert isinstance(open('/some/file'), Closable)

Warning: this will check only the presence of the required methods,
not their type signatures!
r�FzB@runtime_checkable can be only applied to protocol classes, got %rTNz,Failed to determine whether protocol member z is a method member)r7rr�r�r�r
r�r��callabler�r2)r�r&�is_callable�es    r|rkrk	s���&�c�7�#�#�7�3���+N�+N��"�$'�(�)�	)�#�C��
*-��C�&��&�&��		=�"�7�3�d�#;�<�K���2�2�6�6�t�<��'��J���	��>�t�h�G%�%���
��	�s�B�
B;�%B6�6B;c��U$)z�Cast a value to a type.

This returns the value unchanged.  To the type checker this
signals that the return value has the designated type, but at
runtime we intentionally don't check anything (we want this
to be as fast as possible).
r�)r�rGs  r|rTrT?	s	���Jr~c��U$)a�Ask a static type checker to confirm that the value is of the given type.

At runtime this does nothing: it returns the first argument unchanged with no
checks or side effects, no matter the actual type of the argument.

When a static type checker encounters a call to assert_type(), it
emits an error if the value is not of the specified type::

    def greet(name: str) -> None:
        assert_type(name, str)  # OK
        assert_type(name, int)  # type checker error
r�)rGr�s  r|rRrRJ	s	���Jr~c��[USS5(a0$[U[5(GaP0n[UR5H�nUc6[[
RRURS5S05nOUnURRS05n[U[R5(a0nUc[[U55OUnUcUcX�p�UR5HMup�U
c[S5n
[U
[5(a[!U
SSS9n
[#X�X�R$5n
X�U	'MO M� U(aU$UR5VVs0sHup�U['U5_M snn$Ucq[U[R(5(a
URnO?Un
[+U
S5(aU
R,n
[+U
S5(aM[U
S	05nUcUnOUcUn[USS5nUc1[U[.5(a0$[1S
R3U55e[U5n[USS5nUR5H^up�U
c[S5n
[U
[5(a([!U
[U[R(5(+SS9n
[#X�X.5XI'M` U(aU$UR5VVs0sHup�U['U5_M snn$s snnfs snnf)
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 recursively replaces all
'Annotated[T, ...]' with 'T' (unless 'include_extras=True').

The argument may be a module, class, method, or function. The annotations
are returned as a dictionary. For classes, annotations include also
inherited members.

TypeError is raised if the argument is not of a type that can contain
annotations, and an empty dictionary is returned if no annotations are
present.

BEWARE -- the behavior of globalns and localns is counterintuitive
(unless you are familiar with how eval() and exec() work).  The
search order is locals first, then globals.

- If no dict arguments are passed, an attempt is made to use the
  globals from obj (or the respective module's globals for classes),
  and these are also used as the locals.  If the object does not appear
  to have globals, an empty dictionary is used.  For classes, the search
  order is globals first then locals.

- If one dict argument is passed, it is used for both globals and
  locals.

- If two dict arguments are passed, they specify globals and
  locals, respectively.
�__no_type_check__Nr�r�FT)r�rw�__wrapped__�__globals__z1{!r} is not a module, class, method, or function.r�r�)r�ryrx�reversedr�r�r�r�r�r�r��GetSetDescriptorTyper��vars�itemsrzrr)r��_strip_annotations�
ModuleTyper�rU�_allowed_typesr�r@)r�r+r,�include_extras�hintsr�base_globals�ann�base_localsr��valuer�r��nsobjr-s               r|r\r\_	s���>�s�'��.�.��	��#�t������S�[�[�)�D���&�s�{�{���t����'M�z�[]�^��'���-�-�#�#�$5�r�:�C��#�u�9�9�:�:���.5�o�$�t�D�z�*�7�K���8�#3�-8�k�"�y�y�{����=� ��J�E��e�S�)�)�&�u�%�$�O�E�"�5��EY�EY�Z��#�d��
 +�#*�0'�u�`�RW�R]�R]�R_�,`�R_�$�!�Q�0B�1�0E�-E�R_�,`�`����c�5�+�+�,�,��|�|�H��E��%��/�/��)�)���%��/�/��u�m�R�8�H��?��G��	�����C�*�D�1�E��}��c�>�*�*��I��+�+1�6�#�;�8�
8���K�E��#�0�"�5�K��{�{�}����=���J�E��e�S�!�!��� *�3��0@�0@� A�A���E�
!��'�G���%�#�5�\�e�k�k�m�(\�m�d�a��,>�q�,A�)A�m�(\�\��K-a��J)]s�K7�K=c�"�[U[5(a[UR5$[	US5(a7UR[
[[4;a[URS5$[U[5(a>[SUR55nXR:XaU$URU5$[U[5(aC[SUR55nXR:XaU$[URU5$[U[R5(aR[SUR55nXR:XaU$[R "["R$U5$U$)z(Strip the annotations from a given type.r�rc3�8# �UHn[U5v� M g7fr��r[r�s  r|r��%_strip_annotations.<locals>.<genexpr>�	����H�Z��0��3�3�Z�r�c3�8# �UHn[U5v� M g7fr�rgr�s  r|r�rh�	rir�c3�8# �UHn[U5v� M g7fr�rgr�s  r|r�rh�	rir�)ryr5r[r�r�rirerhr�r�r�r4r	r�r�rr1r2r3)r��
stripped_argss  r|r[r[�	s ���!�_�%�%�!�!�,�,�/�/��q�,���A�L�L�X�{�H�4U�$U�!�!�*�*�Q�-�0�0��!�]�#�#��H�Q�Z�Z�H�H�
��J�J�&��H��{�{�=�)�)��!�\�"�"��H�Q�Z�Z�H�H�
��J�J�&��H��A�L�L�-�8�8��!�U�_�_�%�%��H�Q�Z�Z�H�H�
��J�J�&��H�������m�<�<��Hr~c��[U[5(a[$[U[[[
[45(aUR$U[La[$[U[R5(a[R$g)a[Get the unsubscripted version of a type.

This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar,
Annotated, and others. Return None for unsupported types.

Examples::

    >>> P = ParamSpec('P')
    >>> assert get_origin(Literal[42]) is Literal
    >>> assert get_origin(int) is None
    >>> assert get_origin(ClassVar[int]) is ClassVar
    >>> assert get_origin(Generic) is Generic
    >>> assert get_origin(Generic[T]) is Generic
    >>> assert get_origin(Union[T, int]) is Union
    >>> assert get_origin(List[Tuple[T, T]][int]) is list
    >>> assert get_origin(P.args) is P
N)ryr5rr)r	rrr�rr�r���tps r|rYrY�	si��$�"�o�&�&����"�(�,�$�o�7�8�8��}�}��	�W�}����"�e�o�o�&�&�����r~c�P�[U[5(aUR4UR-$[U[[
45(a1URn[X5(a[USS5US4nU$[U[R5(aUR$g)a�Get type arguments with all substitutions performed.

For unions, basic simplifications used by Union constructor are performed.

Examples::

    >>> T = TypeVar('T')
    >>> assert get_args(Dict[str, int]) == (str, int)
    >>> assert get_args(int) == ()
    >>> assert get_args(Union[int, Union[T, int], str][int]) == (int, str)
    >>> assert get_args(Union[int, Tuple[T, int]][str]) == (int, Tuple[str, int])
    >>> assert get_args(Callable[[], T][int]) == ([], int)
Nr�r�)ryr5r�r7r�r	r�r�r�r�r�)ror;s  r|rXrX�	s����"�o�&�&��
�
��"�/�/�1�1��"�}�l�3�4�4��k�k��*�2�3�3���C�R��>�3�r�7�+�C��
��"�e�o�o�&�&��{�{��
r~c�"�[U[5$)z�Check if an annotation is a TypedDict class.

For example::

    >>> from typing import TypedDict
    >>> class Film(TypedDict):
    ...     title: str
    ...     year: int
    ...
    >>> is_typeddict(Film)
    True
    >>> is_typeddict(dict)
    False
)ryrrns r|r^r^
s���b�.�)�)r~�dr{c�r�[U5n[U5[:�aUS[S-n[SU35e)a�Statically assert that a line of code is unreachable.

Example::

    def int_or_str(arg: int | str) -> None:
        match arg:
            case int():
                print("It's an int")
            case str():
                print("It's a str")
            case _:
                assert_never(arg)

If a type checker finds that a call to assert_never() is
reachable, it will emit an error.

At runtime, this throws an exception when called.
Nr�z*Expected code to be unreachable, but got: )r�r��_ASSERT_NEVER_REPR_MAX_LENGTH�AssertionError)r{rcs  r|rSrS)
s@��&
��I�E�
�5�z�1�1��4�4�5��=��
�E�e�W�M�
N�Nr~c�:�[U[5(a�[U5H�n[X5n[	US5(aDUR
UR
SUR3:wd[USS5UR:waMe[U[R5(aSUl
[U[R5(aSURl
[U[5(dM�[U5 M� SUl
U$![a U$f=f)a5Decorator to indicate that annotations are not type hints.

The argument must be a class or function; if it is a class, it
applies recursively to all methods and classes defined in that class
(but not to methods defined in its superclasses or subclasses).

This mutates the function(s) or class(es) in place.
r�r�r�NT)ryrxrQr�r�r�r�r�r�r�rT�
MethodType�__func__rbr�)r{�keyr�s   r|rbrbB
s����#�t����s�8�C��#�#�C��C��0�0��#�#�#�*:�*:�);�1�S�\�\�N�'K�K��3��d�3�s�~�~�E�
��#�u�1�1�2�2�(,��%��#�u�/�/�0�0�15����.��#�t�$�$��c�"�%�&
� $����J���
���J�
�s�D�
D�Dc�n^�SSKnURSSS9 [R"T5U4Sj5nU$)z�Decorator to give another decorator the @no_type_check effect.

This wraps the decorator with something that wraps the decorated
function in @no_type_check.
rNztyping.no_type_check_decorator�r�r�c�.>�T"U0UD6n[U5nU$r�)rb)r�r�rr	s   �r|�wrapped_decorator�2no_type_check_decorator.<locals>.wrapped_decoratorn
s!����$�'�$�'���T�"���r~)rr�rr)r	rr~s`  r|rcrcf
s?�������9�'��J��_�_�Y��� ��
�r~c��[S5e)z*Helper for @overload to raise when called.z�You should not call an overloaded function. A series of @overload-decorated functions outside a stub module should always be followed by an implementation that is not @overload-ed.)�NotImplementedError)r�r�s  r|�_overload_dummyr�w
s��
�	9�:�:r~c���[USU5nU[URURURR
'[$![a [$f=f)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::

    @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.
rx)r��_overload_registryr�r��__code__�co_firstlinenorKr�)r�fs  r|rfrf�
sa��@	��j�$�'�A�
�VZ��1�<�<�(����8����9R�9R�S�����
����
�s�7A�
A�Ac���[USU5nUR[;a/$[URnURU;a/$[	X!RR55$)z6Return all defined overloads for *func* as a sequence.rx)r�r�r�r�r��values)rr��mod_dicts   r|rZrZ�
s^��	��j�$�'�A��|�|�-�-��	�!�!�,�,�/�H��~�~�X�%��	�����(�/�/�1�2�2r~c�,�[R5 g)z$Clear all overloads in the registry.N)r��clearr�r~r|rUrU�
s�����r~c�D�SUlU$![[4a U$f=f)a�Decorator to indicate final methods and final classes.

Use this decorator to indicate to type checkers that the decorated
method cannot be overridden, and decorated class cannot be subclassed.

For example::

    class Base:
        @final
        def done(self) -> None:
            ...
    class Sub(Base):
        def done(self) -> None:  # Error reported by type checker
            ...

    @final
    class Leaf:
        ...
    class Other(Leaf):  # Error reported by type checker
        ...

There is no runtime checking of these properties. The decorator
attempts to set the ``__final__`` attribute to ``True`` on the decorated
object to allow runtime introspection.
T)�	__final__rKr�)r�s r|rWrW�
s5��4
����
�H��
�I�&�
�	
��H�
������T�KT�VT�T_co)�	covariant�V_co�VT_co�T_contra)�
contravariant�CT_co)r��boundrQraDeprecated alias to collections.abc.Callable.

    Callable[[int], str] signifies a function that takes a single
    parameter of type int and returns a str.

    The subscription syntax must always be used with exactly two
    values: the argument list and the return type.
    The argument list must be a list of types, a ParamSpec,
    Concatenate or ellipsis. The return type must be a single type.

    There is no syntax to indicate optional or keyword arguments;
    such function types are rarely used as callback types.
    r r�)r�)r�r�rr*a]Deprecated alias to builtins.tuple.

    Tuple[X, Y] is the cross-product type of X and Y.

    Example: Tuple[T1, T2] is a tuple of two elements corresponding
    to type variables T1 and T2.  Tuple[int, float, str] is a tuple
    of an int, a float and a string.

    To specify a variable-length tuple of homogeneous type, use Tuple[T, ...].
    rErBrGrHrCrD)r�ra�Deprecated alias to builtins.type.

    builtins.type or typing.Type can be used to annotate class objects.
    For example, suppose we have the following classes::

        class User: ...  # Abstract base for User classes
        class BasicUser(User): ...
        class ProUser(User): ...
        class TeamUser(User): ...

    And a function that takes a class argument that's a subclass of
    User and returns an instance of the corresponding class::

        def new_user[U](user_class: Type[U]) -> U:
            user = user_class()
            # (Here we could write the user object to a database)
            return user

        joe = new_user(BasicUser)

    At this point the type checker knows that joe has type BasicUser.
    c�4�\rSrSrSrSr\S\4Sj5rSr	g)r>iRz(An ABC with one abstract method __int__.r�r
c��gr�r�rs r|�__int__�SupportsInt.__int__X���r~N)
r�r�r�rr?r r�intr�r!r�r~r|r>r>Rs#��2��I��
��
��
r~r>c�4�\rSrSrSrSr\S\4Sj5rSr	g)r<i]z*An ABC with one abstract method __float__.r�r
c��gr�r�rs r|�	__float__�SupportsFloat.__float__cr�r~N)
r�r�r�rr?r r�floatr�r!r�r~r|r<r<]�#��4��I��
�5�
��
r~r<c�4�\rSrSrSrSr\S\4Sj5rSr	g)r;ihz,An ABC with one abstract method __complex__.r�r
c��gr�r�rs r|�__complex__�SupportsComplex.__complex__nr�r~N)
r�r�r�rr?r r�complexr�r!r�r~r|r;r;hs#��6��I��
�W�
��
r~r;c�4�\rSrSrSrSr\S\4Sj5rSr	g)r:isz*An ABC with one abstract method __bytes__.r�r
c��gr�r�rs r|�	__bytes__�SupportsBytes.__bytes__yr�r~N)
r�r�r�rr?r r�bytesr�r!r�r~r|r:r:sr�r~r:c�4�\rSrSrSrSr\S\4Sj5rSr	g)r=i~z*An ABC with one abstract method __index__.r�r
c��gr�r�rs r|�	__index__�SupportsIndex.__index__�r�r~N)
r�r�r�rr?r rr�r�r!r�r~r|r=r=~s#��4��I��
�3�
��
r~r=c�@^^�S7=m4m"UU4SjST7
n[U5$)r�c�>>�\rSrSrYrSrSr\SY4Sj5rSr	g)r9i�zMAn ABC with one abstract method __abs__ that is covariant in its return type.r�r
c��gr�r�rs r|�__abs__�SupportsAbs.__abs__�r�r~N)
r�r�r�rr�r?r rr�r!��.type_paramsr�s��r|r9r9�s&����W��I��
��
��
r~r9r0��
.generic_baser�r�s @@r|�#<generic parameters of SupportsAbs>r��s����
�
�X�
r~c�@^^�S7=m4m"UU4SjST7
n[U5$)r�c�F>�\rSrSrYrSrSr\SS\SY4Sjj5r	Sr
g)	r?i�zOAn ABC with one abstract method __round__ that is covariant in its return type.r��ndigitsr
c��gr�r�)rr�s  r|�	__round__�SupportsRound.__round__�r�r~N�r)r�r�r�rr�r?r rr�r�r!r�s��r|r?r?�s-����Y��I��
��
�Q�
��
r~r?r0r�s @@r|�%<generic parameters of SupportsRound>r��s����
�
�x�
r~r�c���UVVs/sHupEUPM	 nnnUVVs0sHupEU[USUS35_M nnn[R"XX2S9nU=UlURlU$s snnfs snnf)Nzfield z annotation must be a type�r�rv)r�r��
namedtupler�r�)r�r�rvr��nr��fields�nm_tpls        r|�
_make_nmtupler��s���!�
"�E�D�A�a�E�F�
"��
 ������A���s�*D�E�F�
F��
�
 �
�
#�
#�D�-5�F�F�>C�C�F��V�^�^�;��M��
#��
 s
�A+�A1>
�_maker��_asdict�_fields�_sourcerH�_replacer �__getnewargs__�_field_defaults>r�r�r�c��\rSrSrSrSrg)�NamedTupleMetai�c���[U;deUH"nU[LdMU[LdM[S5e [SU55nUR	S05n/nUHVnXs;aURU5 MU(dM$[SUS[
U5S:�aSOSS	S
RU535e [XR"5UVs/sHo�UPM	 snUSS9n	X)l
[U;a[n
[U
5U	l
UR5Hdup�U[;a[S
U-5eU[ ;dM)X�R";a[%X�U5 ['U5R(n
U
"X�U5 Mf [U;aU	R15 U	$s snf![*a6nUR-S['U5R.<SU<SU<35 eSnAff=f![a M�f=f)Nz3can only inherit from a NamedTuple type and Genericc3�B# �UHo[La[OUv� M g7fr�)�_NamedTupler�)r�rs  r|r��)NamedTupleMeta.__new__.<locals>.<genexpr>�s���O���{�2�e��<����r�zNon-default namedtuple field z cannot follow default fieldr��sr�� r�r�r�z&Cannot overwrite NamedTuple attribute zError calling __set_name__ on z
 instance z in )r�rr�r�r�r�r�r�r�rZrr�classmethodr��_prohibitedrK�_specialr�rFrx�__set_name__�
BaseException�add_noter�r=)r��typenamerR�nsrr��
default_names�
field_namer�r��
class_getitemryrG�set_namerPs               r|r��NamedTupleMeta.__new__�s���e�#�#�#��D��;�&�4�w�+>��I�K�K���O��O�O�����(�"�-���
��J����$�$�Z�0����"?�
�|�L>�*-�m�*<�q�*@�3�b�"I��#'�9�9�]�#;�"<�!>�?�?�	 ��x����8E�(F�
�1�A��
�(F�&(��&6�8��!���e��2�M�'2�=�'A�F�$����
�H�C��k�!�$�%M�PS�%S�T�T��H�$��n�n�,��F��-��#�C�y�5�5�H�� ��c�2�#�(�e���$�$�&��
��;)G��()���
�
�<�T�#�Y�=O�=O�<R�S(�(+�w�d�8�,�@������&����s0�F!�"G)�8	F&�&
G&�01G!�!G&�)
G7�6G7r�N)r�r�r�rr�r!r�r~r|r�r��s��/r~r�c�p�U[La!U(aSnSnOQSnSUSU<S3nSU-S-nO<Uc'U(a[S
5eSnSUSU<S3nSU-S-nOU(a[S5eU[LdUc%S
S	KnURWWSS9 UR	5n[X[
5S9n[4UlU$)aTyped version of namedtuple.

Usage::

    class Employee(NamedTuple):
        name: str
        id: int

This is equivalent to::

    Employee = collections.namedtuple('Employee', ['name', 'id'])

The resulting class has an extra __annotations__ attribute, giving a
dict that maps field names to types.  (The field names are also in
the _fields attribute, which is part of the namedtuple API.)
An alternative equivalent functional syntax is also accepted::

    Employee = NamedTuple('Employee', [('name', str), ('id', int)])
z3Creating NamedTuple classes using keyword argumentszq{name} is deprecated and will be disallowed in Python {remove}. Use the class-based or functional syntax instead.�2Failing to pass a value for the 'fields' parameter�`z = NamedTuple(z, [])`z�{name} is deprecated and will be disallowed in Python {remove}. To create a NamedTuple class with 0 fields using the functional syntax, pass an empty list, e.g. r�Nz\Cannot pass `None` as the 'fields' parameter and also specify fields using keyword arguments�(Passing `None` as the 'fields' parameterzIEither list of fields or keywords can be provided to NamedTuple, not bothrr{��messager��rv)	r.r�rr�rZr�rrIr)r�r�r��deprecated_thing�deprecation_msg�exampler�nts        r|rIrI�s��(����T��D�
�
 T���(��>�(��V�D�G�,���
��O�
����B��
�
 J���(��>�(��V�D�G�,���
��O�
��C�D�	D�
���f�n�����-��w��W������	�x��	�	:�B�#�
�B��
�Ir~rIc�(�[U;de[4$r�)rIr��rRs r|�_namedtuple_mro_entriesr�$s��������>�r~c#�&# �[U5nU[La[U5nU(aUSnO_gU[La[v� [U5unO?U[La[v� [U5unO U[
La[
v� [U5unOgM�7f)Nr)rYrrXrirerh)�annotation_type�annotation_origin�annotation_argss   r|�_get_typeddict_qualifiersr�+s����
�&��7���	�)�&��7�O��"1�!�"4���
�(�
*��N�!)�/�!:��_�
�+�
-���!)�/�!:��_�
�(�
*��N�!)�/�!:��_��%�s�BBc�,�\rSrSrSSjr\rSr\rSr	g)riAc���UH+n[U5[LdMU[LdM"[S5e [	SU55(a[4nOSn[R[U/UQ[P7U5n[US5(dX'l0nURS05n	Sn
U	R5VVs0sHup�U[X�URS9_M n	nn[5n
[5n[5n[5nUH�nURURRS055 URRS[55nU
U-n
UU-nURRS	[55nU
U-n
UU-nURURRS
S55 URURRSS55 M� URU	5 U	R5H�unn[[!U55n["U;aSnO[$U;aS
nOUnU(a#U
R'U5 UR)U5 O"UR'U5 U
R)U5 [*U;a)UU;a[SU<S35eUR'U5 M�UR'U5 UR)U5 M� U
R-U5(dSUSU
<SU<35eX�l[1U
5Ul[1U5Ul[1U5Ul5UlXGlU$s snnf)aCreate a new typed dict class object.

This method is called when TypedDict is subclassed,
or when TypedDict is instantiated. This way
TypedDict supports all three syntax forms described in its docstring.
Subclasses and instances of TypedDict return actual dictionaries.
zHcannot inherit from both a TypedDict type and a non-TypedDict base classc3�B# �UHn[U[5v� M g7fr�)r7rr1s  r|r��)_TypedDictMeta.__new__.<locals>.<genexpr>Os���5�u�!�z�!�W�%�%�u�r�r�rr�z?TypedDict('Name', {f0: t0, f1: t1, ...}); each t must be a typer��__required_keys__�__optional_keys__�__readonly_keys__�__mutable_keys__TFzCannot override mutable key z with read-only keyz,Required keys overlap with optional keys in z: required_keys=z, optional_keys=)rxrrr�r:r�r�r�rr�rZr�r�r
�updater�r�rirer��discardrh�
isdisjointr�r�rrrr�	__total__)r�r�rRr��totalr�generic_base�tp_dictr��own_annotationsr�r�ro�
required_keys�
optional_keys�
readonly_keys�mutable_keys�
base_required�
base_optional�annotation_keyr��
qualifiers�is_requireds                       r|r��_TypedDictMeta.__new__Bs=���D��D�z��/�D��4G��!A�B�B��
�5�u�5�5�5�#�:�L��L��,�,�~�t�5J�|�5J�T�5J�B�O���w� 0�1�1�%*�"����&�&�!2�B�7��O��)�.�.�0�
�0���
�{�2�7�+=�+=�>�>�0�	�
���
���
���
��u���D����t�}�}�0�0�1B�B�G�H� �M�M�-�-�.A�3�5�I�M��]�*�M��]�*�M� �M�M�-�-�.A�3�5�I�M��]�*�M��]�*�M�� � ����!2�!2�3F��!K�L�����
�
� 1� 1�2D�b� I�J��	���?�+�/>�/D�/D�/F�+�N�O��6��G�H�J��:�%�"���
�*�#��#����!�!�.�1��%�%�n�5��!�!�.�1��%�%�n�5��:�%�!�\�1�#�6�~�6H�-�.����!�!�.�1�� � ��0��%�%�n�5�30G�6�'�'�
�6�6�	
�:�4�&�A���0�-�!1�
3�	
�6�#.��$-�m�$<��!�$-�m�$<��!�$-�m�$<��!�#,�\�#:�� �!�����{
s�8!Mc��[S5e)Nz4TypedDict does not support instance and class checksr<)r�res  r|rt� _TypedDictMeta.__subclasscheck__�s���N�O�Or~r�N)T)
r�r�r�rr�r�r`rtror!r�r~r|rrAs��W�r�H�P�*�r~r�rc���U[LdUc6SSKnU[LaSnOSnSUSU<S3nSU-S	-nURXFS
S9 0nS[U50n[	5nUbX�S
'[USXrS9n	[4U	lU	$)a�A simple typed namespace. At runtime it is equivalent to a plain dict.

TypedDict creates a dictionary type such that a type checker will expect all
instances to have a certain set of keys, where each key is
associated with a value of a consistent type. This expectation
is not checked at runtime.

Usage::

    >>> class Point2D(TypedDict):
    ...     x: int
    ...     y: int
    ...     label: str
    ...
    >>> a: Point2D = {'x': 1, 'y': 2, 'label': 'good'}  # OK
    >>> b: Point2D = {'z': 3, 'label': 'bad'}           # Fails type check
    >>> Point2D(x=1, y=2, label='first') == dict(x=1, y=2, label='first')
    True

The type info can be accessed via the Point2D.__annotations__ dict, and
the Point2D.__required_keys__ and Point2D.__optional_keys__ frozensets.
TypedDict supports an additional equivalent form::

    Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'label': str})

By default, all keys must be present in a TypedDict. It is possible
to override this by specifying totality::

    class Point2D(TypedDict, total=False):
        x: int
        y: int

This means that a Point2D TypedDict can have any of the keys omitted. A type
checker is only expected to support a literal False or True as the value of
the total argument. True is the default, and makes all items defined in the
class body be required.

The Required and NotRequired special forms can also be used to mark
individual keys as being required or not required::

    class Point2D(TypedDict):
        x: int               # the "x" key must always be present (Required is the default)
        y: NotRequired[int]  # the "y" key can be omitted

See PEP 655 for more details on Required and NotRequired.

The ReadOnly special form can be used
to mark individual keys as immutable for type checkers::

    class DatabaseUser(TypedDict):
        id: ReadOnly[int]  # the "id" key must not be modified
        username: str      # the "username" key can be changed

Nrr�r�r�z
 = TypedDict(z, {{}})`z�{name} is deprecated and will be disallowed in Python {remove}. To create a TypedDict class with 0 fields using the functional syntax, pass an empty dictionary, e.g. r�r{r�r�r�r�r)r.rr�r�rrrJr)
r�r�rrr�r�r�r�rv�tds
          r|rJrJ�s���n���f�n���Y��S��I���h�Z�}�X�L��E��
.�
��
���	���-�w��W���
�T�&�\�	*�B�
�Y�F�
��!�<��	��"�b�	6�B�"��B��
�Ir~rJc��[4$r�)�
_TypedDictr�s r|�<lambda>r �s��:�-r~c�J�[XRS35n[X45$)a�Special typing construct to mark a TypedDict key as required.

This is mainly useful for total=False TypedDicts.

For example::

    class Movie(TypedDict, total=False):
        title: Required[str]
        year: int

    m = Movie(
        title='The Matrix',  # 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.
� accepts only a single type.�r�rDr�r�s   r|riri�s'��(�z�j�j�\�1M�#N�O�D���w�'�'r~c�J�[XRS35n[X45$)aSpecial typing construct to mark a TypedDict key as potentially missing.

For example::

    class Movie(TypedDict):
        title: str
        year: NotRequired[int]

    m = Movie(
        title='The Matrix',  # typechecker error if key is omitted
        year=1999,
    )
r"r#r�s   r|rere
s'���z�j�j�\�1M�#N�O�D���w�'�'r~c�J�[XRS35n[X45$)aXA special typing construct to mark an item of a TypedDict as read-only.

For example::

    class Movie(TypedDict):
        title: ReadOnly[str]
        year: int

    def mutate_movie(m: Movie) -> None:
        m["year"] = 1992  # allowed
        m["title"] = "The Matrix"  # typechecker error

There is no runtime checking for this property.
r"r#r�s   r|rhrh&
s'�� �z�j�j�\�1M�#N�O�D���w�'�'r~c�@�\rSrSrSr\rSrSrSr	Sr
SrSrS	r
g
)rai:
a�NewType creates simple unique types with almost zero runtime overhead.

NewType(name, tp) is considered a subtype of tp
by static type checkers. At runtime, NewType(name, tp) returns
a dummy callable that simply returns its argument.

Usage::

    UserId = NewType('UserId', int)

    def name_by_id(user_id: UserId) -> str:
        ...

    UserId('user')          # Fails type check

    name_by_id(42)          # Fails type check
    name_by_id(UserId(42))  # OK

    num = UserId(5) + 1     # type: int
c��XlSU;aURS5SnXlX l[	5nUS:waX0lgg)Nr�r��typing)r��
rpartitionr��
__supertype__rr�)rr�ro�def_mods    r|rH�NewType.__init__R
sF�� ���$�;��?�?�3�'��+�D��
����)���h��%�O�r~c�<^�URm"U4SjS5nU4$)Nc�">�\rSrSrU4SjrSrg)�&NewType.__mro_entries__.<locals>.Dummyia
c	�H>�URn[SUSU<STS35e)NzGCannot subclass an instance of NewType. Perhaps you were looking for: `z = NewType(r�z)`)r�r�)r��
subclass_name�superclass_names  �r|r=�8NewType.__mro_entries__.<locals>.Dummy.__init_subclass__b
s:��� #���
���%��k�-�1B�"�_�DU�UW�Y��r~r�N)r�r�r�rr=r!)r2s�r|�Dummyr/a
s
���
�
r~r4)r�)rrRr4r2s   @r|rS�NewType.__mro_entries__\
s!����-�-��	�	��x�r~c�8�URSUR3$)Nr�)r�r�rs r|r�NewType.__repr__k
s���/�/�"�!�D�$5�$5�#6�7�7r~c��UR$r�)r�rs r|r\�NewType.__reduce__n
s��� � � r~c��[X4$r�rcrds  r|rf�NewType.__or__q
rhr~c��[X4$r�rcrds  r|rj�NewType.__ror__t
rlr~)r�r�r�r*N)r�r�r�rr?r
r`rHrSrr\rfrjr!r�r~r|rara:
s,���*�H�&�
�8�!�"�"r~rac�J�\rSrSrSrSr\\S\4Sj55r	\\S\4Sj55r
\S"Sj5r\\S\4S	j55r
\S\4S
j5r\S"Sj5r\S\4Sj5r\S#S
\S\4Sjj5r\S\4Sj5r\S#S\S\4Sjj5r\S#S\S\\4Sjj5r\S$S\S\S\4Sjj5r\S\4Sj5r\S\4Sj5r\S%S\S\4Sjj5r\S\4Sj5r\S\S\4Sj5r\S\\SS4Sj5r\S&S j5r\S"S!j5r Sr!g)'rMi�
a�Generic base class for TextIO and BinaryIO.

This is an abstract, generic version of the return of open().

NOTE: This does not distinguish between the different possible
classes (text vs. binary, read vs. write vs. read/write,
append-only, unbuffered).  The TextIO and BinaryIO subclasses
below capture the distinctions between text vs. binary, which is
pervasive in the interface; however we currently do not offer a
way to track the other distinctions in the type system.
r�r
c��gr�r�rs r|�mode�IO.mode�
���	
r~c��gr�r�rs r|r��IO.name�
rBr~Nc��gr�r�rs r|�close�IO.close�
r�r~c��gr�r�rs r|�closed�	IO.closed�
rBr~c��gr�r�rs r|�fileno�	IO.fileno�
r�r~c��gr�r�rs r|�flush�IO.flush�
r�r~c��gr�r�rs r|�isatty�	IO.isatty�
r�r~r�c��gr�r�)rr�s  r|�read�IO.read�
r�r~c��gr�r�rs r|�readable�IO.readable�
r�r~�limitc��gr�r�)rrZs  r|�readline�IO.readline�
r�r~�hintc��gr�r�)rr^s  r|�	readlines�IO.readlines�
r�r~�offset�whencec��gr�r�)rrbrcs   r|�seek�IO.seek�
r�r~c��gr�r�rs r|�seekable�IO.seekable�
r�r~c��gr�r�rs r|�tell�IO.tell�
r�r~�sizec��gr�r�)rrms  r|�truncate�IO.truncate�
r�r~c��gr�r�rs r|�writable�IO.writable�
r�r~r�c��gr�r��rr�s  r|�write�IO.write�
r�r~�linesc��gr�r�)rrxs  r|�
writelines�
IO.writelines�
r�r~c��gr�r�rs r|�	__enter__�IO.__enter__�
r�r~c��gr�r�)rrxrc�	tracebacks    r|�__exit__�IO.__exit__�
r�r~)r
N)r�r�r�)r
z
IO[AnyStr])"r�r�r�rr?r r�rrzr@r�rF�boolrIr�rLrOrRrQrUrXr\rEr`rerhrkrorrrvrzr}r�r!r�r~r|rMrM�
sd��
��I�
��
�c�
���
���
�c�
���
��
��
���
��
���
��
��
��
��
��
��
��
��
��
�c�
�6�
��
��
�$�
��
��
�c�
�6�
��
��
�c�
�4��<�
��
��
�3�
��
�C�
��
��
�$�
��
��
�c�
��
��
�S�
�C�
��
��
�$�
��
��
�v�
�#�
��
��
��V��
��
��
��
��
��
��
r~rMc�V�\rSrSrSrSr\S\\\	4S\
4Sj5r\S	Sj5rSr
g)
rLi�
z5Typed version of the return of open() in binary mode.r�r�r
c��gr�r�rus  r|rv�BinaryIO.write�
r�r~c��gr�r�rs r|r}�BinaryIO.__enter__�
r�r~N)r
rL)r�r�r�rr?r rrr��	bytearrayr�rvr}r!r�r~r|rLrL�
sH��?��I��
�u�U�I�-�.�
�3�
��
��
��
r~rLc���\rSrSrSrSr\\S\4Sj55r	\\S\
4Sj55r\\S\\
4Sj55r
\\S\4Sj55r\\S\4S	j55r\SS
j5rSrg)
rPi�
z3Typed version of the return of open() in text mode.r�r
c��gr�r�rs r|�buffer�
TextIO.buffer�
rBr~c��gr�r�rs r|�encoding�TextIO.encoding�
rBr~c��gr�r�rs r|�errors�
TextIO.errorsrBr~c��gr�r�rs r|�line_buffering�TextIO.line_bufferingrBr~c��gr�r�rs r|�newlines�TextIO.newlines
rBr~c��gr�r�rs r|r}�TextIO.__enter__r�r~N)r
rP)r�r�r�rr?r r�rrLr�rzr�rr�r�r�rr�r}r!r�r~r|rPrP�
s���=��I�
��
��
���
���
�#�
���
���
���
�
���
���
��
���
���
�#�
���
��
��
r~rPc�"�S7=n4SUSU4Sjs8$)r�r�r
c�d�[S[U5R<3[RS9 U$)a�Ask a static type checker to reveal the inferred type of an expression.

When a static type checker encounters a call to ``reveal_type()``,
it will emit the inferred type of the argument::

    x: int = 1
    reveal_type(x)

Running a static type checker (e.g., mypy) on this example
will produce output similar to 'Revealed type is "builtins.int"'.

At runtime, the function prints the runtime type of the
argument and returns the argument unchanged.
zRuntime type is )�file)�printrxr�r��stderrr�s r|rjrjs*��
��T�#�Y�/�/�2�
3�#�*�*�E��Jr~r�)�	.defaultsr�s  r|�#<generic parameters of reveal_type>r�s�������r~c�4^�\rSrSrmU4Sj"5rSrUrg)�_IdentityCallablei'c�$>�S7=n4SUSU4Sjs8$)r�r{r
c��gr�r�r�s  r|r`�_IdentityCallable.__call__(s��r~r�)r�r��
__classdict__s  �r|� <generic parameters of __call__>�2_IdentityCallable.<generic parameters of __call__>(s�����q���r~r�N)r�r�r�rr`r!�__classdictcell__)r�s@r|r�r�'s�����r~r�)�
eq_default�
order_default�kw_only_default�frozen_default�field_specifiersr�r�r�r�r�.r�c�(^^^^^^�UUUUUU4SjnU$)a�Decorator to mark an object as providing dataclass-like behaviour.

The decorator can be applied to a function, class, or metaclass.

Example usage with a decorator function::

    @dataclass_transform()
    def create_model[T](cls: type[T]) -> type[T]:
        ...
        return cls

    @create_model
    class CustomerModel:
        id: int
        name: str

On a base class::

    @dataclass_transform()
    class ModelBase: ...

    class CustomerModel(ModelBase):
        id: int
        name: str

On a metaclass::

    @dataclass_transform()
    class ModelMeta(type): ...

    class ModelBase(metaclass=ModelMeta): ...

    class CustomerModel(ModelBase):
        id: int
        name: str

The ``CustomerModel`` classes defined above will
be treated by type checkers similarly to classes created with
``@dataclasses.dataclass``.
For example, type checkers will assume these classes have
``__init__`` methods that accept ``id`` and ``name``.

The arguments to this decorator can be used to customize this behavior:
- ``eq_default`` indicates whether the ``eq`` parameter is assumed to be
    ``True`` or ``False`` if it is omitted by the caller.
- ``order_default`` indicates whether the ``order`` parameter is
    assumed to be True or False if it is omitted by the caller.
- ``kw_only_default`` indicates whether the ``kw_only`` parameter is
    assumed to be True or False if it is omitted by the caller.
- ``frozen_default`` indicates whether the ``frozen`` parameter is
    assumed to be True or False if it is omitted by the caller.
- ``field_specifiers`` specifies a static list of supported classes
    or functions that describe fields, similar to ``dataclasses.field()``.
- Arbitrary other keyword arguments are accepted in order to allow for
    possible future extensions.

At runtime, this decorator records its arguments in the
``__dataclass_transform__`` attribute on the decorated object.
It has no other runtime effect.

See PEP 681 for more details.
c�$>�TTTTTTS.UlU$)N)r�r�r�r�r�r�)�__dataclass_transform__)�	cls_or_fnr�r�r�r�r�r�s ������r|r	�&dataclass_transform.<locals>.decoratorss'���$�*�.�,� 0��
-
�	�)��r~r�)r�r�r�r�r�r�r	s`````` r|rVrV,s���N	�	��r~�_Funcc� �[S[4$r�)rrr�r~r|r�r��s��X�c�3�h�
�r~c�&�SS8=n4SUSU4Sjs8$)�Fc��[$r�)r�r�r~r|r�r��s��r~�methodr
c�D�SUlU$![[4a U$f=f)a�Indicate that a method is intended to override a method in a base class.

Usage::

    class Base:
        def method(self) -> None:
            pass

    class Child(Base):
        @override
        def method(self) -> None:
            super().method()

When this decorator is applied to a method, the type checker will
validate that it overrides a method or attribute with the same name on a
base class.  This helps prevent bugs that may occur when a base class is
changed without an equivalent change to a child class.

There is no runtime checking of this property. The decorator attempts to
set the ``__override__`` attribute to ``True`` on the decorated object to
allow runtime introspection.

See PEP 698 for details.
T)�__override__rKr�)r�s r|rgrg�s6��2
�"����M��
�I�&�
�	
��M�
�r�r�)r�r�s  r|� <generic parameters of override>r��s��X��X� �q� �� r~roc�j�[U[5=(a [USS5=(a	 U[:g$)z�Return True if the given type is a Protocol.

Example::

    >>> from typing import Protocol, is_protocol
    >>> class P(Protocol):
    ...     def a(self) -> str: ...
    ...     b: int
    >>> is_protocol(P)
    True
    >>> is_protocol(int)
    False
r�F)ryrxr�rrns r|r]r]�s0��	�2�t��	��B���.�	��(�N�r~c�j�[U5(d[U<S35e[UR5$)aDReturn the set of members defined in a Protocol.

Example::

    >>> from typing import Protocol, get_protocol_members
    >>> class P(Protocol):
    ...     def a(self) -> str: ...
    ...     b: int
    >>> get_protocol_members(P) == frozenset({'a', 'b'})
    True

Raise a TypeError for arguments that are not Protocols.
z is not a Protocol)r]r�r�r�rns r|r[r[�s1���r�?�?��2�&� 2�3�4�4��R�*�*�+�+r~c�6�US;aSSKn[[X5S5nOkUS;a&SSKn[[USU35SU[S-4S9nO?US	:Xa"SSKnS
nUR
U[SS9 [nO[S[<S
U<35eU[5U'U$)z�Improve the import time of the typing module.

Soft-deprecated objects which are costly to create
are only created on-demand here.
>rNrOrNr�>r#r7�Abstractr�)r�r��_collect_parametersz�The private _collect_parameters function is deprecated and will be removed in a future version of Python. Any use of private functions is discouraged and may break in the future.rzmodule z has no attribute )�re�_aliasr�r
r�rrrr�rKr�r|)r&r�r�r
rrs      r|rMrM�s����#�#���W�R�&��*��	
�:�	:���W�Z�8�D�6�):�;�Q�T�UY�\`�U`�Tb�c��	
�&�	&��
;�	�
	�
�
�l�-?�A�
�N�&���w�x�l�2D�T�H�M�N�N��G�I�d�O��Jr~r�r�)r��__main__)r�)NNF)r�)�r?r�rrr�r�collections.abc�copyregrr2r�r�rrrr	�_typingr
rrr
rrrrr�__all__r}r�r�r�r�r�r�r�r�r�r�r�r�r�rr�rrzrrr.r�r)r8rAr�r{rxrrrdr`rlr_rrrr�rrrorrprqrr�r�r�r�r�rrr"r'r)r�r�r�r�r�r�r�r�r�r�rrr�rW�_TYPING_INTERNALS�_SPECIAL_NAMESr�r�r�rrrrrr�rr�picklerror)rtr%rrr�r#rr5rrkrTrRr��BuiltinFunctionTyperwr\r]r\r[rYrXr^rtrSrbrcr��partialr�r�rfrZrUrWr�r�r�r�r�r�r�r�r�rQr�r$r1r4r3r2r&r'r8r/r"r5rrGr r-r)r+r.r,r!r�rr�rE�dequerBr
rHr*r(r%r0rCrDrFrAr@rK�NoneTyper6rr>r<r;r:r=r9r?r�r�r�r�rIr�r�r�rSr�rrJrrirerhrarmrnrMrLrPrjr�rVr�rgr]r[rMr�r~r|�<module>r�s���((��#�����
��^�^�
�
�
�t��n�5���PU��B@�
�0�2HL�/��/�dS�>�16�/��	�
A� �
�	�
���U��>
K�S�
K�T�
K���
�K�	�2;�(
�y�{�(
�VF�F���((/�6�<�t�(/�V0�\��0�	"�t�	"�$�H�$�$�4��4�(�4��4�0�4��4�&�4��4�4�(��(�*�(��(�*�)0��)0�V��"��"�
�
���2���2�B�
4��
4� �6��6�2�4(��4(�n�A(��A(�HhD��t�hD�VF��F��F�
O��O��O��&�R��"�-$��-$�`#&�L9�VT��d�VT�HZ�%�T�Z�B9!�<�):�$�9!�x/�2�$�/�2�L�-�t�2�"&�(��&�B&�%�T�&�"#��}�D�"#�J.�D�=��D�)�}�D�)��/:��/:�d:�-�t�:�:3�3���������(�.�8�<U�;V�V���"(�:	�8��
,�-J�K�
��������
���*�6�6�7�/����}�n�-�3����� 0�1��$��.�.���.�.��>�"T�G�T�n
��
��.24�w�-�24�j1"�l�M��1"�h�
���9-���9-�x'�T�
� �$�$�e�&?�&?��"�"�E�$4�$4�'�):�<P�R��
a]�H
�2�<�4*�$!$��O�e�O�5�O�2!�H�":�!��!2�!2�;��!E�F��&�R	3��
!
�N�C�L���T�]���T�]���v��&���v��&����4�(���:�T�2����4�t�4��

��5�#�	&��
���+�/�/�*�*�A�.���;�?�?�,�,�a�0�	��;�?�?�,�,�a�0�	��{���4�4�a�8�
��{���4�4�a�8�
��+�/�/�*�*�A�.���+�/�/�*�*�A�.��
�K�O�O�.�.��
2�
��{���$�$�a�(���;�?�?�,�,�a�0�	�
�K�O�O�.�.��
2�
�����1�1�1�5���	���[�_�_�(�(�!�-�@��
�K�O�O�.�.��
2�
�
����(�(�!�
,������6�6��:���+�/�/�*�*�A�.������8�8�!�<��
$��O�O����7��
�	�5�"�5�w�7��	��
��d�A�E��/���{� � �!�'�2���S�!�%�e�,���9�a�e�+�>�	��[�_�_�0�0�!�4���+�/�/�*�*�A�.���;�?�?�,�,�a�0�	�
�K�O�O�.�.��
2�
�
�d�A�E��/���[�,�,�a�m�D���[�,�,�a�0��
��$�$�a�
(���+�&�&��*���;�?�?�,�,�a�5�>�>�5�>�>�:Z�[�	�����6�6��U�^�^�DU�V��
�d�A�E��/�����2�
�(�
��
��
�H�
��
��
�h�
��
��
�H�
��
��
�H�
��
��
��
��
��
���D�E���B�C��0�T�0�f!*�<�|�l�l�>�<��R�@���5�
���,`*�T�`*�F )�Q�d�Q�f�\�\�.�+�r�2�
>�
�7�	���(��(�.�(��(�$�(��(�&;"�;"�~���
�`
����`
�F
�r�%�y�
� 
�R��W� 
�F�&�����!� �CE�
Q��Q��Q��	Q�
�Q��D��I���c��(:�:�C�?�@�
Q��Q��Q�h � �F�D����*,�T�,��3��,�&r~

?>