File: //usr/local/lib/python3.10/dist-packages/pip/_internal/utils/__pycache__/hashes.cpython-310.pyc
o
��h� � @ s� d dl mZ d dlZd dlmZ d dlmZmZmZ d dl m
Z
mZmZ d dl
mZ er2d dlmZ dZg d �ZG d
d� d�ZG dd
� d
e�ZdS )� )�annotationsN)�Iterable)�
TYPE_CHECKING�BinaryIO�NoReturn)�HashMismatch�HashMissing�InstallationError)�read_chunks)�_Hash�sha256)r �sha384�sha512c @ s� e Zd ZdZd/d0dd�Zd1d
d�Zed2d
d��Zd3dd�Zd4dd�Z d5dd�Z
d6d d!�Zd7d#d$�Zd8d&d'�Z
d9d(d)�Zd:d+d,�Zd2d-d.�ZdS );�HasheszaA wrapper that builds multiple hashes at once and checks them against
known-good values
N�hashes�dict[str, list[str]] | None�return�Nonec C s>