Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

bug in progress.bar function #187

Open
philippovmax opened this issue Feb 16, 2023 · 1 comment
Open

bug in progress.bar function #187

philippovmax opened this issue Feb 16, 2023 · 1 comment

Comments

@philippovmax
Copy link

empty_char and filled_char parameters do not work in progress.bar functions. That's because inside it Bar class instance is initiated with BAR_EMPTY_CHAR and BAR_FILLED_CHAR constants instead of the passed arguments.
So, it needs to be:

...
with Bar(label=label, width=width, hide=hide, empty_char=empty_char,
             filled_char=filled_char, expected_size=count, every=every) \
            as bar:
                for i, item in enumerate(it):
                yield item
                bar.show(i + 1)
...
@philippovmax
Copy link
Author

philippovmax commented Feb 16, 2023

This bug is in distribution package that comes with poetry from PyPI!
poetry add clint installs version 0.5.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant