from typing import Tuple


def _split_interface_version(version: str) -> Tuple[int, int]:
    """Extract version number from interface URI.

    :param version: Version string.
    :returns: (major version, minor version) tuple.
    """
    # get the string with the interface semantic version (X.Y)
    version_num = version.rsplit("/", 1)[1]
    (major_version, minor_version) = version_num.split(".")
    return int(major_version), int(minor_version)