import tarfile


def get_tar_contents(tar: str):
    """Return a set of all files in the provided tar"""

    files = set()

    with tarfile.open(tar) as extracted_tar:
        for member in extracted_tar.getmembers():
            files.add(member.name)

    return files