From 8738c958919a8ae3625c67c46e82e0f783f66c7d Mon Sep 17 00:00:00 2001 From: awwaawwa <8493196+awwaawwa@users.noreply.github.com> Date: Sat, 28 Dec 2024 11:53:10 +0800 Subject: [PATCH] format --- pdf2zh/cache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdf2zh/cache.py b/pdf2zh/cache.py index d186aa16..80d497be 100644 --- a/pdf2zh/cache.py +++ b/pdf2zh/cache.py @@ -45,7 +45,9 @@ def _sort_dict_recursively(obj): return obj def __init__(self, translate_engine: str, translate_engine_params: dict = None): - assert len(translate_engine) < 20, 'current cache require translate engine name less than 20 characters' + assert ( + len(translate_engine) < 20 + ), "current cache require translate engine name less than 20 characters" self.translate_engine = translate_engine self.replace_params(translate_engine_params)