Browse Source

[commands] Fix documented type of `Context.cog`

pull/6350/head
Jonas Bohmann 4 years ago
committed by Rapptz
parent
commit
0d8ac41551
  1. 2
      discord/ext/commands/context.py

2
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

Loading…
Cancel
Save