def METHOD_NAME(repo: str = REPO) -> str:
    """
    Get the latest version of spotdl.
    ### Arguments
    - repo: the repo to check (defaults to spotdl/spotify-downloader)
    ### Returns
    - the latest version
    """
    url = f"https://api.github.com/repos/{repo}/releases/latest"
    response = requests.get(url, timeout=10)
    if response.status_code != 200:
        if response.status_code == 403:
            raise RateLimitError("GitHub API rate limit exceeded.")
        raise RuntimeError(
            f"Failed to get commit count. Status code: {response.status_code}"
        )
    data = response.json()
    return data["name"]  # returns "vx.x.x"