5class Counter(discord.ui.View):
6 @discord.ui.button(label="Open", style=discord.ButtonStyle.primary)
7 async def openticket(
8 self, button: discord.ui.Button, interaction: discord.Interaction 9 ):
10 await interaction.repl("Opening", complete_hidden=True)
11 member = interaction.author
An unused argument can lead to confusions. It should be removed. If this variable is necessary, name the variable _
or start the name with unused
or _unused
.
def square(x, y=1):
return x * x
class MySubClass(MyClass):
def __init__(self, number):
self.value = 42 # argument `number` remains unused
def square(x):
return x * x
class MySubClass(MyClass):
def __init__(self, _):
self.value = 42