
    h                    Z    S SK Jr  S SKJrJr  S SKJr  S SKJr  \" S5      r	 " S S\S9r
g	)
    )annotations)ABCMetaabstractmethod)TracebackType)TypeVarTc                  T    \ rS rSrSrSrSS jr        S	S jr\S
S j5       r	Sr
g)AsyncResource
   z
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.
 c                   #    U $ 7fNr   selfs    F/var/www/html/env/lib/python3.13/site-packages/anyio/abc/_resources.py
__aenter__AsyncResource.__aenter__   s
     s   c                @   #    U R                  5       I S h  vN   g  N7fr   )aclose)r   exc_typeexc_valexc_tbs       r   	__aexit__AsyncResource.__aexit__   s      kkms   c                   #    g7f)zClose the resource.Nr   r   s    r   r   AsyncResource.aclose   s     s   N)r   r   returnr   )r   ztype[BaseException] | Noner   zBaseException | Noner   zTracebackType | Noner   None)r   r   )__name__
__module____qualname____firstlineno____doc__	__slots__r   r   r   r   __static_attributes__r       r   r
   r
   
   sR     I, & %	
 
 " "r&   r
   )	metaclassN)
__future__r   abcr   r   typesr   typingr   r   r
   r   r&   r   <module>r,      s&    " '  CL"g "r&   