
    ph                     H    S SK Jr  \(       a  S SKJrJr  S r " S S5      rg)    )TYPE_CHECKING)PipelineRedisc                 4    SSK Jn  UR                  " U 40 UD6$ )z
Returns an active Redis client generated from the given database URL.

Will attempt to extract the database id from the path url fragment, if
none is provided.
r   )r   )redis.asyncio.clientr   from_url)urlkwargsr   s      M/home/james-whalen/.local/lib/python3.13/site-packages/redis/asyncio/utils.pyr   r      s     +>>#(((    c                   .    \ rS rSrSS jrSS jrS rSrg)	pipeline   c                 .    UR                  5       U l        g N)r   p)self	redis_objs     r   __init__pipeline.__init__   s    &//1r   c                 "   #    U R                   $ 7fr   r   )r   s    r   
__aenter__pipeline.__aenter__   s     vvs   c                 X   #    U R                   R                  5       I S h  vN   U ? g  N7fr   )r   execute)r   exc_type	exc_value	tracebacks       r   	__aexit__pipeline.__aexit__   s#     ffnnF 	s   *(*r   N)r   r   )returnr   )__name__
__module____qualname____firstlineno__r   r   r    __static_attributes__ r   r   r   r      s    2r   r   N)typingr   r   r   r   r   r   r(   r   r   <module>r*      s     4	)	 	r   