def get_hosts(pdcs: list) -> list:
    """
    Get list of PDataContainers and get only hostnames into a list.

    :param pdcs: list of PDataContainers
    :return: list of strings of hostnames
    """
    return [pdc.host for pdc in pdcs]