From 49584476ce2734172be6cddd140af0635eb72e32 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 18:00:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/advanced.py | 1 - pomice/__init__.py | 1 - pomice/applemusic/__init__.py | 1 - pomice/applemusic/objects.py | 1 - pomice/pool.py | 8 ++++++-- pomice/spotify/__init__.py | 1 - 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/advanced.py b/examples/advanced.py index b52eb95..b8d2d3a 100644 --- a/examples/advanced.py +++ b/examples/advanced.py @@ -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 diff --git a/pomice/__init__.py b/pomice/__init__.py index 1544720..df6ea40 100644 --- a/pomice/__init__.py +++ b/pomice/__init__.py @@ -7,7 +7,6 @@ Copyright (c) 2024, cloudwithax Licensed under GPL-3.0 """ - import discord if not discord.version_info.major >= 2: diff --git a/pomice/applemusic/__init__.py b/pomice/applemusic/__init__.py index a2349fa..d1ceb72 100644 --- a/pomice/applemusic/__init__.py +++ b/pomice/applemusic/__init__.py @@ -1,5 +1,4 @@ """Apple Music module for Pomice, made possible by cloudwithax 2023""" - from .client import * from .exceptions import * from .objects import * diff --git a/pomice/applemusic/objects.py b/pomice/applemusic/objects.py index 548da38..75d173d 100644 --- a/pomice/applemusic/objects.py +++ b/pomice/applemusic/objects.py @@ -1,5 +1,4 @@ """Module for managing Apple Music objects""" - from typing import List __all__ = ( diff --git a/pomice/pool.py b/pomice/pool.py index ac44ea8..3fd4c79 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -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 diff --git a/pomice/spotify/__init__.py b/pomice/spotify/__init__.py index 71ca60a..e28be28 100644 --- a/pomice/spotify/__init__.py +++ b/pomice/spotify/__init__.py @@ -1,5 +1,4 @@ """Spotify module for Pomice, made possible by cloudwithax 2023""" - from .client import Client from .exceptions import * from .objects import *