from typing import List


def parse_hostnames(hosts: str) -> List[str]:
    """Parse hosts argument into list of hostnames

    :param hosts: String of hosts argument
    :type hosts: str

    :return: List of hostnames
    :rtype: list
    """
    return hosts.split(',') if hosts else []