Loco-CTO / Rystal-V6-Experiments

Unused variable found PYL-W0612
Anti-pattern
Major
a month ago2 months old
Unused variable 'dealer_total'
229                button (nextcord.ui.Button): The button that was clicked.
230                interaction (nextcord.Interaction): The interaction that triggered the button click.
231            """
232            dealer_total = self.blackjack.stand()233            result = self.blackjack.check_winner()
234
235            await self.handle_bet_result(interaction, result)
Unused variable 'height'
 57        pos: tuple,
 58        color: str = "#97A8CB",
 59    ) -> int:
 60        width, height = draw.textbbox((0, 0), text_str, font=font)[2:4] 61        rect_w, rect_h = width + 2 * x_pad, 24 + 2 * y_pad
 62        x, y = pos
 63        rect_bbox = (x, y, x + rect_w, y + rect_h)
Unused variable 'websocket'
28
29async def check_websocket(url):
30    try:
31        async with websockets.connect(url) as websocket:32            print(f"connected to {url}")
33            return True
34    except Exception as e:
Unused variable 'height'
 57        pos: tuple,
 58        color: str = "#97A8CB",
 59    ) -> int:
 60        width, height = draw.textbbox((0, 0), text_str, font=font)[2:4] 61        rect_w, rect_h = width + 2 * x_pad, 24 + 2 * y_pad
 62        x, y = pos
 63        rect_bbox = (x, y, x + rect_w, y + rect_h)