From d00b606d5c287f59a7f0a8c0c0839c8f30c54a74 Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Mon, 20 Jan 2025 18:00:36 +0100 Subject: [PATCH] fix: docs and lint --- discord/interactions.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/discord/interactions.py b/discord/interactions.py index 17ce82fad..b1efe92dc 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -664,8 +664,8 @@ class InteractionCallbackActivity: class InteractionCallback: """Represents an interaction callback invoking interaction. - Attribute - --------- + Attributes + ---------- id: :class:`int` The ID of the interaction. type: :class:`InteractionType` @@ -1349,14 +1349,18 @@ class InteractionResponse(Generic[ClientT]): ) @overload - async def send_modal(self, modal: Modal, /, *, with_response: Literal[True] = ...) -> InteractionCallbackResponse[ClientT]: + async def send_modal( + self, modal: Modal, /, *, with_response: Literal[True] = ... + ) -> InteractionCallbackResponse[ClientT]: ... @overload async def send_modal(self, modal: Modal, /, *, with_response: Literal[False] = False) -> None: ... - async def send_modal(self, modal: Modal, /, *, with_response: bool = True) -> Optional[InteractionCallbackResponse[ClientT]]: + async def send_modal( + self, modal: Modal, /, *, with_response: bool = True + ) -> Optional[InteractionCallbackResponse[ClientT]]: """|coro| Responds to this interaction by sending a modal.