fix a bug where TypeError is raised when name_list is an empty tuple.