From a43dc735b132b1ba44d7edea6b6fc8347339c5d9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 10:10:15 +0000 Subject: [PATCH] style(pre-commit): auto fixes from pre-commit.com hooks --- discord/iterators.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/discord/iterators.py b/discord/iterators.py index 2cbc6fe21b..de442aa0fb 100644 --- a/discord/iterators.py +++ b/discord/iterators.py @@ -370,7 +370,9 @@ async def _retrieve_messages(self, retrieve: int) -> list[MessagePayload]: """Retrieve messages and update next parameters.""" raise NotImplementedError - async def _retrieve_messages_before_strategy(self, retrieve: int) -> list[MessagePayload]: + async def _retrieve_messages_before_strategy( + self, retrieve: int + ) -> list[MessagePayload]: """Retrieve messages using before parameter.""" before = self.before.id if self.before else None data: list[MessagePayload] = await self.logs_from( @@ -382,7 +384,9 @@ async def _retrieve_messages_before_strategy(self, retrieve: int) -> list[Messag self.before = Object(id=int(data[-1]["id"])) return data - async def _retrieve_messages_after_strategy(self, retrieve: int) -> list[MessagePayload]: + async def _retrieve_messages_after_strategy( + self, retrieve: int + ) -> list[MessagePayload]: """Retrieve messages using after parameter.""" after = self.after.id if self.after else None data: list[MessagePayload] = await self.logs_from( @@ -394,7 +398,9 @@ async def _retrieve_messages_after_strategy(self, retrieve: int) -> list[Message self.after = Object(id=int(data[0]["id"])) return data - async def _retrieve_messages_around_strategy(self, retrieve: int) -> list[MessagePayload]: + async def _retrieve_messages_around_strategy( + self, retrieve: int + ) -> list[MessagePayload]: """Retrieve messages using around parameter.""" if self.around: around = self.around.id if self.around else None