From fde5d6eee3b0437eaecdcbf6f8b11aeab3a5d503 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Mon, 1 Jul 2024 20:47:13 +0100 Subject: [PATCH] format --- rich/pretty.py | 6 +++++- rich/progress.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/rich/pretty.py b/rich/pretty.py index c88f90c3..fa340212 100644 --- a/rich/pretty.py +++ b/rich/pretty.py @@ -361,7 +361,11 @@ def _get_braces_for_defaultdict(_object: DefaultDict[Any, Any]) -> Tuple[str, st def _get_braces_for_deque(_object: Deque[Any]) -> Tuple[str, str, str]: if _object.maxlen is None: return ("deque([", "])", "deque()") - return ("deque([", f"], maxlen={_object.maxlen})", f"deque(maxlen={_object.maxlen})") + return ( + "deque([", + f"], maxlen={_object.maxlen})", + f"deque(maxlen={_object.maxlen})", + ) def _get_braces_for_array(_object: "array[Any]") -> Tuple[str, str, str]: diff --git a/rich/progress.py b/rich/progress.py index 5353ca32..effcab40 100644 --- a/rich/progress.py +++ b/rich/progress.py @@ -168,7 +168,11 @@ def track( with progress: yield from progress.track( - sequence, total=total, completed=completed, description=description, update_period=update_period + sequence, + total=total, + completed=completed, + description=description, + update_period=update_period, )