import pathlib
from typing import List


def parse_go_prot_map(go_prot_map_file: pathlib.Path) -> List[str]:
    """
        Parses the go_prot_map file
        Returns the list of uniprot protein ids associated with the GO term

        Parameters
        ----------
        go_prot_map_file : pathlib.Path
            File containing uniprot protein ids for the GO term
            Each file name must contain the GO term and each line must be a prot id

        Returns
        -------
        List[str]
            The list of protein ids associated with the GO term
    """
    with open(go_prot_map_file) as fid:
        prot_list = fid.read().split("\n")
    return prot_list