Returns a list of items removed from a given list of strings
    that are all digits from 'from_index' until hitting a non-digit item

def _get_digit_list(alist: [str], from_index: int) -> ([str], [str]):  # type: ignore
    """
    Returns a list of items removed from a given list of strings
    that are all digits from 'from_index' until hitting a non-digit item
    """
    ret = []
    alist.pop(from_index)
    while len(alist) > from_index and alist[from_index].isdigit():
        ret.append(alist.pop(from_index))
    return alist, ret