관리-도구
편집 파일: wrap.cpython-311.pyc
� �܋f� � �� � d dl Z d dlZd dlmZmZmZ ddlmZmZ ddl m Z ddl mZm Z ddedd fd edee dee d ededee dedefd�Zefded ededefd�ZeZdS )� N)�List�Optional�Sequence� )�DEFAULT_CONFIG�Config)� WrapModes)�formatter_from_string�vertical_hanging_indent� � F�import_start�from_imports�comments�line_separator�config�multi_line_output�explode�returnc � � |rt }d}d} n0t |p|j j � � }|j p|j }|j } dt | � � dz z } |j } || t j |� � | |||||j | |j �� � }|j �r|� |� � } t | � � }t | � � dk r"t d� | dd� D � � � � }nd}|}t | d � � |k r�t | � � |k r�|d k r|}|dz } || t j |� � | |||||j | |j �� � }|� |� � } t | d � � |k rt | � � |k r|d k �|� |� � dk rt! |||� � S |S ) zHReturns a multi-line wrapped form of the provided from import statement.r T� ) � statement�imports�white_space�indent�line_lengthr r �comment_prefix�include_trailing_comma�remove_commentsc 3 �4 K � | ]}t |� � V � �d S )N)�len)�.0�lines �[/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/isort/wrap.py� <genexpr>z#import_statement.<locals>.<genexpr>. s( � � � � B� B�t��T��� B� B� B� B� B� B� N���r � )r r r �name�wrap_lengthr r r! r �copyr �ignore_comments�balanced_wrapping�split�min�count� _wrap_line)r r r r r r r � formatterr r �dynamic_indentr r �lines� line_count�minimum_length�new_import_statements r$ �import_statementr8 s � � � ?�+� ���!%���)�+<�+X��@X�*^�_�_� ��(�>�F�,>��!'�!>���C��-�-��1�2�N� �]�F�� ��� �,�'�'�"����%��,�5��.�� � �I� �� ?�����/�/����Z�Z� ��u�:�:��>�>� � B� B�u�S�b�S�z� B� B� B�B�B�N�N��N�(���%��)�n�n�~�-�-�#�e�*�*� �2J�2J�{�]_�O_�O_�,�I��1��K�#,�9�&�� �,�/�/�*��'�!�-�%�4�'=� &� 6�$� $� $� � )�.�.�~�>�>�E� �%��)�n�n�~�-�-�#�e�*�*� �2J�2J�{�]_�O_�O_� ���~�&�&�!�+�+��)�^�V�<�<�<��r&