def get_major_minor_version():
    # type: () -> str
    """
    Return the major-minor version of the current Python as a string, e.g.
    "3.7" or "3.10".
    """
    return '{}.{}'.format(*sys.version_info)

    Return the major-minor version of the current Python as a string, e.g.
    "3.7" or "3.10".
    
product/gradle-plugin/src/main/python/pip/_internal/locations.py