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

non-str postfix (lists/dicts/objects) #534

Closed
wants to merge 8 commits into from
Closed

non-str postfix (lists/dicts/objects) #534

wants to merge 8 commits into from

Conversation

casperdcl
Copy link
Member

@casperdcl casperdcl commented Apr 8, 2018

from tqdm import tqdm
from time import sleep


with tqdm(total=10, bar_format="{postfix[0]} {postfix[1]:>8.2g}",
          postfix=["Batch", 0]) as t:
    for i in range(10):
        sleep(0.1)
        t.postfix[1] = i / 2
        t.update()

@codecov-io
Copy link

codecov-io commented Apr 8, 2018

Codecov Report

Merging #534 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #534      +/-   ##
==========================================
+ Coverage    99.4%   99.41%   +0.01%     
==========================================
  Files           8        8              
  Lines         674      686      +12     
  Branches      118      119       +1     
==========================================
+ Hits          670      682      +12     
  Misses          3        3              
  Partials        1        1

@casperdcl casperdcl changed the title Devel postfix lists, update(0) defaults Apr 8, 2018
@casperdcl casperdcl self-assigned this Apr 8, 2018
@casperdcl casperdcl added this to the v5.0.0 milestone Apr 8, 2018
@casperdcl casperdcl closed this Apr 11, 2018
@casperdcl casperdcl deleted the devel branch April 11, 2018 23:24
@casperdcl casperdcl changed the title postfix lists, update(0) defaults non-str postfix (lists/dicts/objects) Apr 11, 2018
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 this pull request may close these issues.

Allow to customize every part of the message string
2 participants