관리-도구
편집 파일: _loop.cpython-38.pyc
U ʗRe� � @ s� d dl mZmZmZ ed�Zee eeeef d�dd�Zee eeeef d�dd�Zee eeeeef d�dd �Zd S )� )�Iterable�Tuple�TypeVar�T)�values�returnc c sN t | �}zt|�}W n tk r* Y dS X d|fV |D ]}d|fV q:dS )z9Iterate and generate a tuple with a flag for first value.NTF��iter�next� StopIteration)r �iter_values�value� r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/rich/_loop.py� loop_first s r c c sR t | �}zt|�}W n tk r* Y dS X |D ]}d|fV |}q0d|fV dS )z8Iterate and generate a tuple with a flag for last value.NFTr )r r �previous_valuer r r r � loop_last s r c c s^ t | �}zt|�}W n tk r* Y dS X d}|D ]}|d|fV d}|}q4|d|fV dS )zBIterate and generate a tuple with a flag for first and last value.NTFr )r r r �firstr r r r �loop_first_last s r N) �typingr r r r �boolr r r r r r r �<module> s