Skip to content

Commit

Permalink
[ConversationGames] type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 12, 2023
1 parent 6195f63 commit 57685b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conversationgames/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from redbot.core import commands
from redbot.core.bot import Red

select_options = {
select_options: Dict[str, Dict[str, str]] = {
"en": {
"label": "English",
"description": "Get English translation of this question.",
Expand Down Expand Up @@ -112,7 +112,7 @@ async def interaction_check(self, interaction: discord.Interaction[Red]) -> bool
@staticmethod
async def _callback(self: Select, interaction: discord.Interaction[Red]) -> None: # type: ignore
await interaction.response.defer()
title = (
title: Optional[str] = (
f"{self.view._ctx.author} asked {self.view._member}" # type: ignore
if self.view._member is not None # type: ignore
else None
Expand Down

0 comments on commit 57685b9

Please sign in to comment.