관리-도구
편집 파일: comments.cpython-311.pyc
� �܋f� � �v � d dl mZmZmZ dedeeef fd�Z d deee ded ed edef d�ZdS )� )�List�Optional�Tuple�line�returnc � � | � d� � }|dk r)| d|� | |dz d� � � � fS | dfS )zkParses import lines for comments and returns back the import statement and the associated comment. �#���N� � )�find�strip)r � comment_starts �_/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/isort/comments.py�parser sX � � �I�I�c�N�N�M������^�m�^�$�d�=�1�+<�+>�+>�&?�&E�&E�&G�&G�H�H��"�:�� r F�comments�original_string�removed�comment_prefixc �� � |rt |� � d S | s|S g }| D ]}||vr|� |� � �t |� � d � |� dd� |� � � �S )z;Returns a string with comments added if removed is not set.r � z; )r �append�join)r r r r �unique_comments�comments r �add_to_liner s� � � � )��_�%�%�a�(�(�� ���!#�O�� ,� ,���/�)�)��"�"�7�+�+�+���O�$�$�Q�'�V��V�V�$�)�)�O�:T�:T�V�V�Vr N)r Fr )�typingr r r �strr �boolr � r r �<module>r"