def create_tarfile(files: List[str], tar_path: str) -> None:
    """Create a tar file based on the list of files passed"""
    with tarfile.open(tar_path, "w:gz") as tar:
        for f in files:
            tar.add(f)
def create_tarfile ( files : List [ str ] , tar_path : str ) -> None : with tarfile . open ( tar_path , "w:gz" ) as tar : for f in files : tar . add ( f )
Create a tar file based on the list of files passed