mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Explicitly wrap partial with staticmethod for Py3.14
This commit is contained in:
parent
77dffd551d
commit
ec141dbfd6
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue