Skip to content

Commit ec141db

Browse files
committed
Explicitly wrap partial with staticmethod for Py3.14
1 parent 77dffd5 commit ec141db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

beetsplug/lyrics.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,9 @@ class Translator(RequestHandler):
745745
TRANSLATE_URL = "https://api.cognitive.microsofttranslator.com/translate"
746746
LINE_PARTS_RE = re.compile(r"^(\[\d\d:\d\d.\d\d\]|) *(.*)$")
747747
SEPARATOR = " | "
748-
remove_translations = partial(re.compile(r" / [^\n]+").sub, "")
748+
remove_translations = staticmethod(
749+
partial(re.compile(r" / [^\n]+").sub, "")
750+
)
749751

750752
_log: Logger
751753
api_key: str

0 commit comments

Comments
 (0)