File: D:/Python311/Lib/site-packages/pip/_internal/models/__pycache__/pylock.cpython-311.pyc
�
�miC � � � d dl mZ d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m
Z
mZ d dlm
Z
d dlmZmZmZ d d lmZ d d
lmZ d dlmZ e
rd dlmZ ej d
� � Zd%d�Zd&d�Ze G d� d� � � � Ze G d� d� � � � Ze G d� d� � � � Z e G d� d� � � � Z!e G d� d � � � � Z"e G d!� d"� � � � Z#e G d#� d$� � � � Z$dS )'� )�annotationsN)�Iterable)� dataclass)�Path)�
TYPE_CHECKING�Any)�tomli_w)�ArchiveInfo�DirInfo�VcsInfo)�Link)�InstallRequirement)�url_to_path)�Selfz^pylock\.([^.]+)\.toml$�pathr �return�boolc �p � | j dk p+t t j t | j � � � � S )Nzpylock.toml)�namer �re�match�PYLOCK_FILE_NAME_RE)r s �=D:\Python311\Lib\site-packages\pip/_internal/models/pylock.py�is_valid_pylock_file_namer s+ � ��9�
�%�W��b�h�7J�D�I�.V�.V�)W�)W�W� �data�list[tuple[str, Any]]�dict[str, Any]c � � d� | D � � S )Nc �F � i | ]\ }}|�|� dd� � |��S )N�_�-)�replace)�.0�key�values r �
<dictcomp>z&_toml_dict_factory.<locals>.<dictcomp> s1 � �U�U�U�Z�S�%�5�U�C�K�K��S�!�!�5�U�U�Ur � )r s r �_toml_dict_factoryr) s � �U�U�4�U�U�U�Ur c �B � e Zd ZU ded<