#!/usr/bin/env python3
"""Update all Basic Memory release manifests to the same product version."""
from __future__ import annotations
import argparse
import json
import re
from pathlib import Path
from typing import Any, Callable
ROOT = Path(__file__).resolve().parents[1]
VERSION_RE = re.compile(r"^v?([0-9]+\.[0-9]+\.[0-9]+(?:b[0-9]+|rc[0-9]+)?)$")
PYTHON_PRERELEASE_RE = re.compile(
r"^(?P[0-9]+\.[0-9]+\.[0-9]+)(?:(?P