Skip to content

Commit

Permalink
of all the days for my typechecker to stop fucking working
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewj-brown committed Nov 8, 2023
1 parent 4224ff4 commit a5ce63e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions uqcsbot/yelling.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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)
Expand Down Expand Up @@ -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 "")
)
Expand Down

0 comments on commit a5ce63e

Please sign in to comment.