def load_file(filename: str) -> list:
    """Read file containing the bag-containing specifications

    :param filename: Location of the bag-spec file
    :return: List of bag-containing restrictions
    """
    with open(filename, 'r') as f:
        lines = f.readlines()
    lines = [line[:-1] for line in lines]
    return lines