Skip to content

Commit

Permalink
type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Selyss committed Dec 17, 2023
1 parent 897e716 commit 67854aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion views/ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, paid_category=None) -> None:
@nextcord.ui.button(
label="Mark Paid", style=nextcord.ButtonStyle.green, custom_id="ticket:paid"
)
async def paid(self, btn: nextcord.ui.Button, inter: nextcord.Interaction):
async def paid(self, btn: nextcord.ui.Button, inter: nextcord.Interaction) -> None:
if isinstance(inter.channel, nextcord.TextChannel):
category = nextcord.utils.get(inter.guild.categories, id=self.paid_category)
await inter.channel.edit(category=category)
Expand Down
2 changes: 1 addition & 1 deletion views/close.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, closed_category=None) -> None:
style=nextcord.ButtonStyle.blurple,
custom_id="closeview:close",
)
async def close(self, btn: nextcord.ui.Button, inter: nextcord.Interaction):
async def close(self, btn: nextcord.ui.Button, inter: nextcord.Interaction) -> None:
if isinstance(inter.channel, nextcord.TextChannel):
await inter.channel.send("Closing ticket...")
category = inter.guild.get_channel(self.closed_category)
Expand Down

0 comments on commit 67854aa

Please sign in to comment.