From babbb224625b649e8ee7f3440a660179665d0d48 Mon Sep 17 00:00:00 2001 From: Gnome Date: Fri, 29 Oct 2021 14:06:44 +0100 Subject: [PATCH] Fix small typing issue --- discord/ext/commands/converter.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index bbef6719..347ee67a 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -1052,10 +1052,7 @@ class Option(Generic[T, DT]): # type: ignore self.name: str = name -if TYPE_CHECKING: - # Terrible workaround for type checking reasons - def Option(default: T = inspect.Parameter.empty, *, description: str, name: str = discord.utils.MISSING) -> T: - ... +Option: Any def _convert_to_bool(argument: str) -> bool: