/usr/local/lib/python3.9/site-packages/pip/_internal/utils/__pycache__
a ���hA � @ s� d dl mZ d dlZd dlZd dlmZmZ d dlmZ e� e �Zejdd�ddd d �dd��Z ejd d�ddd�dd��ZdS )� )�annotationsN)� specifiers�version��Requirement� )�maxsizez str | Noneztuple[int, ...]�bool)�requires_python�version_info�returnc C s4 | du rdS t �| �}t�d�tt|���}||v S )a� Check if the given Python version matches a "Requires-Python" specifier. :param version_info: A 3-tuple of ints representing a Python major-minor-micro version to check (e.g. `sys.version_info[:3]`). :return: `True` if the given Python version satisfies the requirement. Otherwise, return `False`. :raises InvalidSpecifier: If `requires_python` has an invalid format. NT�.)r �SpecifierSetr �parse�join�map�str)r r �requires_python_specifier�python_version� r �G/usr/local/lib/python3.9/site-packages/pip/_internal/utils/packaging.py�check_requires_python s r i'