aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/halloween_facts.py
diff options
context:
space:
mode:
authorGravatar decorator-factory <[email protected]>2021-08-07 05:23:03 +0300
committerGravatar Xithrius <[email protected]>2021-08-31 13:08:51 -0700
commit745cd1d6d3d6227d2a1e82cf25611d76221c40cd (patch)
tree6d653668fe1bbfd237b4c87890e0c67a36e2c7f5 /bot/exts/halloween/halloween_facts.py
parentMerge pull request #835 from python-discord/discord-2.0 (diff)
Fix type annotations
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)