Skip to content

Commit

Permalink
Remove extraneous call to tuple()
Browse files Browse the repository at this point in the history
  • Loading branch information
omkar-foss committed Aug 22, 2024
1 parent 298cd90 commit 5502def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/deltalake/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 5502def

Please sign in to comment.