(x: str)
return _compare_versions(old_version, new_version)
Try to determine the semver upgrade type from string.

    For example, 'Bump lodash from 4.17.15 to 4.17.19', would be "patch", since
    the "patch" field is upgraded from 15 to 19.
Try to determine the semver upgrade type from string.
Try to determine the semver upgrade type from string .
def dep_version_from_title(x: str) -> MatchType | None:
    """
    Try to determine the semver upgrade type from string.

    For example, 'Bump lodash from 4.17.15 to 4.17.19', would be "patch", since
    the "patch" field is upgraded from 15 to 19.
    """
    res = _extract_versions(x)
    if res is None:
        return None
    old_version, new_version = res
    return _compare_versions(old_version, new_version)
def dep_version_from_title ( x : str ) -> MatchType | None : res = _extract_versions ( x ) if res is None : return None old_version , new_version = res return _compare_versions ( old_version , new_version )