From 57685b916cc1d3253fcf6e5337a37d1fa9f7c185 Mon Sep 17 00:00:00 2001 From: Lemon Rose Date: Fri, 13 Oct 2023 02:05:03 +0530 Subject: [PATCH] [ConversationGames] type hint --- conversationgames/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conversationgames/views.py b/conversationgames/views.py index 94f910ee..1b9b9adb 100644 --- a/conversationgames/views.py +++ b/conversationgames/views.py @@ -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.", @@ -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