From 5502def95e81587f10878cba1c4829c0d688d092 Mon Sep 17 00:00:00 2001 From: Omkar P <45419097+omkar-foss@users.noreply.github.com> Date: Thu, 22 Aug 2024 22:39:10 +0530 Subject: [PATCH] Remove extraneous call to tuple() --- python/deltalake/table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/deltalake/table.py b/python/deltalake/table.py index 37756c62f1..1ac5109f1f 100644 --- a/python/deltalake/table.py +++ b/python/deltalake/table.py @@ -528,7 +528,7 @@ def partitions( if not partition: continue if as_tuple_list: - sorted_partition = sorted(tuple(partition), key=lambda x: x[0]) + sorted_partition = sorted(partition, key=lambda x: x[0]) partitions.append(tuple(sorted_partition)) else: partitions.append({k: v for (k, v) in partition})