[commands] Fix documented type of Context.cog

This commit is contained in:
Jonas Bohmann 2021-01-23 17:20:08 +01:00 committed by Rapptz
parent fb9aa2486d
commit 0d8ac41551

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