We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d69a27 commit ccd829fCopy full SHA for ccd829f
src/textual/widgets/_progress_bar.py
@@ -340,7 +340,9 @@ def compose(self) -> ComposeResult:
340
# We create a closure so that we can determine what are the sub-widgets
341
# that are present and, therefore, will need to be notified about changes
342
# to the percentage.
343
- def update_percentage(widget: Widget) -> Callable[[float | None], None]:
+ def update_percentage(
344
+ widget: Bar | PercentageStatus | ETAStatus,
345
+ ) -> Callable[[float | None], None]:
346
"""Closure to allow updating the percentage of a given widget."""
347
348
def updater(percentage: float | None) -> None:
0 commit comments