[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-06-11 18:00:33 +00:00
parent 27d447c12d
commit 49584476ce
6 changed files with 6 additions and 7 deletions

View File

@ -5,7 +5,6 @@ This is in the form of a drop-in cog you can use and modify to your liking.
This example aims to include everything you would need to make a fully functioning music bot, This example aims to include everything you would need to make a fully functioning music bot,
from a queue system, advanced queue control and more. from a queue system, advanced queue control and more.
""" """
import math import math
from contextlib import suppress from contextlib import suppress

View File

@ -7,7 +7,6 @@ Copyright (c) 2024, cloudwithax
Licensed under GPL-3.0 Licensed under GPL-3.0
""" """
import discord import discord
if not discord.version_info.major >= 2: if not discord.version_info.major >= 2:

View File

@ -1,5 +1,4 @@
"""Apple Music module for Pomice, made possible by cloudwithax 2023""" """Apple Music module for Pomice, made possible by cloudwithax 2023"""
from .client import * from .client import *
from .exceptions import * from .exceptions import *
from .objects import * from .objects import *

View File

@ -1,5 +1,4 @@
"""Module for managing Apple Music objects""" """Module for managing Apple Music objects"""
from typing import List from typing import List
__all__ = ( __all__ = (

View File

@ -980,7 +980,10 @@ class NodePool:
@classmethod @classmethod
def get_best_node( def get_best_node(
cls, *, algorithm: NodeAlgorithm, channel: Optional[VoiceChannel] = None, cls,
*,
algorithm: NodeAlgorithm,
channel: Optional[VoiceChannel] = None,
) -> Node: ) -> Node:
"""Fetches the best node based on an NodeAlgorithm. """Fetches the best node based on an NodeAlgorithm.
This option is preferred if you want to choose the best node This option is preferred if you want to choose the best node
@ -1017,7 +1020,8 @@ class NodePool:
return cls.get_best_node(algorithm=NodeAlgorithm.by_ping) return cls.get_best_node(algorithm=NodeAlgorithm.by_ping)
if node := next( if node := next(
(node for node in available_nodes if node.location == chosen_region), None, (node for node in available_nodes if node.location == chosen_region),
None,
): ):
return node return node

View File

@ -1,5 +1,4 @@
"""Spotify module for Pomice, made possible by cloudwithax 2023""" """Spotify module for Pomice, made possible by cloudwithax 2023"""
from .client import Client from .client import Client
from .exceptions import * from .exceptions import *
from .objects import * from .objects import *