from typing import List
import json


def _parse_str_list(string: str) -> List[str]:
    """
    Parse a list of string from string like "['a', 'b', 'c']" or those separated by \n
    :param string: string like "['a', 'b', 'c']" or those separated by \n
    :return: a list of string
    """
    try:
        res = json.loads(string)
        if not isinstance(res, list):
            raise TypeError
        return res
    except (TypeError, json.JSONDecodeError):
        return string.split("\n")