From ce8316a69c8e3995693ce484d4500fc34a9335cc Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 18 May 2025 01:18:39 +0200 Subject: [PATCH] fix(fallback): fix order of yielded tuple --- shiftregister/fallback/distribution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiftregister/fallback/distribution.py b/shiftregister/fallback/distribution.py index 60f76d5..9703d9d 100644 --- a/shiftregister/fallback/distribution.py +++ b/shiftregister/fallback/distribution.py @@ -50,7 +50,7 @@ def distribute(total_slots, total_assignments, pool, qs=None): if bucket.has_sub_buckets(): yield from distribute(bucket_slots, bucket_assignments, bucket, qs) else: - yield bucket_assignments, bucket_qs + yield bucket_qs, bucket_assignments total_slots -= bucket_slots total_assignments -= bucket_assignments