aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/halloween_facts.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/halloween/halloween_facts.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/halloween/halloween_facts.py')
-rw-r--r--bot/exts/halloween/halloween_facts.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/halloween/halloween_facts.py b/bot/exts/halloween/halloween_facts.py
index 5ad8cc57..ba3b5d17 100644
--- a/bot/exts/halloween/halloween_facts.py
+++ b/bot/exts/halloween/halloween_facts.py
@@ -3,7 +3,6 @@ import logging
import random
from datetime import timedelta
from pathlib import Path
-from typing import Tuple
import discord
from discord.ext import commands
@@ -32,7 +31,7 @@ FACTS = list(enumerate(FACTS))
class HalloweenFacts(commands.Cog):
"""A Cog for displaying interesting facts about Halloween."""
- def random_fact(self) -> Tuple[int, str]:
+ def random_fact(self) -> tuple[int, str]:
"""Return a random fact from the loaded facts."""
return random.choice(FACTS)