[commands] Fix documented type of Context.cog

This commit is contained in:
Jonas Bohmann
2021-01-24 05:17:47 -05:00
committed by Rapptz
parent fb9aa2486d
commit 0d8ac41551
+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