
    h              	           d dl mZmZ d dlmZ d dlmZ d dlmZm	Z	m
Z
 ddlmZ  e
d          Z G d d	ee         eeeef                   Zd
e	deeeef         f         de	dee         f         fdZdS )    )	Coroutine	Generator)AbstractAsyncContextManager)wraps)AnyCallableTypeVar   )Cursor_Tc                   |    e Zd ZdZdeeeef         fdZddZdddZ	ddZ
deedef         fd	Zdefd
ZddZdS )Result_coro_objcoroc                     || _         |  d S N)r   )selfr   s     Q/var/www/html/auto_sub_bot/venv/lib/python3.11/site-packages/aiosqlite/context.py__init__zResult.__init__   s    
    returnNc                 6    | j                             |          S r   )r   send)r   values     r   r   zResult.send   s    zu%%%r   c                     || j                             |          S || j                             ||          S | j                             |||          S r   )r   throw)r   typvaltbs       r   r   zResult.throw   sT    ;:##C(((::##C---zS"---r   c                 4    | j                                         S r   )r   closer   s    r   r#   zResult.close"   s    z!!!r   c                 4    | j                                         S r   )r   	__await__r$   s    r   r&   zResult.__await__%   s    z##%%%r   c                 8   K   | j          d {V | _        | j        S r   r   r$   s    r   
__aenter__zResult.__aenter__(   s)      *$$$$$$	yr   c                    K   t          | j        t                    r!| j                                         d {V  d S d S r   )
isinstancer   r   r#   )r   exc_typeexcr!   s       r   	__aexit__zResult.__aexit__,   sN      di(( 	$)//###########	$ 	$r   )r   N)NN)__name__
__module____qualname__	__slots__r   r   r   r   r   r   r#   r   r&   r(   r-    r   r   r   r      s        !IYsC|4    & & & &. . . . ." " " "&9S$]3 & & & &"    $ $ $ $ $ $r   r   method.r   c                 b     t                     dt          t                   f fd            }|S )Nr   c                 6    t           | g|R i |          S r   )r   )r   argskwargsr3   s      r   wrapperzcontextmanager.<locals>.wrapper4   s+    ffT3D333F33444r   )r   r   r   )r3   r8   s   ` r   contextmanagerr9   1   sE     6]]5&* 5 5 5 5 5 ]5 Nr   N)collections.abcr   r   
contextlibr   	functoolsr   typingr   r   r	   cursorr   r   r   r9   r2   r   r   <module>r?      s  
 1 0 0 0 0 0 0 0 2 2 2 2 2 2       ) ) ) ) ) ) ) ) ) )      WT]]$ $ $ $ $(,iS".E $ $ $DS)CbL112c6":o     r   