From 223be293849649c2c898100cd02d84a38708308e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 21:42:42 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pomice/player.py | 8 ++++---- pomice/pool.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pomice/player.py b/pomice/player.py index da01696..7361f55 100644 --- a/pomice/player.py +++ b/pomice/player.py @@ -414,7 +414,7 @@ class Player(VoiceProtocol): return await self._node.build_track(identifier, ctx=ctx) async def get_recommendations( - self, *, track: Track, ctx: Optional[commands.Context] = None + self, *, track: Track, ctx: Optional[commands.Context] = None, ) -> Optional[Union[List[Track], Playlist]]: """ Gets recommendations from either YouTube or Spotify. @@ -424,7 +424,7 @@ class Player(VoiceProtocol): return await self._node.get_recommendations(track=track, ctx=ctx) async def connect( - self, *, timeout: float, reconnect: bool, self_deaf: bool = False, self_mute: bool = False + self, *, timeout: float, reconnect: bool, self_deaf: bool = False, self_mute: bool = False, ) -> None: await self.guild.change_voice_state( channel=self.channel, @@ -475,7 +475,7 @@ class Player(VoiceProtocol): self._log.debug("Player has been destroyed.") async def play( - self, track: Track, *, start: int = 0, end: int = 0, ignore_if_playing: bool = False + self, track: Track, *, start: int = 0, end: int = 0, ignore_if_playing: bool = False, ) -> Track: """Plays a track. If a Spotify track is passed in, it will be handled accordingly.""" @@ -669,7 +669,7 @@ class Player(VoiceProtocol): return self._filters async def edit_filter( - self, *, filter_tag: str, edited_filter: Filter, fast_apply: bool = False + self, *, filter_tag: str, edited_filter: Filter, fast_apply: bool = False, ) -> Filters: """Edits a filter from the player using its filter tag and a new filter of the same type. The filter to be replaced must have the same tag as the one you are replacing it with. diff --git a/pomice/pool.py b/pomice/pool.py index ce06f30..bba2d75 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -836,7 +836,7 @@ class Node: ) async def get_recommendations( - self, *, track: Track, ctx: Optional[commands.Context] = None + self, *, track: Track, ctx: Optional[commands.Context] = None, ) -> Optional[Union[List[Track], Playlist]]: """ Gets recommendations from either YouTube or Spotify.