Skip to content

Commit da6d021

Browse files
committed
fix tqdm unit
1 parent 62a3cff commit da6d021

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎progress_api/backends/tqdm.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self, tqdm: type[tqdm] = auto_tqdm):
3737
self.tqdm = tqdm
3838

3939
def create_bar(self, spec: ProgressBarSpec) -> api.Progress:
40-
tqdm = self.tqdm(total=spec.total, desc=spec.label, unit=spec.unit, leave=spec.leave) # type: ignore
40+
tqdm = self.tqdm(total=spec.total, desc=spec.label, unit=spec.unit or 'it', leave=spec.leave) # type: ignore
4141
return TQDMProgress(spec, tqdm)
4242

4343

0 commit comments

Comments
 (0)