Merge pull request #54 from cloudwithax/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Clxud 2023-07-31 20:11:56 -04:00 committed by GitHub
commit ab432cc8e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -11,16 +11,16 @@ repos:
- id: requirements-txt-fixer - id: requirements-txt-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.3.0 rev: 23.7.0
hooks: hooks:
- id: black - id: black
language_version: python3.10 language_version: python3.10
- repo: https://github.com/asottile/blacken-docs - repo: https://github.com/asottile/blacken-docs
rev: 1.14.0 rev: 1.15.0
hooks: hooks:
- id: blacken-docs - id: blacken-docs
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.7.0 rev: v3.10.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py37-plus, --keep-runtime-typing] args: [--py37-plus, --keep-runtime-typing]
@ -29,11 +29,11 @@ repos:
hooks: hooks:
- id: reorder-python-imports - id: reorder-python-imports
- repo: https://github.com/asottile/add-trailing-comma - repo: https://github.com/asottile/add-trailing-comma
rev: v2.5.1 rev: v3.0.1
hooks: hooks:
- id: add-trailing-comma - id: add-trailing-comma
- repo: https://github.com/hadialqattan/pycln - repo: https://github.com/hadialqattan/pycln
rev: v2.1.5 rev: v2.2.0
hooks: hooks:
- id: pycln - id: pycln

View File

@ -414,7 +414,7 @@ class Player(VoiceProtocol):
return await self._node.build_track(identifier, ctx=ctx) return await self._node.build_track(identifier, ctx=ctx)
async def get_recommendations( 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]]: ) -> Optional[Union[List[Track], Playlist]]:
""" """
Gets recommendations from either YouTube or Spotify. Gets recommendations from either YouTube or Spotify.
@ -424,7 +424,7 @@ class Player(VoiceProtocol):
return await self._node.get_recommendations(track=track, ctx=ctx) return await self._node.get_recommendations(track=track, ctx=ctx)
async def connect( 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: ) -> None:
await self.guild.change_voice_state( await self.guild.change_voice_state(
channel=self.channel, channel=self.channel,
@ -475,7 +475,7 @@ class Player(VoiceProtocol):
self._log.debug("Player has been destroyed.") self._log.debug("Player has been destroyed.")
async def play( 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: ) -> Track:
"""Plays a track. If a Spotify track is passed in, it will be handled accordingly.""" """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 return self._filters
async def edit_filter( 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: ) -> Filters:
"""Edits a filter from the player using its filter tag and a new filter of the same type. """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. The filter to be replaced must have the same tag as the one you are replacing it with.

View File

@ -836,7 +836,7 @@ class Node:
) )
async def get_recommendations( 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]]: ) -> Optional[Union[List[Track], Playlist]]:
""" """
Gets recommendations from either YouTube or Spotify. Gets recommendations from either YouTube or Spotify.