from typing import Dict
import json


def read_template_checksum(client) -> Dict[str, str]:
    """Read templates checksum file for a project."""
    if client.has_template_checksum():
        with open(client.template_checksums, "r") as checksum_file:
            return json.load(checksum_file)

    return {}