Skip to content

Commit 452ffd2

Browse files
authored
No need to cast to list
`sorted` already returns a list (squash when merging, i'm just on a different computer using web UI so can't do it here)
1 parent 86f2d45 commit 452ffd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/coordinator/assignors/range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def assign(cls, cluster, member_metadata):
4646
if partitions is None:
4747
log.warning('No partition metadata for topic %s', topic)
4848
continue
49-
partitions = sorted(list(partitions))
49+
partitions = sorted(partitions)
5050
consumers_for_topic.sort()
5151

5252
partitions_per_consumer = len(partitions) // len(consumers_for_topic)

0 commit comments

Comments
 (0)