From 8a7219de9f9e11bc1149db70d680efad443ae0ab Mon Sep 17 00:00:00 2001 From: Eunwoo Choi Date: Mon, 28 Oct 2024 09:02:17 +0900 Subject: [PATCH] style: black --- koreanbots/client.py | 16 ++++++++++++---- koreanbots/integrations/discord.py | 1 + 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/koreanbots/client.py b/koreanbots/client.py index a0f941d..6da439d 100644 --- a/koreanbots/client.py +++ b/koreanbots/client.py @@ -84,7 +84,9 @@ async def get_user_info( code=code, version=version, data=KoreanbotsUserResponse.from_dict(data) ) - async def get_bot_info(self, bot_id: int) -> KoreanbotsResponse[KoreanbotsBotResponse]: + async def get_bot_info( + self, bot_id: int + ) -> KoreanbotsResponse[KoreanbotsBotResponse]: """ 봇 정보를 가져옵니다. @@ -222,7 +224,9 @@ async def check_vote( # deprecated since 3.0.0 async def guildcount(self, bot_id: int, **kwargs: Optional[int]) -> None: - warn("guildcount 메서드는 post_guild_count로 변경되었습니다.", DeprecationWarning) + warn( + "guildcount 메서드는 post_guild_count로 변경되었습니다.", DeprecationWarning + ) return await self.post_guild_count(bot_id, **kwargs) @@ -241,7 +245,9 @@ async def botinfo(self, bot_id: int) -> KoreanbotsResponse[KoreanbotsBotResponse async def serverinfo( self, server_id: int ) -> KoreanbotsResponse[KoreanbotsServerResponse]: - warn("serverinfo 메서드는 get_server_info로 변경되었습니다.", DeprecationWarning) + warn( + "serverinfo 메서드는 get_server_info로 변경되었습니다.", DeprecationWarning + ) return await self.get_server_info(server_id) @@ -268,6 +274,8 @@ async def is_voted_bot( async def is_voted_server( self, user_id: int, server_id: int ) -> KoreanbotsResponse[KoreanbotsVoteResponse]: - warn("is_voted_server 메서드는 check_vote로 변경되었습니다.", DeprecationWarning) + warn( + "is_voted_server 메서드는 check_vote로 변경되었습니다.", DeprecationWarning + ) return await self.check_vote("server", user_id, server_id) diff --git a/koreanbots/integrations/discord.py b/koreanbots/integrations/discord.py index ffb2663..3b36e5b 100644 --- a/koreanbots/integrations/discord.py +++ b/koreanbots/integrations/discord.py @@ -57,6 +57,7 @@ class DiscordpyKoreanbots(Koreanbots): :type include_shard_count: bool """ + def __init__( self, client: Union["DiscordpyClient", "nextcord.Client", "DisnakeClient"],