o
    ύΡΠbu
  γ                   @   s  d Z ddlZdd ZG dd deZe Zer	 dd ed	D r"	 d
d r'	 er*	 er-	 	 	 	 	 	 	 	 	 i r8	 h d£r=	 	 	 	 e ZerF	 	 	 dd ZdZ	e	rQ	 ej
rU	 ej
rY	 	 	 	 	 	 e 
‘ rc	 ddk rh	 edrm	 e rq	 e ru	 g d’dd r~	 dd Zdd ZdS ) z7Verify if constant tests are used inside if statements.ι    Nc                   c   s    d V  d S ©N© r   r   r   ϊi/var/www/secure340b-portal/env/lib/python3.10/site-packages/pylint/test/functional/using_constant_test.pyΪfunction	   s   
r   c                   @   s   e Zd Zdd ZdS )ΪClassc                 C   σ   d S r   r   )Ϊselfr   r   r   Ϊmethod   s   zClass.methodN)Ϊ__name__Ϊ
__module__Ϊ__qualname__r	   r   r   r   r   r      s    r   c                 c   s    | ]}|V  qd S r   r   )Ϊ.0Ϊnoder   r   r   Ϊ	<genexpr>   σ    r   ι
   c                   C   r   r   r   r   r   r   r   Ϊ<lambda>   s    r   ι   TΪ σ    g       @>   ι   r   ι   )r   r   r   r   r   r   c                   C   sp   dd t dD  dd t dD  dd t dD  dd t dD  dd	 t dD  d
d t dD  d S )Nc                 S   s   g | ]}t r|qS r   ©Ϊabs©r   Ϊdatar   r   r   Ϊ
<listcomp>I   σ    z'test_comprehensions.<locals>.<listcomp>ιd   c                 S   σ   g | ]}|qS ©r   r   r   r   r   r   r   J   σ    c                 s   s    | ]}t r|V  qd S r   r   r   r   r   r   r   K   σ    z&test_comprehensions.<locals>.<genexpr>c                 s   s    | ]}|V  qdS )r   Nr   r   r   r   r   r   L   r   c                 S   s   h | ]}t r|qS r   r   r   r   r   r   Ϊ	<setcomp>M   r   z&test_comprehensions.<locals>.<setcomp>c                 S   s   i | ]}t r|d qS r    r   r   r   r   r   Ϊ
<dictcomp>N   σ    z'test_comprehensions.<locals>.<dictcomp>©Ϊranger   r   r   r   Ϊtest_comprehensionsH   s   r(   ι*   ι   ι   Fc                  G   s   | rdS d S )Nr)   r   )Ϊargsr   r   r   Ϊtest   s   r-   c                   C   s¦   dd t dD  dd t dD  dd t dD  dd t dD  dd t dD  d	d
 t dD  dd
 t dD  dd t dD  dd t dD  d S )Nc                 S   r   r   r   r   r   r   r   r      r!   z2test_good_comprehension_checks.<locals>.<listcomp>r   c                 S   s   g | ]}|r|qS r   r   r   r   r   r   r      r   c                 S   s   g | ]}t |r|qS r   r   r   r   r   r   r      σ    c                 s   s    | ]}|r|V  qd S r   r   r   r   r   r   r      r"   z1test_good_comprehension_checks.<locals>.<genexpr>c                 s   s    | ]	}t |r|V  qd S r   r   r   r   r   r   r      s    c                 S   s   h | ]}|r|qS r   r   r   r   r   r   r#      r   z1test_good_comprehension_checks.<locals>.<setcomp>c                 S   s   h | ]}t |r|qS r   r   r   r   r   r   r#      r.   c                 S   s   i | ]}|r|d qS r    r   r   r   r   r   r$      r%   z2test_good_comprehension_checks.<locals>.<dictcomp>c                 S   s   i | ]}|d qS r    r   r   r   r   r   r$      s    r&   r   r   r   r   Ϊtest_good_comprehension_checks   s   r/   )Ϊ__doc__Ϊcollectionsr   Ϊobjectr   Ϊinstancer'   Ϊ	generatorr(   Ϊnamer	   ΪtupleΪdictr-   r/   r   r   r   r   Ϊ<module>   s|    