From 83bd76504a4feca40854663e4cf767d1b961db70 Mon Sep 17 00:00:00 2001 From: Michael H Date: Mon, 5 Apr 2021 20:29:15 -0400 Subject: [PATCH] Use covariant TypeVar for protocol --- discord/ext/commands/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index d5a30a83b..854794287 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -70,7 +70,7 @@ def _get_from_guilds(bot, getter, argument): _utils_get = discord.utils.get -T = TypeVar("T") +T = TypeVar('T', covariant=True) @runtime_checkable