From a5ce63e117438c7eafbfa703d8084791c401a617 Mon Sep 17 00:00:00 2001 From: andrewj-brown <92134285+andrewj-brown@users.noreply.github.com> Date: Wed, 8 Nov 2023 17:26:29 +1000 Subject: [PATCH] of all the days for my typechecker to stop fucking working --- uqcsbot/yelling.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/uqcsbot/yelling.py b/uqcsbot/yelling.py index 8aa28fa..aea03ae 100644 --- a/uqcsbot/yelling.py +++ b/uqcsbot/yelling.py @@ -1,7 +1,6 @@ import discord from typing import List, Dict, Callable, Any from discord.ext import commands -from discord._types import ClientT from random import choice, random import re @@ -13,10 +12,6 @@ from functools import wraps -class DodgyType(discord.interactions.InteractionResponse[ClientT]): - pass - - def yelling_exemptor(input_args: List[str] = ["text"]) -> Callable[..., Any]: def handler(func: Callable[..., Any]): @wraps(func) @@ -52,7 +47,7 @@ async def wrapper( await func(cogself, *args, **kwargs) return - assert isinstance((x := interaction.response), DodgyType) + x: discord.interactions.InteractionResponse[discord.Client] = interaction.response await x.send_message( str(discord.utils.get(bot.emojis, name="disapproval") or "") )