def METHOD_NAME(cfg: Config, name: str, ver_file: Path) -> None:
    loaded = ver_file.read_text("utf-8")
    # https://regex101.com/r/DoxaSI/1
    regex = r"((?:__)?version(?:__)?\s*=\s*)((?:\"|\')(.*?)(?:\"|\'))"
    matches = re.search(regex, loaded)
    if matches:
        new_version = _next_version(matches.group(3))
        log.info(f"Bumping version of {name} from {matches.group(2)} to {new_version}")
        subst = f'{matches.group(1)}"{new_version}"'
        result = re.sub(regex, subst, loaded, 0)
        if not cfg.dry_run:
            ver_file.write_text(result)
    else:
        raise ValueError(f"Could not find version in {ver_file}")