From f2b6e4ef83de167fadb5e152fda782a4c914cda2 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 26 Feb 2022 13:31:51 +0000 Subject: [PATCH] Format code with black, yapf, autopep8 and isort This commit fixes the style issues introduced in a0c1273 according to the output from black, yapf, autopep8 and isort. Details: https://deepsource.io/gh/Code-Done-Right/Economica/transform/93954e92-4b10-4b88-9d7d-cb801e6c5658/ --- extensions/economy.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/extensions/economy.py b/extensions/economy.py index a00dff0..be963b3 100644 --- a/extensions/economy.py +++ b/extensions/economy.py @@ -1,8 +1,9 @@ # Imports +import os +import sys + import hikari import lightbulb -import sys -import os # Adds a path for importing database which requires a relative import # Thanks to https://stackoverflow.com/questions/7505988/importing-from-a-relative-path-in-python @@ -12,8 +13,10 @@ economy_plugin = lightbulb.Plugin("Economy") + # Helper methods class EconomyHelperMethods: + async def __init__(self, db): self.db = db db.initialise() @@ -33,10 +36,12 @@ async def get_bank_data(): async def delete_account(): pass + # Commands @economy_plugin.command -@lightbulb.command('balance', 'Returns the balance of the user',aliases = ['bal']) +@lightbulb.command("balance", + "Returns the balance of the user", + aliases=["bal"]) @lightbulb.implements(lightbulb.PrefixCommand, lightbulb.SlashCommand) async def balance(ctx): pass -