def get_indent(line: str) -> int:
    """

    Get the indent of the file.

    Args:

        line (str) : A string whose indent needs to be found

    Returns:

        int: Indent

    """
    indent = 0
    for c in line:
        if c == " ":
            indent += 1
        elif c == "\t":
            indent += 8
        else:
            # break on first word / non-white char
            break
    return indent