diff options
Diffstat (limited to 'text_utils.py')
| -rw-r--r-- | text_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/text_utils.py b/text_utils.py index 720bf20..564d67e 100644 --- a/text_utils.py +++ b/text_utils.py @@ -71,13 +71,13 @@ def bar_graph( include_text=True, width=70, fgcolor=fg("school bus yellow"), - reset=reset(), + reset_seq=reset(), left_end="[", right_end="]", ) -> str: """Returns a string containing a bar graph. - >>> bar_graph(0.5, fgcolor='', reset='') + >>> bar_graph(0.5, fgcolor='', reset_seq='') '[███████████████████████████████████ ] 50.0%' """ @@ -104,7 +104,7 @@ def bar_graph( + "█" * whole_width + part_char + " " * (width - whole_width - 1) - + reset + + reset_seq + right_end + " " + text |
