def from_file(path: str) -> set:
    """
    Read conditions from a file. Each line contains a separate condition.
    :param path: Path to file.
    :return: Read conditions.
    """
    conditions = set()
    with open(path) as f:
        for line in f:
            conditions.add(line)
    return conditions