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

Enabled keyword not in every method #220

Closed
jakewilliami opened this issue Oct 31, 2021 · 1 comment · Fixed by #275
Closed

Enabled keyword not in every method #220

jakewilliami opened this issue Oct 31, 2021 · 1 comment · Fixed by #275

Comments

@jakewilliami
Copy link

jakewilliami commented Oct 31, 2021

For example, Progress defined at line 106 (i.e., the method in which you specify the minimum update interval, dt) fails with the enabled keyword. My current workaround is

p = Progress(10_000_000, enabled = false)
p.dt = 1 # minimum update interval of 1 second
@MarcMush
Copy link
Collaborator

MarcMush commented Nov 9, 2021

you can write

p = Progress(10_000_000; dt = 1, enabled = false)

IMO this is clearer and the definitions without keywords should be deprecated

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

Successfully merging a pull request may close this issue.

2 participants