from typing import Dict
import hashlib


def get_hashes(binary: bytes) -> Dict[str, str]:
    """
    Return md5, sha1 and sha256 hashes of input byte string.

    Parameters
    ----------
    binary : bytes
        byte string of item to be hashed

    Returns
    -------
    Dict[str, str]
        dictionary of hash algorithm + hash value

    """
    hash_dict = {}
    for hash_type in ["md5", "sha1", "sha256"]:
        if hash_type == "md5":
            hash_alg = hashlib.md5()  # nosec
        elif hash_type == "sha1":
            hash_alg = hashlib.sha1()  # nosec
        else:
            hash_alg = hashlib.sha256()
        hash_alg.update(binary)
        hash_dict[hash_type] = hash_alg.hexdigest()
    return hash_dict