From e27033fd6f748aa30309906aa8223fbadd00534e Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Mon, 6 Apr 2026 20:24:29 +0200 Subject: [PATCH] Resolve `assignment-from-no-return` --- pysollib/games/acesup.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pysollib/games/acesup.py b/pysollib/games/acesup.py index 6941ad4ab..0fb675b6a 100644 --- a/pysollib/games/acesup.py +++ b/pysollib/games/acesup.py @@ -176,8 +176,8 @@ def acceptsCards(self, from_stack, cards): class JokerBombs_RowStack(AcesUp_RowStack): def moveMove(self, ncards, to_stack, frames=-1, shadow=-1): if self.cards[-1].suit == 4: - s = BasicRowStack.moveMove(self, ncards, to_stack, frames=frames, - shadow=shadow) + BasicRowStack.moveMove(self, ncards, to_stack, frames=frames, + shadow=shadow) old_state = self.game.enterState(self.game.S_FILL) self.game.saveStateMove(2 | 16) # for undo @@ -191,11 +191,9 @@ def moveMove(self, ncards, to_stack, frames=-1, shadow=-1): self.game.saveStateMove(1 | 16) # for redo self.game.leaveState(old_state) - - return s else: - return BasicRowStack.moveMove(self, ncards, to_stack, - frames=frames, shadow=shadow) + BasicRowStack.moveMove(self, ncards, to_stack, + frames=frames, shadow=shadow) class JokerBombs(AcesUp):