From f9cc1370b9bc3268024d377f2ac567214ee3f708 Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Thu, 22 May 2025 16:18:36 +1000 Subject: [PATCH] fix: Correct more type checking warnings --- interactions/api/events/discord.py | 4 ++-- interactions/client/client.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interactions/api/events/discord.py b/interactions/api/events/discord.py index 181ec1eb0..dc932d973 100644 --- a/interactions/api/events/discord.py +++ b/interactions/api/events/discord.py @@ -373,12 +373,12 @@ class MemberAdd(GuildEvent): @attrs.define(eq=False, order=False, hash=False, kw_only=False) -class MemberRemove(MemberAdd): +class MemberRemove(GuildEvent): """Dispatched when a member is removed from a guild.""" member: Union["Member", "User"] = attrs.field( repr=False, - metadata=docs("The member who was added, can be user if the member is not cached"), + metadata=docs("The member who was removed, can be user if the member is not cached"), ) diff --git a/interactions/client/client.py b/interactions/client/client.py index 0f2ede684..07d338fcd 100644 --- a/interactions/client/client.py +++ b/interactions/client/client.py @@ -131,7 +131,7 @@ __all__ = ("Client",) # see https://discord.com/developers/docs/topics/gateway#list-of-intents -_INTENT_EVENTS: dict[BaseEvent, list[Intents]] = { +_INTENT_EVENTS: dict[Type[BaseEvent], list[Intents]] = { # Intents.GUILDS events.GuildJoin: [Intents.GUILDS], events.GuildLeft: [Intents.GUILDS], pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy