Skip to content

Commit 8132afc

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 60e9226 commit 8132afc

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

discord/client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,9 @@ def fetch_guilds(
15211521
15221522
All parameters are optional.
15231523
"""
1524-
return GuildIterator(self, limit=limit, before=before, after=after, with_counts=with_counts)
1524+
return GuildIterator(
1525+
self, limit=limit, before=before, after=after, with_counts=with_counts
1526+
)
15251527

15261528
async def fetch_template(self, code: Template | str) -> Template:
15271529
"""|coro|
@@ -1841,8 +1843,8 @@ async def fetch_user(self, user_id: int, /) -> User:
18411843
return User(state=self._connection, data=data)
18421844

18431845
async def fetch_channel(
1844-
self, channel_id: int,
1845-
/) -> GuildChannel | PrivateChannel | Thread:
1846+
self, channel_id: int, /
1847+
) -> GuildChannel | PrivateChannel | Thread:
18461848
"""|coro|
18471849
18481850
Retrieves a :class:`.abc.GuildChannel`, :class:`.abc.PrivateChannel`, or :class:`.Thread` with the specified ID.

discord/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,8 +3138,8 @@ def application_info(self) -> Response[appinfo.AppInfo]:
31383138
return self.request(Route("GET", "/oauth2/applications/@me"))
31393139

31403140
def get_application(
3141-
self, application_id: Snowflake,
3142-
/) -> Response[appinfo.PartialAppInfo]:
3141+
self, application_id: Snowflake, /
3142+
) -> Response[appinfo.PartialAppInfo]:
31433143
return self.request(
31443144
Route(
31453145
"GET",

discord/iterators.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,9 @@ async def _retrieve_guilds(self, retrieve) -> list[Guild]:
660660
async def _retrieve_guilds_before_strategy(self, retrieve):
661661
"""Retrieve guilds using before parameter."""
662662
before = self.before.id if self.before else None
663-
data: list[GuildPayload] = await self.get_guilds(retrieve, before=before, with_counts=self.with_counts)
663+
data: list[GuildPayload] = await self.get_guilds(
664+
retrieve, before=before, with_counts=self.with_counts
665+
)
664666
if len(data):
665667
if self.limit is not None:
666668
self.limit -= retrieve
@@ -670,7 +672,9 @@ async def _retrieve_guilds_before_strategy(self, retrieve):
670672
async def _retrieve_guilds_after_strategy(self, retrieve):
671673
"""Retrieve guilds using after parameter."""
672674
after = self.after.id if self.after else None
673-
data: list[GuildPayload] = await self.get_guilds(retrieve, after=after, with_counts=self.with_counts)
675+
data: list[GuildPayload] = await self.get_guilds(
676+
retrieve, after=after, with_counts=self.with_counts
677+
)
674678
if len(data):
675679
if self.limit is not None:
676680
self.limit -= retrieve

0 commit comments

Comments
 (0)