From ec141dbfd6079209e994d0a4ad97fedcc3a2ab1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0ar=C5=ABnas=20Nejus?= Date: Sun, 26 Oct 2025 23:04:17 +0000 Subject: [PATCH] Explicitly wrap partial with staticmethod for Py3.14 --- beetsplug/lyrics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index d245d6a14..4c35d8a2e 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -745,7 +745,9 @@ class Translator(RequestHandler): TRANSLATE_URL = "https://api.cognitive.microsofttranslator.com/translate" LINE_PARTS_RE = re.compile(r"^(\[\d\d:\d\d.\d\d\]|) *(.*)$") SEPARATOR = " | " - remove_translations = partial(re.compile(r" / [^\n]+").sub, "") + remove_translations = staticmethod( + partial(re.compile(r" / [^\n]+").sub, "") + ) _log: Logger api_key: str