Format: application/x-python-code
⬇ Download File (1.4 KB)
   1  o
   2  
   3  ;'h�@sRddlmZddlmZmZddlmZddlmZed�Z	Gdd�ded�Z
   4  d	S)
   5  �)�annotations)�ABCMeta�abstractmethod)�
   6  TracebackType)�TypeVar�Tc@s6eZdZdZdZddd�Zddd�Zeddd��ZdS)�
   7  AsyncResourcez�
   8      Abstract base class for all closeable asynchronous resources.
   9  
  10      Works as an asynchronous context manager which returns the instance itself on enter,
  11      and calls :meth:`aclose` on exit.
  12      ��selfr�returnc�s�|S�Nr	�r
  13  r	r	�JC:\Users\shubh\Videos\agent\nova\Lib\site-packages\anyio/abc/_resources.py�
  14  __aenter__s�zAsyncResource.__aenter__�exc_type�type[BaseException] | None�exc_val�BaseException | None�exc_tb�TracebackType | None�Nonec�s�|��IdHdSr)�aclose)r
  15  rrrr	r	r�	__aexit__s�zAsyncResource.__aexit__c�s�dS)zClose the resource.Nr	r
  16  r	r	rrszAsyncResource.acloseN)r
  17  rrr)rrrrrrrr)rr)	�__name__�
  18  __module__�__qualname__�__doc__�	__slots__rrrrr	r	r	rr
  19  s
  20  
  21  r)�	metaclassN)�
  22  __future__r�abcrr�typesr�typingrrrr	r	r	r�<module>s