[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,
from a queue system, advanced queue control and more.
"""
import math
from contextlib import suppress

View File

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

View File

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

View File

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

View File

@ -980,7 +980,10 @@ class NodePool:
@classmethod
def get_best_node(
cls, *, algorithm: NodeAlgorithm, channel: Optional[VoiceChannel] = None,
cls,
*,
algorithm: NodeAlgorithm,
channel: Optional[VoiceChannel] = None,
) -> Node:
"""Fetches the best node based on an NodeAlgorithm.
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)
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

View File

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