aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/help.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/evergreen/help.py')
-rw-r--r--bot/exts/evergreen/help.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/bot/exts/evergreen/help.py b/bot/exts/evergreen/help.py
index bfaf25f1..7e3fdad4 100644
--- a/bot/exts/evergreen/help.py
+++ b/bot/exts/evergreen/help.py
@@ -2,9 +2,8 @@
import asyncio
import itertools
import logging
-from collections import namedtuple
from contextlib import suppress
-from typing import Union
+from typing import List, NamedTuple, Union
from discord import Colour, Embed, HTTPException, Message, Reaction, User
from discord.ext import commands
@@ -29,7 +28,14 @@ REACTIONS = {
DELETE_EMOJI: "stop",
}
-Cog = namedtuple("Cog", ["name", "description", "commands"])
+
+class Cog(NamedTuple):
+ """Show information about a Cog's name, description and commands."""
+
+ name: str
+ description: str
+ commands: List[Command]
+
log = logging.getLogger(__name__)