Your IP : 18.218.94.236


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/jinja2/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/jinja2/__pycache__/async_utils.cpython-311.pyc

�

��bg��
��ddlZddlZddlmZddlmZddlmZejd��Z	d�Z
eee
eeeeed��hZdejejddfd	dfd
�Z				dd�Zddd	ejdfd�ZdS)�N)�wraps�)�_PassArg)�pass_eval_context�Vc����fd�}|S)Nc�"�����tj���}|du�|tjurdtjdt
fd��ndtjdt
fd��t
�������fd���}�rt|��}d|_|S)N�args�returnc�L�tjt|dj��S�Nr)�t�cast�bool�is_async�r
s �I/opt/cloudlinux/venv/lib64/python3.11/site-packages/jinja2/async_utils.pyrz2async_variant.<locals>.decorator.<locals>.is_asyncs���v�d�D��G�$4�5�5�5�c�V�tjt|djj��Sr
)rrr�environmentrrs rrz2async_variant.<locals>.decorator.<locals>.is_asyncs���v�d�D��G�$7�$@�A�A�Arc�V���|��}�r
|dd�}|r�|i|��S�|i|��S)Nr�)r
�kwargs�b�
async_funcr�need_eval_context�normal_funcs   ����r�wrapperz1async_variant.<locals>.decorator.<locals>.wrappersW��������A� �
 ��A�B�B�x���
3�!�z�4�2�6�2�2�2��;��/��/�/�/rT)	r�from_objrr�Anyrrr�jinja_async_variant)r�pass_argrrrrs`  @@�r�	decoratorz async_variant.<locals>.decorators��������$�[�1�1��$��,���x�+�+�+�
6�q�u�
6��
6�
6�
6�
6�
6�

B�q�u�
B��
B�
B�
B�
B�
�{�	�	�		0�		0�		0�		0�		0�		0�		0�
�	�		0��	1�'��0�0�G�&*��#��rr)rr#s` r�
async_variantr$s%��������@�r�valuerc���K�t|��tvrtjd|��St	j|��rtjd|���d{V��Stjd|��S)Nrzt.Awaitable[V])�type�_common_primitivesrr�inspect�isawaitable�r%s r�
auto_awaitr,2st�����E�{�{�(�(�(��v�c�5�!�!�!���5�!�!�5��V�,�e�4�4�4�4�4�4�4�4�4��6�#�u���r�iterable�*t.Union[t.AsyncIterable[V], t.Iterable[V]]�t.AsyncIterator[V]c�K�t|d��r%tjd|��23d{V��}|WV��
6dStjd|��D]}|WV��dS)N�	__aiter__zt.AsyncIterable[V]z
t.Iterable[V])�hasattrrr)r-�items  r�
auto_aiterr4=s������x��%�%���&�!5�x�@�@�	�	�	�	�	�	�	�$��J�J�J�J�J�A�@�@��F�?�H�5�5�	�	�D��J�J�J�J�J�	�	s�5c��DK�d�t|��2���d{V��S)Nc��"K�g|3d{V��}|��
6S)Nr)�.0�xs  r�
<listcomp>z auto_to_list.<locals>.<listcomp>Ks.����/�/�/�/�/�/�/�/��A�/�/�/�/s�)r4r+s r�auto_to_listr:Hs6����0�/�Z��.�.�/�/�/�/�/�/�/�/�/�/r)r-r.rr/)r)�typingr�	functoolsr�utilsrr�TypeVarrr$�int�floatr�str�list�dict�tupler'r(�Union�	Awaitabler,r4�Listr:rrr�<module>rHs����������������������$�$�$�$�$�$�
�A�I�c�N�N��!�!�!�H�5�$��T�4����T�
�
�K���A�G�A�K��$4�c�$9�:��s������:�������0�7�0��V�C�[�0�0�0�0�0�0r

?>