o
    bF
                     @   s,  d Z G dd deZe  W d   n1 sw   Y  G dd deZe  W d   n1 s3w   Y  G dd deZe  W d   n1 sNw   Y  dd	lmZ ed
d Ze  W d   n1 smw   Y  e W d   n1 sw   Y  ddlm	Z	 e	  W d   n1 sw   Y  dd Z
e Ze
 Ze W d   n1 sw   Y  e W d   n1 sw   Y  dd Ze  W d   n1 sw   Y  G dd deZe Zej W d   n1 sw   Y  ej W d   n	1 sw   Y  G dd de	Ze  W d   n	1 s+w   Y  G dd deZG dd deZdd Zedd Ze  W d   n	1 sYw   Y  e gZed  W d   n	1 srw   Y  dd Zdd  Ze 	 W d   dS 1 sw   Y  dS )!zNTests that onjects used in a with statement implement context manager protocolc                   @      e Zd Zdd Zdd ZdS )Managerc                 C      d S N selfr   r   i/var/www/secure340b-portal/env/lib/python3.10/site-packages/pylint/test/functional/not_context_manager.py	__enter__      zManager.__enter__c                 C   r   r   r   )r   type_value	tracebackr   r   r   __exit__	   r
   zManager.__exit__N__name__
__module____qualname__r	   r   r   r   r   r   r          r   Nc                   @      e Zd ZdS )AnotherManagerNr   r   r   r   r   r   r   r          r   c                   @   r   )NotAManagerNr   r   r   r   r   r      r   r       )contextmanagerc                   c   s    d V  d S r   r   r   r   r   r   dec   s   
r   )Missingc                   C      dS N*   r   r   r   r   r   penelopa1   r
   r    c                   C      t  S r   r   r   r   r   r   wrapperA      r#   c                   @   s$   e Zd Zedd Zedd ZdS )Propertyc                 C   r!   r   r"   r   r   r   r   ctxK      zProperty.ctxc                 C   r   r   r   r   r   r   r   not_ctxO   s   zProperty.not_ctxN)r   r   r   propertyr&   r(   r   r   r   r   r%   I   s
    
r%   c                   @   r   )TestKnownBasesNr   r   r   r   r   r*   ^   r   r*   c                   @   s   e Zd Zdd ZdS )ManagerMixinc                 C   s*   | 	 W d    d S 1 sw   Y  d S r   r   r   r   r   r   testf   s   "zManagerMixin.testN)r   r   r   r,   r   r   r   r   r+   e   s    r+   c                   @   r   )FullContextManagerc                 C   s   | S r   r   r   r   r   r   r	   k   r
   zFullContextManager.__enter__c                 G   r   r   r   )r   argsr   r   r   r   m   r
   zFullContextManager.__exit__Nr   r   r   r   r   r-   j   r   r-   c                   c   s    dV  d S r   r   r   r   r   r   	generatorr   s   
r/   c                   C   r!   r   r/   r   r   r   r   #context_manager_returning_generatoru   r'   r1   c                   C   r!   r   r0   r   r   r   r   other_indirect_func   r$   r2   c                   C   r!   r   )r2   r   r   r   r   not_context_manager   r$   r3   )__doc__objectr   r   r   
contextlibr   r   missingr   r    ZhopaZtropar#   r%   Zlalar&   r(   r*   r+   r-   r/   r1   ZFIRSTr2   r3   r   r   r   r   <module>   s    


$