aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-27 09:48:24 -0800
committerGravatar MarkKoz <[email protected]>2020-03-22 15:54:39 -0700
commit2491a68938f027c7fb08afa14b4130bbdd1da753 (patch)
treee4850b2ab963cca4216910a86ed436a02a3bfd48
parentHelpChannels: limit channels to a total of 50 (diff)
HelpChannels: use more specific type hints for queues
-rw-r--r--bot/cogs/help_channels.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index 2710e981b..67bd1ab35 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -99,8 +99,8 @@ class HelpChannels(Scheduler, commands.Cog):
self.in_use_category: discord.CategoryChannel = None
self.dormant_category: discord.CategoryChannel = None
- self.channel_queue: asyncio.Queue = None
- self.name_queue: deque = None
+ self.channel_queue: asyncio.Queue[discord.TextChannel] = None
+ self.name_queue: t.Deque[str] = None
self.ready = asyncio.Event()
self.on_message_lock = asyncio.Lock()