from typing import List
from pathlib import Path
from typing import Tuple


def get_latest_filepath(csv_filepaths: List[Path]) -> Tuple[Path, int, int, int]:
    """
    Returns the file info for the latest CSV file report.
    Example filename: 03-13-2020.csv
    Returns a tuple of (fpath, year, month, day) for the latest report.
    """
    file_infos = []
    for fpath in csv_filepaths:
        stem_split = fpath.stem.split("-")
        month = int(stem_split[0])
        day = int(stem_split[1])
        year = int(stem_split[2])
        file_infos.append((fpath, year, month, day))
    # Sort the file info list
    file_infos = sorted(file_infos, key=lambda t: (t[1], t[2], t[3]))
    return file_infos[-1]