aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/quack.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-05-09 16:01:01 +0100
committerGravatar GitHub <[email protected]>2023-05-09 16:01:01 +0100
commitc3e23e60278d34658f801bd7d7ed721d5a272637 (patch)
treee159a0fae7850d706d713cf2b49dfed2140ce655 /bot/exts/fun/quack.py
parentBump sentry-sdk from 1.21.1 to 1.22.1 (#1273) (diff)
parentMove unshared contants inside modules (diff)
Merge pull request #1270 from python-discord/migrate-to-ruff
Migrate to ruff
Diffstat (limited to 'bot/exts/fun/quack.py')
-rw-r--r--bot/exts/fun/quack.py6
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.