diff options
| author | 2021-09-01 18:32:55 -0700 | |
|---|---|---|
| committer | 2021-09-01 18:32:55 -0700 | |
| commit | f4e5e3850c9a030e0125a908dc5a8dbbcd6659dd (patch) | |
| tree | b92170615ddc59ba2571c01030fa9319001d9e93 /bot/exts/halloween/spookynamerate.py | |
| parent | Fix type annotations (diff) | |
Union item with None to Optional with item.
Diffstat (limited to 'bot/exts/halloween/spookynamerate.py')
| -rw-r--r-- | bot/exts/halloween/spookynamerate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/halloween/spookynamerate.py b/bot/exts/halloween/spookynamerate.py index 3d6d95fa..bab79e56 100644 --- a/bot/exts/halloween/spookynamerate.py +++ b/bot/exts/halloween/spookynamerate.py @@ -6,7 +6,7 @@ from datetime import datetime, timedelta from logging import getLogger from os import getenv from pathlib import Path -from typing import Union +from typing import Optional from async_rediscache import RedisCache from discord import Embed, Reaction, TextChannel, User @@ -355,7 +355,7 @@ class SpookyNameRate(Cog): return embed - async def get_channel(self) -> Union[TextChannel, None]: + async def get_channel(self) -> Optional[TextChannel]: """Gets the sir-lancebot-channel after waiting until ready.""" await self.bot.wait_until_ready() channel = self.bot.get_channel( |