diff options
author | 2023-05-06 16:12:32 +0100 | |
---|---|---|
committer | 2023-05-09 15:41:50 +0100 | |
commit | 613840ebcf303e84048d48ace37fb001c1afe687 (patch) | |
tree | 9acaf0bae0527fe8389483a419b44e06997ca060 /bot/exts/fun/quack.py | |
parent | Migrate to ruff (diff) |
Apply fixes for ruff linting
Co-authored-by: wookie184 <[email protected]>
Co-authored-by: Amrou Bellalouna <[email protected]>
Diffstat (limited to 'bot/exts/fun/quack.py')
-rw-r--r-- | bot/exts/fun/quack.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/fun/quack.py b/bot/exts/fun/quack.py index bb0cd731..9bb024fc 100644 --- a/bot/exts/fun/quack.py +++ b/bot/exts/fun/quack.py @@ -1,6 +1,6 @@ import logging import random -from typing import Literal, Optional +from typing import Literal import discord from discord.ext import commands @@ -8,7 +8,7 @@ from discord.ext import commands from bot.bot import Bot from bot.constants import Colours, NEGATIVE_REPLIES -API_URL = 'https://quackstack.pythondiscord.com' +API_URL = "https://quackstack.pythondiscord.com" log = logging.getLogger(__name__) @@ -25,7 +25,7 @@ class Quackstack(commands.Cog): ctx: commands.Context, ducktype: Literal["duck", "manduck"] = "duck", *, - seed: Optional[str] = None + seed: str | None = None ) -> None: """ Use the Quackstack API to generate a random duck. |