aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/realpython.py
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-09-03 00:31:12 -0700
committerGravatar GitHub <[email protected]>2021-09-03 00:31:12 -0700
commitea47bc617e558929bcee39e6008a57d6dd814aa1 (patch)
treec40e2f23e55119fb33f83271d227103cb9be7c6f /bot/exts/evergreen/realpython.py
parentImproved consistency for codeblocks to end with a newline (diff)
parentMerge pull request #802 from python-discord/decorator-factory/typehints-fix (diff)
Merge branch 'main' into android-codeblock-fix
Diffstat (limited to 'bot/exts/evergreen/realpython.py')
-rw-r--r--bot/exts/evergreen/realpython.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/realpython.py b/bot/exts/evergreen/realpython.py
index 5d9e5c5c..ef8b2638 100644
--- a/bot/exts/evergreen/realpython.py
+++ b/bot/exts/evergreen/realpython.py
@@ -5,7 +5,7 @@ from urllib.parse import quote_plus
from discord import Embed
from discord.ext import commands
-from bot import bot
+from bot.bot import Bot
from bot.constants import Colours
logger = logging.getLogger(__name__)
@@ -26,7 +26,7 @@ ERROR_EMBED = Embed(
class RealPython(commands.Cog):
"""User initiated command to search for a Real Python article."""
- def __init__(self, bot: bot.Bot):
+ def __init__(self, bot: Bot):
self.bot = bot
@commands.command(aliases=["rp"])
@@ -76,6 +76,6 @@ class RealPython(commands.Cog):
await ctx.send(embed=article_embed)
-def setup(bot: bot.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load the Real Python Cog."""
bot.add_cog(RealPython(bot))