aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/trivia_quiz.py
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-09-02 12:42:25 -0700
committerGravatar GitHub <[email protected]>2021-09-02 12:42:25 -0700
commit8813045f40946a6240f4d8823ef9939f3f154853 (patch)
tree83b0fd28a0203a948b5d3eb64270d1799ac7c4b0 /bot/exts/evergreen/trivia_quiz.py
parentMerge pull request #838 from python-discord/Use-permissions_for-over-permissi... (diff)
parentMerge branch 'main' into decorator-factory/typehints-fix (diff)
Merge pull request #802 from python-discord/decorator-factory/typehints-fix
* Fix type annotations Co-authored-by: decorator-factory <[email protected]>
Diffstat (limited to 'bot/exts/evergreen/trivia_quiz.py')
-rw-r--r--bot/exts/evergreen/trivia_quiz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py
index bc25cbf7..aa4020d6 100644
--- a/bot/exts/evergreen/trivia_quiz.py
+++ b/bot/exts/evergreen/trivia_quiz.py
@@ -5,7 +5,7 @@ import operator
import random
from dataclasses import dataclass
from pathlib import Path
-from typing import Callable, List, Optional
+from typing import Callable, Optional
import discord
from discord.ext import commands
@@ -193,7 +193,7 @@ DYNAMIC_QUESTIONS_FORMAT_FUNCS = {
class TriviaQuiz(commands.Cog):
"""A cog for all quiz commands."""
- def __init__(self, bot: Bot) -> None:
+ def __init__(self, bot: Bot):
self.bot = bot
self.game_status = {} # A variable to store the game status: either running or not running.
@@ -559,7 +559,7 @@ class TriviaQuiz(commands.Cog):
@staticmethod
async def send_answer(
channel: discord.TextChannel,
- answers: List[str],
+ answers: list[str],
answer_is_correct: bool,
question_dict: dict,
q_left: int,