Skip to content

Commit 0da4308

Browse files
committed
update docstrings & change log
1 parent 62906c8 commit 0da4308

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
* Added throttling to the `ProgressBar` update methods to impact the actual process' performance as little as possible.
2424
* Added a new class `Spinner` to the `console` module, which is used to display a spinner animation in the console during an ongoing process.
2525

26+
**BREAKING CHANGES:**
27+
* Made the value input into the params `bar_format` and `limited_bar_format` of `ProgressBar` be a list/tuple of strings instead of a single string, so the user can define multiple formats for different console widths.
28+
* Added a new param <code>sep: str = " "</code> to the `ProgressBar` class, which is used to join multiple bar-format strings.
2629

2730
<span id="v1-9-0" />
2831

src/xulbux/console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ def __init__(
13121312
self.limited_bar_format: list[str] | tuple[str, ...]
13131313
"""The simplified format strings used when the console width is too small."""
13141314
self.sep: str
1315-
"""The separator string used to join multiple format strings."""
1315+
"""The separator string used to join multiple bar-format strings."""
13161316
self.chars: tuple[str, ...]
13171317
"""A tuple of characters ordered from full to empty progress."""
13181318

@@ -1658,7 +1658,7 @@ def __init__(
16581658
self.spinner_format: list[str] | tuple[str, ...]
16591659
"""The format strings used to render the spinner (joined by `sep`)."""
16601660
self.sep: str
1661-
"""The separator string used to join multiple format strings."""
1661+
"""The separator string used to join multiple spinner-format strings."""
16621662
self.frames: tuple[str, ...]
16631663
"""A tuple of strings representing the animation frames."""
16641664
self.interval: float

0 commit comments

Comments
 (0)