This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v2-3-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 839d67da27250689dc4580649ed3693ed5cb2d0b Author: Jarek Potiuk <[email protected]> AuthorDate: Thu Jun 23 01:06:23 2022 +0200 Fix recording console for new rich-click 1.5 (#24611) (cherry picked from commit 8231add0a0d12a1a5f2de13de7e4eb5ac785f839) --- dev/breeze/src/airflow_breeze/utils/recording.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/breeze/src/airflow_breeze/utils/recording.py b/dev/breeze/src/airflow_breeze/utils/recording.py index 2fe9f5b555..41ca767a7f 100644 --- a/dev/breeze/src/airflow_breeze/utils/recording.py +++ b/dev/breeze/src/airflow_breeze/utils/recording.py @@ -47,7 +47,9 @@ def enable_recording_of_help_output(path: str, title: Optional[str], width: Opti class RecordingConsole(rich.console.Console): def __init__(self, **kwargs): - super().__init__(record=True, width=width_int, force_terminal=True, **kwargs) + kwargs["force_terminal"] = True + kwargs["width"] = width_int + super().__init__(record=True, **kwargs) global help_console help_console = self
