From c2139527c79f2bd4ab7c1e8819e1270252d3616a Mon Sep 17 00:00:00 2001 From: Vivaan Verma Date: Mon, 19 Jul 2021 16:06:04 +0100 Subject: Fix linting again --- arthur/exts/cloudflare/zones.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'arthur/exts/cloudflare/zones.py') diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py index 3b8b3b7..c6e625f 100644 --- a/arthur/exts/cloudflare/zones.py +++ b/arthur/exts/cloudflare/zones.py @@ -1,4 +1,4 @@ -"""The zones cog helps with managing Cloudflare zones""" +"""The zones cog helps with managing Cloudflare zones.""" from typing import Optional from discord.ext import commands @@ -8,17 +8,21 @@ from arthur.bot import KingArthur class Zones(commands.Cog): + """Commands for working with Cloudflare zones.""" + def __init__(self, bot: KingArthur) -> None: self.bot = bot @commands.group(name="zones", invoke_without_command=True) async def zones(self, ctx: commands.Context) -> None: - "Commands for working with Cloudflare zones" + """Commands for working with Cloudflare zones.""" await ctx.send_help(ctx.command) @zones.command(name="purge") - async def purge(self, ctx: commands.Context, zone_name: Optional[str] = "pythondiscord.com"): - """Command to clear the Cloudflare cache of the specified zone""" + async def purge(self, ctx: commands.Context, + zone_name: Optional[str] = "pythondiscord.com" + ) -> None: + """Command to clear the Cloudflare cache of the specified zone.""" pydis_zones = await zones.list_zones(zone_name) required_id = pydis_zones[zone_name] purge_attempt_response = await zones.purge_zone(required_id) -- cgit v1.2.3