def METHOD_NAME(self, hashes: Dict[str, str]) -> bool:
    """Return whether any of the given hashes are allowed."""
    for hash_name, hex_digest in hashes.items():
        if self.is_hash_allowed(hash_name, hex_digest):
            return True
    return False