We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78c3941 commit ff14d96Copy full SHA for ff14d96
1 file changed
tests/test_maker.py
@@ -262,8 +262,9 @@ def do_voting(self) -> Step: # algorithm 2
262
while True:
263
# submit a batch of votes
264
for vote in futures.as_completed(
265
- Executor.submit(agent.get_vote) for agent in self.agents
+ [Executor.submit(agent.get_vote) for agent in self.agents]
266
):
267
+ vote = vote.result()
268
self.votes[vote] += 1
269
max_other_votes = max(
270
(self.votes[o_vote] for o_vote in self.votes if o_vote != vote),
0 commit comments