def version_greater_than(ver1, ver2):
    # type: (str, str) -> bool
    """
    Compares semver strings and returns True if the first version is greater
    than the second version.
    """
    for v1, v2 in zip(ver1.split("."), ver2.split(".")):
        if int(v1) > int(v2):
            return True
        elif int(v1) < int(v2):
            return False
    return False