fix(aurora): actually fixed pylint error
This commit is contained in:
parent
09ce2c7d73
commit
3506274a2a
2 changed files with 2 additions and 2 deletions
|
@ -9,6 +9,7 @@ from redbot.core.utils.chat_formatting import box, warning
|
||||||
from ..utilities.database import connect, create_guild_table, mysql_log
|
from ..utilities.database import connect, create_guild_table, mysql_log
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=duplicate-code
|
||||||
class ImportAuroraView(ui.View):
|
class ImportAuroraView(ui.View):
|
||||||
def __init__(self, timeout, ctx, message):
|
def __init__(self, timeout, ctx, message):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
@ -19,7 +20,6 @@ class ImportAuroraView(ui.View):
|
||||||
async def import_button_y(
|
async def import_button_y(
|
||||||
self, interaction: Interaction, button: ui.Button
|
self, interaction: Interaction, button: ui.Button
|
||||||
): # pylint: disable=unused-argument
|
): # pylint: disable=unused-argument
|
||||||
# pylint: disable=duplicate-code
|
|
||||||
await self.message.delete()
|
await self.message.delete()
|
||||||
await interaction.response.send_message(
|
await interaction.response.send_message(
|
||||||
"Deleting original table...", ephemeral=True
|
"Deleting original table...", ephemeral=True
|
||||||
|
|
|
@ -8,6 +8,7 @@ from redbot.core.utils.chat_formatting import box, warning
|
||||||
from ..utilities.database import connect, create_guild_table, mysql_log
|
from ..utilities.database import connect, create_guild_table, mysql_log
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=duplicate-code
|
||||||
class ImportGalacticBotView(ui.View):
|
class ImportGalacticBotView(ui.View):
|
||||||
def __init__(self, timeout, ctx, message):
|
def __init__(self, timeout, ctx, message):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
@ -18,7 +19,6 @@ class ImportGalacticBotView(ui.View):
|
||||||
async def import_button_y(
|
async def import_button_y(
|
||||||
self, interaction: Interaction, button: ui.Button
|
self, interaction: Interaction, button: ui.Button
|
||||||
): # pylint: disable=unused-argument
|
): # pylint: disable=unused-argument
|
||||||
# pylint: disable=duplicate-code
|
|
||||||
await self.message.delete()
|
await self.message.delete()
|
||||||
await interaction.response.send_message(
|
await interaction.response.send_message(
|
||||||
"Deleting original table...", ephemeral=True
|
"Deleting original table...", ephemeral=True
|
||||||
|
|
Loading…
Reference in a new issue