From 1094ea17548b9ae9877e9100442c3883b50bedd5 Mon Sep 17 00:00:00 2001 From: Cam Caswell Date: Thu, 8 Jul 2021 17:48:30 -0400 Subject: Beautify multiline tuple comprehension --- bot/exts/evergreen/duck_game.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bot') diff --git a/bot/exts/evergreen/duck_game.py b/bot/exts/evergreen/duck_game.py index 62c8075c..ef13dc76 100644 --- a/bot/exts/evergreen/duck_game.py +++ b/bot/exts/evergreen/duck_game.py @@ -125,9 +125,10 @@ class DuckGame: The completion of a line will only be a duplicate point if the other two points are the same, which is prevented by the triangle iteration. """ - completion = tuple(feat_a if feat_a == feat_b else 3-feat_a-feat_b - for feat_a, feat_b in zip(card_a, card_b) - ) + completion = tuple( + feat_a if feat_a == feat_b else 3-feat_a-feat_b + for feat_a, feat_b in zip(card_a, card_b) + ) try: idx_c = self.board.index(completion) except ValueError: -- cgit v1.2.3