from typing import List
import difflib


def compare_files(path1: str, path2: str) -> List[str]:
    """Returns the delta between two files using -, ?, + format excluding
    lines that are the same

    Args:
        path1 (str): Path to first file
        path2 (str): Path to second file

    Returns:
        List[str]: Delta between the two files

    """
    diff = difflib.ndiff(
        open(path1).read().splitlines(), open(path2).read().splitlines()
    )
    return [x for x in diff if x[0] in ["-", "+", "?"]]