
    Mh                    n    d dl mZ d dlmZmZ d dlmZ d dlmZ  ed          Z	 G d de          Z
d	S )
    )annotations)ABCMetaabstractmethod)TracebackType)TypeVarTc                  >    e Zd ZdZdZddZddZedd            ZdS )AsyncResourcez
    Abstract base class for all closeable asynchronous resources.

    Works as an asynchronous context manager which returns the instance itself on enter,
    and calls :meth:`aclose` on exit.
     selfr   returnc                
   K   | S Nr   r   s    T/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/anyio/abc/_resources.py
__aenter__zAsyncResource.__aenter__   s          exc_typetype[BaseException] | Noneexc_valBaseException | Noneexc_tbTracebackType | NoneNonec                >   K   |                                   d {V  d S r   )aclose)r   r   r   r   s       r   	__aexit__zAsyncResource.__aexit__   s.       kkmmr   c                
   K   dS )zClose the resource.Nr   r   s    r   r   zAsyncResource.aclose   s
        r   N)r   r   r   r   )r   r   r   r   r   r   r   r   )r   r   )	__name__
__module____qualname____doc__	__slots__r   r   r   r   r   r   r   r
   r
   
   sm          I       " " " ^" " "r   r
   )	metaclassN)
__future__r   abcr   r   typesr   typingr   r   r
   r   r   r   <module>r)      s    " " " " " " ' ' ' ' ' ' ' '            GCLL" " " " "g " " " " " "r   