from typing import List


def get_changed_methods(project_commits) -> List[str]:
    """
    Used to populate the DAILY/WEEKLY reports, gets a list of 
    method names that were changed.

    Note: Removes duplicates from list, sometimes same method is touched in more than one commit
    """
    project_changed_methods = []
    for commit in project_commits:
        for file in commit.modified_files:
            method_names = [m.name for m in file.changed_methods]
            project_changed_methods.extend(method_names)
    print(*project_changed_methods, sep="\n")
    return list(set(project_changed_methods))