HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/anyio/abc/__pycache__/_resources.cpython-310.pyc
o

���g�@sRddlmZddlmZmZddlmZddlmZed�Z	Gdd�ded�Z
d	S)
�)�annotations)�ABCMeta�abstractmethod)�
TracebackType)�TypeVar�Tc@s6eZdZdZdZddd�Zddd�Zeddd��ZdS)�
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	�?/usr/local/lib/python3.10/dist-packages/anyio/abc/_resources.py�
__aenter__s�zAsyncResource.__aenter__�exc_type�type[BaseException] | None�exc_val�BaseException | None�exc_tb�TracebackType | None�Nonec�s�|��IdHdSr)�aclose)r
rrrr	r	r�	__aexit__s�zAsyncResource.__aexit__c�s�dS)zClose the resource.Nr	r
r	r	rrszAsyncResource.acloseN)r
rrr)rrrrrrrr)rr)	�__name__�
__module__�__qualname__�__doc__�	__slots__rrrrr	r	r	rr
s

r)�	metaclassN)�
__future__r�abcrr�typesr�typingrrrr	r	r	r�<module>s