관리-도구
편집 파일: _loop.cpython-311.pyc
� �܋f� � �� � d dl mZmZmZ ed� � Zdee deeeef fd�Zdee deeeef fd�Zdee deeeeef fd�ZdS ) � )�Iterable�Tuple�TypeVar�T�values�returnc # � K � t | � � } t |� � }n# t $ r Y dS w xY wd|fV � |D ]}d|fV � � dS )z9Iterate and generate a tuple with a flag for first value.NTF��iter�next� StopIteration)r �iter_values�values �M/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_vendor/rich/_loop.py� loop_firstr s� � � � ��v�,�,�K���[�!�!����� � � �������� ��+����� � ���U�l������ � �# � 1�1c # � K � t | � � } t |� � }n# t $ r Y dS w xY w|D ] }d|fV � |}�d|fV � dS )z8Iterate and generate a tuple with a flag for last value.NFTr )r r �previous_valuer s r � loop_lastr s� � � � ��v�,�,�K���k�*�*����� � � ��������� � ���^�#�#�#�#���� �� �����r c # � K � t | � � } t |� � }n# t $ r Y dS w xY wd}|D ] }|d|fV � d}|}�|d|fV � dS )zBIterate and generate a tuple with a flag for first and last value.NTFr )r r r �firstr s r �loop_first_lastr s� � � � ��v�,�,�K���k�*�*����� � � ���������E�� � ���U�N�*�*�*�*������ ��~� %�%�%�%�%�%r N) �typingr r r r �boolr r r � � r �<module>r s� �� +� +� +� +� +� +� +� +� +� +��G�C�L�L�� �x��{� �x��d�A�g��'?� � � � � �h�q�k� �h�u�T�1�W�~�&>� � � � �&�H�Q�K� &�H�U�4��q�=�5I�,J� &� &� &� &� &� &r