From b7dd97dca997fcb7b9648dab0df826a56a1ebe53 Mon Sep 17 00:00:00 2001 From: Bryan Forbes Date: Tue, 28 Jun 2022 15:20:15 -0500 Subject: [PATCH] [commands] Change Command.extras to match typing in app commands --- discord/ext/commands/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 12d6d2b0a..bfd140437 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -385,7 +385,7 @@ class Command(_BaseCommand, Generic[CogT, P, T]): self.usage: Optional[str] = kwargs.get('usage') self.rest_is_raw: bool = kwargs.get('rest_is_raw', False) self.aliases: Union[List[str], Tuple[str]] = kwargs.get('aliases', []) - self.extras: Dict[str, Any] = kwargs.get('extras', {}) + self.extras: Dict[Any, Any] = kwargs.get('extras', {}) if not isinstance(self.aliases, (list, tuple)): raise TypeError("Aliases of a command must be a list or a tuple of strings.")