Format: application/x-python-code
1 o
2
3 ;'h � @ sR d dl mZ d dlmZmZ d dlmZ d dlmZ ed�Z G dd� ded�Z
4 d S )
5 � )�annotations)�ABCMeta�abstractmethod)�
6 TracebackType)�TypeVar�Tc @ s6 e Zd ZdZdZddd�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 �| � � I d H d S r )�aclose)r
15 r r r r r r � __aexit__ s �zAsyncResource.__aexit__c � s �dS )zClose the resource.Nr r
16 r r r r s zAsyncResource.acloseN)r
17 r r r )r r r r r r r r )r r ) �__name__�
18 __module__�__qualname__�__doc__� __slots__r r r r r r r r r
19 s
20
21 r )� metaclassN)�
22 __future__r �abcr r �typesr �typingr r r r r r r �<module> s