From 8231add0a0d12a1a5f2de13de7e4eb5ac785f839 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Thu, 23 Jun 2022 01:06:23 +0200 Subject: [PATCH] Fix recording console for new rich-click 1.5 (#24611) --- 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 2fe9f5b5558de..41ca767a7f237 100644 --- a/dev/breeze/src/airflow_breeze/utils/recording.py +++ b/dev/breeze/src/airflow_breeze/utils/recording.py @@ -47,7 +47,9 @@ def save_ouput_as_svg(): 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