Skip to content

Commit 6c22ef6

Browse files
committed
feat: add unit and desc for tqdm
1 parent 7244b6d commit 6c22ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stas_ln_translator/translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async def translate_epub(book: epub.EpubBook) -> epub.EpubBook:
4545
# A document = list[list[str]]
4646
# A request = list[str]
4747
translated_text_docs: list[list[list[str]]] = await tqdm_asyncio.gather(
48-
*requests
48+
*requests, unit="doc", desc="Translating documents in EPUB"
4949
)
5050

5151
for id, soup, translated_doc_key, translated_doc in zip(

0 commit comments

Comments
 (0)