from typing import Tuple
from typing import Set


def _process_line(line: str) -> Tuple[str, str, Set[str]]:
    """Return the pathway name, url, and gene sets associated.

    :param line: gmt file line
    :return: pathway name
    :return: pathway info url
    :return: genes set associated
    """
    name, info, *entries = [
        word.strip()
        for word in line.split('\t')
    ]
    return name, info, {entry.strip() for entry in entries}