From 0d8ac415511d9d5cfaf9cbd8d354cbf38ae6294d Mon Sep 17 00:00:00 2001 From: Jonas Bohmann Date: Sat, 23 Jan 2021 17:20:08 +0100 Subject: [PATCH] [commands] Fix documented type of `Context.cog` --- discord/ext/commands/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 155e47971..c46911550 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -204,7 +204,7 @@ class Context(discord.abc.Messageable): @property def cog(self): - """:class:`.Cog`: Returns the cog associated with this context's command. None if it does not exist.""" + """Optional[:class:`.Cog`]: Returns the cog associated with this context's command. None if it does not exist.""" if self.command is None: return None