def find_indent(line: str) -> int:
    """
    Returns the number of spaces that start a line indent.
    """
    search = re.search(r"^(\s*)(?:\S|$)", line)
    if search is None:
        return 0
    return len(search.groups()[0])

    Returns the number of spaces that start a line indent.
    
dpkd/transformers/src/transformers/commands/add_new_model_like.py