o
    h                     @  sR   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 dedZ
d	S )
    )annotations)ABCMetaabstractmethod)TracebackType)TypeVarTc                   @  s6   e Zd ZdZdZdddZdddZed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                   s   | S Nr	   r
   r	   r	   h/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/anyio/abc/_resources.py
__aenter__   s   zAsyncResource.__aenter__exc_typetype[BaseException] | Noneexc_valBaseException | Noneexc_tbTracebackType | NoneNonec                   s   |   I d H  d S r   )aclose)r
   r   r   r   r	   r	   r   	__aexit__   s   zAsyncResource.__aexit__c                   s   dS )zClose the resource.Nr	   r   r	   r	   r   r      s    zAsyncResource.acloseN)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   
   s    

r   )	metaclassN)
__future__r   abcr   r   typesr   typingr   r   r   r	   r	   r	   r   <module>   s    