o
    ýÑÐbz  ã                   @   sº   d Z ddlZddlmZ ejdd„ ƒZG dd„ deƒZG dd	„ d	eƒZG d
d„ deƒZ	G dd„ deƒZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZdd„ Zdd„ ZdS )z<Test that an async context manager receives a proper object.é    N)Ú	Portocalac                   c   s    d V  d S ©N© r   r   r   úo/var/www/secure340b-portal/env/lib/python3.10/site-packages/pylint/test/functional/not_async_context_manager.pyÚctx_manager   s   €
r   c                   @   ó   e Zd Zdd„ Zdd„ ZdS )ÚContextManagerc                 C   ó   d S r   r   ©Úselfr   r   r   Ú	__enter__   ó   zContextManager.__enter__c                 G   r	   r   r   ©r   Úargsr   r   r   Ú__exit__   r   zContextManager.__exit__N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      ó    r   c                   @   ó   e Zd Zdd„ ZdS )ÚPartialAsyncContextManagerc                 C   r	   r   r   r
   r   r   r   Ú
__aenter__   r   z%PartialAsyncContextManager.__aenter__N©r   r   r   r   r   r   r   r   r      ó    r   c                   @   r   )Ú SecondPartialAsyncContextManagerc                 G   r	   r   r   r   r   r   r   Ú	__aexit__   r   z*SecondPartialAsyncContextManager.__aexit__N©r   r   r   r   r   r   r   r   r      r   r   c                   @   r   )ÚUnknownBasesc                 C   r	   r   r   r
   r   r   r   r      r   zUnknownBases.__aenter__Nr   r   r   r   r   r      r   r   c                   @   s   e Zd ZdS )ÚAsyncManagerMixinN)r   r   r   r   r   r   r   r       s    r   c                   @   r   )ÚGoodAsyncManagerc                 C   r	   r   r   r
   r   r   r   r   $   r   zGoodAsyncManager.__aenter__c                 G   r	   r   r   r   r   r   r   r   &   r   zGoodAsyncManager.__aexit__N)r   r   r   r   r   r   r   r   r   r   #   r   r   c                   @   r   )ÚInheritExitc                 G   r	   r   r   r   r   r   r   r   *   r   zInheritExit.__aexit__Nr   r   r   r   r   r    )   r   r    c                   @   r   )ÚSecondGoodAsyncManagerc                 C   r	   r   r   r
   r   r   r   r   .   r   z!SecondGoodAsyncManager.__aenter__Nr   r   r   r   r   r!   -   r   r!   c                	   Ã   s(  d4 I d H š W d   ƒI d H  n1 I d H sw   Y  t ƒ 4 I d H š W d   ƒI d H  n1 I d H s5w   Y  tƒ 4 I d H š W d   ƒI d H  n1 I d H sRw   Y  tƒ 4 I d H š W d   ƒI d H  n1 I d H sow   Y  tƒ 4 I d H š W d   ƒI d H  d S 1 I d H sw   Y  d S )Né*   )r   r   r   r   r   r   r   r   Úbad_coro2   s    €(ÿ(ÿ(ÿ(ÿ.ÿr#   c                	   Ã   sð   t ƒ 4 I d H š W d   ƒI d H  n1 I d H sw   Y  tƒ 4 I d H š W d   ƒI d H  n1 I d H s6w   Y  tƒ 4 I d H š W d   ƒI d H  n1 I d H sSw   Y  tƒ 4 I d H š W d   ƒI d H  d S 1 I d H sqw   Y  d S r   )r   r   r   r!   r   r   r   r   Ú	good_coro?   s   €(ÿ(ÿ(ÿ.ÿr$   )Ú__doc__Ú
contextlibZalar   Úcontextmanagerr   Úobjectr   r   r   r   r   r   r    r!   r#   r$   r   r   r   r   Ú<module>   s    
