def METHOD_NAME(job: Job) -> datetime | None:
    """Return the finish time of the latest build of the job."""
    return (
        parse_datetime(job["latestCompletedBuild"]["finishTime"])
        if "finishTime" in job["latestCompletedBuild"]
        else None
    )