postfix force non-dict documentation

This commit is contained in:
Casper da Costa-Luis 2018-04-12 02:02:56 +01:00
parent c78d2fab6f
commit a4b9c86db5
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 8 additions and 0 deletions

View File

@ -511,6 +511,14 @@ with the ``desc`` and ``postfix`` arguments:
t.postfix[1]["value"] = i / 2
t.update()
Points to remember when using ``{postfix[...]}`` in the ``bar_format`` string:
- ``postfix`` also needs to be passed as an initial argument in a compatible
format, and
- ``postfix`` will be auto-converted to a string if it is a ``dict``-like
object. To prevent this behaviour, insert an extra item into the dictionary
where the key is not a string.
Nested progress bars
~~~~~~~~~~~~~~~~~~~~