From 81faf3859bcf80a9a70fdcd7b2e197cf2e9a9c28 Mon Sep 17 00:00:00 2001 From: GdoongMathew Date: Mon, 8 Dec 2025 16:07:59 +0800 Subject: [PATCH 1/2] Update refresh_per_second default value in Progress docstring --- rich/progress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich/progress.py b/rich/progress.py index ef6ad60f..bcd81d3b 100644 --- a/rich/progress.py +++ b/rich/progress.py @@ -1064,7 +1064,7 @@ class Progress(JupyterMixin): Args: console (Console, optional): Optional Console instance. Defaults to an internal Console instance writing to stdout. auto_refresh (bool, optional): Enable auto refresh. If disabled, you will need to call `refresh()`. - refresh_per_second (Optional[float], optional): Number of times per second to refresh the progress information or None to use default (10). Defaults to None. + refresh_per_second (Optional[float], optional): Number of times per second to refresh the progress information. Defaults to 10. speed_estimate_period: (float, optional): Period (in seconds) used to calculate the speed estimate. Defaults to 30. transient: (bool, optional): Clear the progress on exit. Defaults to False. redirect_stdout: (bool, optional): Enable redirection of stdout, so ``print`` may be used. Defaults to True. From d9429855ee5951ba73128fa2ff8c92533d93786f Mon Sep 17 00:00:00 2001 From: GdoongMathew Date: Mon, 8 Dec 2025 16:36:30 +0800 Subject: [PATCH 2/2] Fix type hint for refresh_per_second parameter Update refresh_per_second default value in Progress docstring --- rich/progress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich/progress.py b/rich/progress.py index bcd81d3b..421e1411 100644 --- a/rich/progress.py +++ b/rich/progress.py @@ -1064,7 +1064,7 @@ class Progress(JupyterMixin): Args: console (Console, optional): Optional Console instance. Defaults to an internal Console instance writing to stdout. auto_refresh (bool, optional): Enable auto refresh. If disabled, you will need to call `refresh()`. - refresh_per_second (Optional[float], optional): Number of times per second to refresh the progress information. Defaults to 10. + refresh_per_second (float, optional): Number of times per second to refresh the progress information. Defaults to 10. speed_estimate_period: (float, optional): Period (in seconds) used to calculate the speed estimate. Defaults to 30. transient: (bool, optional): Clear the progress on exit. Defaults to False. redirect_stdout: (bool, optional): Enable redirection of stdout, so ``print`` may be used. Defaults to True.