Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc talks about "manager"'s counter but then uses module-level function #63

Closed
raffaem opened this issue Oct 28, 2023 · 1 comment
Closed
Labels

Comments

@raffaem
Copy link

raffaem commented Oct 28, 2023

docs says:

For a basic progress bar, invoke the Manager.counter method.

But in the example it calls a module-level function, not the manager's one:

import enlighten
[...]
manager = enlighten.get_manager()
pbar = enlighten.counter(total=100, desc='Basic', unit='ticks')

In the next example, the manager's functions are instead called:

import time
import enlighten
[...]
manager = enlighten.get_manager()
ticks = manager.counter(total=100, desc='Ticks', unit='ticks')
tocks = manager.counter(total=20, desc='Tocks', unit='tocks')
@raffaem raffaem added the bug label Oct 28, 2023
@avylove
Copy link
Contributor

avylove commented Oct 28, 2023

Thanks for reporting! Looks like a change in Read the Docs also broke document building since the last release. Both issues fixed as of 1.12.2.

@avylove avylove closed this as completed Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants