diff options
author | 2021-05-10 09:28:43 -0400 | |
---|---|---|
committer | 2021-05-10 09:28:43 -0400 | |
commit | 4ba9c941fc8ceb50cf61cfcb5ae15afc6216c7b2 (patch) | |
tree | 8213e0636f076c947dc72916831546c1b828efc7 /bot/exts/evergreen/help.py | |
parent | fix: Use str.isdecimal instead of str.isdigit (diff) |
chore: Apply more suggested changes
Diffstat (limited to 'bot/exts/evergreen/help.py')
-rw-r--r-- | bot/exts/evergreen/help.py | 12 |
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__) |