Skip to content

Commit

Permalink
Use partial to pass console parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 27, 2022
1 parent 33d6840 commit 19297cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plextraktsync/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ def progressbar(self, enabled=True):

from tqdm import TqdmExperimentalWarning
from tqdm.rich import tqdm
from functools import partial
from plextraktsync.console import console

warnings.filterwarnings("ignore", category=TqdmExperimentalWarning)

return tqdm
return partial(tqdm, console=console)

return None

Expand Down

0 comments on commit 19297cd

Please sign in to comment.