aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/xkcd.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2021-09-03 16:28:04 +0100
committerGravatar GitHub <[email protected]>2021-09-03 16:28:04 +0100
commitcd7060835b5b0d150c6e91d75bc3227ee43db0ba (patch)
tree4264ddbb25e86184255574cfd0e8fa9bb11d7bcb /bot/exts/evergreen/xkcd.py
parentHandle status not found with 404 picture (diff)
parentMerge pull request #839 from python-discord/android-codeblock-fix (diff)
Merge branch 'main' into teapot-support
Diffstat (limited to 'bot/exts/evergreen/xkcd.py')
-rw-r--r--bot/exts/evergreen/xkcd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/xkcd.py b/bot/exts/evergreen/xkcd.py
index c98830bc..b56c53d9 100644
--- a/bot/exts/evergreen/xkcd.py
+++ b/bot/exts/evergreen/xkcd.py
@@ -1,7 +1,7 @@
import logging
import re
from random import randint
-from typing import Dict, Optional, Union
+from typing import Optional, Union
from discord import Embed
from discord.ext import tasks
@@ -19,9 +19,9 @@ BASE_URL = "https://xkcd.com"
class XKCD(Cog):
"""Retrieving XKCD comics."""
- def __init__(self, bot: Bot) -> None:
+ def __init__(self, bot: Bot):
self.bot = bot
- self.latest_comic_info: Dict[str, Union[str, int]] = {}
+ self.latest_comic_info: dict[str, Union[str, int]] = {}
self.get_latest_comic_info.start()
def cog_unload(self) -> None: