aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-10-01 23:49:10 +0200
committerGravatar Leon Sandøy <[email protected]>2019-10-01 23:49:10 +0200
commita994c2c2b67521b8a739536ae0c9d47de75ce7b8 (patch)
tree9cf1d9d742a83523dff1f8139a8e5a1ef3aa2c4c
parentCreate !tools alias and split !site resources. (diff)
Fix missing type annotations and docstring errors.
-rw-r--r--bot/cogs/alias.py7
-rw-r--r--bot/cogs/site.py3
2 files changed, 3 insertions, 7 deletions
diff --git a/bot/cogs/alias.py b/bot/cogs/alias.py
index 0df5498a1..0f49a400c 100644
--- a/bot/cogs/alias.py
+++ b/bot/cogs/alias.py
@@ -54,11 +54,8 @@ class Alias (Cog):
await self.invoke(ctx, "site resources")
@command(name="tools", hidden=True)
- async def site_tools_alias(self, ctx):
- """
- Alias for invoking <prefix>site tools.
- """
-
+ async def site_tools_alias(self, ctx: Context) -> None:
+ """Alias for invoking <prefix>site tools."""
await self.invoke(ctx, "site tools")
@command(name="watch", hidden=True)
diff --git a/bot/cogs/site.py b/bot/cogs/site.py
index 8a8fed575..c3bdf85e4 100644
--- a/bot/cogs/site.py
+++ b/bot/cogs/site.py
@@ -57,9 +57,8 @@ class Site(Cog):
await ctx.send(embed=embed)
@site_group.command(name="tools")
- async def site_tools(self, ctx: Context):
+ async def site_tools(self, ctx: Context) -> None:
"""Info about the site's Tools page."""
-
tools_url = f"{PAGES_URL}/tools"
embed = Embed(title="Tools")