def METHOD_NAME(self) -> Optional[Tuple[int, int]]:
    """Returns the Python version implied by the runtime, as (major, minor)."""
    if self.value is None:
        return None
    mo = cast(Match, re.match(self.PYTHON_RUNTIME_REGEX, self.value))
    return int(mo.group("major")), int(mo.group("minor"))