style: format code with black

This commit is contained in:
wenping 2024-11-06 18:02:10 +08:00
parent 0b5e5f4d08
commit b86bbf6e73

View File

@ -37,7 +37,7 @@ class EPUBBookLoaderHelper:
Exception,
on_backoff=lambda details: logger.warning(f"retry backoff: {details}"),
on_giveup=lambda details: logger.warning(f"retry abort: {details}"),
jitter=None
jitter=None,
)
def translate_with_backoff(self, text, context_flag=False):
return self.translate_model.translate(text, context_flag)
@ -129,4 +129,4 @@ def not_trans(s):
is_text_digit_and_space(s),
is_text_isbn(s),
]
)
)