관리-도구
편집 파일: while_used.cpython-311.pyc
� �܋fE � �z � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z erddlmZ G d� d e� � Z dd�ZdS )zCheck for use of while loops.� )�annotations)� TYPE_CHECKING)�nodes)�BaseChecker)�only_required_for_messages)�PyLinterc �D � e Zd ZdZddiZ ed� � dd �� � Zd S )�WhileChecker� while_used�W0149)zUsed `while` loop� while-usedz�Unbounded `while` loops can often be rewritten as bounded `for` loops. Exceptions can be made for cases such as event loops, listeners, etc.r �node�nodes.While�return�Nonec �4 � | � d|�� � d S )Nr )r )�add_message)�selfr s �m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/extensions/while_used.py�visit_whilezWhileChecker.visit_while s! � �����D��1�1�1�1�1� N)r r r r )�__name__� __module__�__qualname__�name�msgsr r � r r r r sT � � � � � ��D�� ��D� ���-�-�2� 2� 2� .�-�2� 2� 2r r �linterr r r c �J � | � t | � � � � d S )N)�register_checkerr )r s r �registerr! $ s$ � � ���L��0�0�1�1�1�1�1r N)r r r r )�__doc__� __future__r �typingr �astroidr �pylint.checkersr �pylint.checkers.utilsr �pylint.lintr r r! r r r �<module>r) s� �� $� #� "� "� "� "� "� "� � � � � � � � � � � � � '� '� '� '� '� '� <� <� <� <� <� <�� %�$�$�$�$�$�$� 2� 2� 2� 2� 2�;� 2� 2� 2� 2� 2� 2� 2� 2� 2r