From 6e2aeb83af20ed7d6379448eda628b18d78e5d37 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 31 Oct 2021 13:38:24 +0000 Subject: [PATCH] Use literal syntax to create data structure --- minato_namikaze/bot_files/cogs/fun/random_fun_games.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/minato_namikaze/bot_files/cogs/fun/random_fun_games.py b/minato_namikaze/bot_files/cogs/fun/random_fun_games.py index 647d4388..9009353d 100644 --- a/minato_namikaze/bot_files/cogs/fun/random_fun_games.py +++ b/minato_namikaze/bot_files/cogs/fun/random_fun_games.py @@ -80,12 +80,7 @@ async def magic(self, ctx, user: discord.Member = None): @commands.cooldown(1, 40, commands.BucketType.guild) async def qr(self, ctx, colour="255-255-255", *, url=None): """Generates easy QR Code""" - colours = dict([ - ("255-255-255", "255-255-255"), - ("black", "0-0-0"), - ("red", "FF0000"), - ("blue", "00f"), - ]) + colours = {"255-255-255": "255-255-255", "black": "0-0-0", "red": "FF0000", "blue": "00f"} col = ["black", "red", "blue"] if colour == "255-255-255": col = ["255-255-255", "red", "blue"]