Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
awwaawwa committed Dec 28, 2024
1 parent 03c4883 commit 8738c95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pdf2zh/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8738c95

Please sign in to comment.