def file_is_pdf(filename: str) -> bool:
    """
    Check if `filename` has the .pdf extension.

    Args:
        filename (str): Any filename, including its path.

    Returns:
        True if `filename` ends with .pdf, false otherwise.
    """
    return filename.endswith(".pdf")