[commands] Fix documented type of Context.cog

This commit is contained in:
Jonas Bohmann authored and Rapptz committed 2021-01-24 05:17:47 -05:00
1 parent fb9aa2486d
commit 0d8ac41551
1 file changed
+1 -1
+1 -1
View File
@@ -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