Format Python code with psf/black push

github-actions 2 years ago
parent cf538db3e9
commit 700879a94f

@ -263,7 +263,11 @@ class SaveView(discord.ui.View):
class VaryButton(discord.ui.Button):
def __init__(self, number, image_url, cog, converser_cog, custom_api_key):
super().__init__(style=discord.ButtonStyle.blurple, label="Vary " + str(number), custom_id="vary_button"+str(random.randint(10000000,99999999)))
super().__init__(
style=discord.ButtonStyle.blurple,
label="Vary " + str(number),
custom_id="vary_button" + str(random.randint(10000000, 99999999)),
)
self.number = number
self.image_url = image_url
self.cog = cog
@ -319,7 +323,11 @@ class VaryButton(discord.ui.Button):
class SaveButton(discord.ui.Button["SaveView"]):
def __init__(self, number: int, image_url: str):
super().__init__(style=discord.ButtonStyle.gray, label="Save " + str(number), custom_id="save_button"+str(random.randint(1000000,9999999)))
super().__init__(
style=discord.ButtonStyle.gray,
label="Save " + str(number),
custom_id="save_button" + str(random.randint(1000000, 9999999)),
)
self.number = number
self.image_url = image_url

Loading…
Cancel
Save